-
Notifications
You must be signed in to change notification settings - Fork 33
changes to run services in openshift #478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…onjob to work with openshift
Updated nginx.conf to use values from values.yaml for the pid file location and listen port. Added 'pidFile' to the nginx section in values.yaml to allow configuration of the pid file path.
Eliminates a redundant securityContext definition in the fence-deployment.yaml template, ensuring only a single securityContext is set for the pod spec.
make some changes to allow for persistent postgres storage, running charts with db's using tilt, GEAR-527, some updates to default values
Replaced custom HPA logic in amanuensis, gearbox, and gearbox-middleware Helm charts with a shared 'common.hpa' template for consistency and maintainability. Updated autoscaling configuration in values.yaml files: fixed typo 'minAvialable' to 'minAvailable', reduced maxReplicas from 100 to 10, and switched CPU/memory autoscaling from utilization percentage to average value.
Sync cdis pcdc
Introduced environment variables for database connection (DB_DATABASE, DB_HOST, DB_USER, DB_PASSWORD, DBREADY) sourced from the gearbox-dbcreds secret in values.yaml. This enables the application to securely access database credentials via Kubernetes secrets.
Sync: Upstream Master into pcdc_dev (2025-10-27)
Add DB credentials to environment variables
| # run arborist | ||
| /go/src/github.com/uc-cdis/arborist/bin/arborist | ||
| /go/src/github.com/uc-cdis/arborist/bin/arborist --port 8080 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run the arborist server on port 8080 instead of 80
| user {{ .Values.nginx.user }}; | ||
| worker_processes 4; | ||
| pid /var/run/nginx.pid; | ||
| pid {{ .Values.nginx.pidFile }}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made these variables in case the folder needs to be changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
due to permission issues
| @@ -0,0 +1,27 @@ | |||
| {{- if .Values.openshiftRoute.enabled }} | |||
| apiVersion: route.openshift.io/v1 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an OpenShift resource that I believe is preferred over ingress
| # - chart-example.local | ||
|
|
||
| # -- (map) Configuration for OpenShift Route. | ||
| openshiftRoute: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add values for the route resource
| # https://distinctplace.com/2017/04/19/nginx-resolver-explained/ | ||
| # | ||
| resolver kube-dns.kube-system.svc.cluster.local ipv6=off; | ||
| resolver {{ .Values.nginx.resolver }} ipv6=off; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made this a variable since the value is different for openshift
| source "${GEN3_HOME}/gen3/lib/utils.sh" | ||
| gen3_load "gen3/gen3setup" | ||
| #source "${GEN3_HOME}/gen3/lib/utils.sh" | ||
| #gen3_load "gen3/gen3setup" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cant run this in openshift
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with random user
No description provided.