Skip to content

Conversation

@paulmurdoch19
Copy link

No description provided.

jawadqur and others added 24 commits October 6, 2025 15:51
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.
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
Copy link
Author

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 }};
Copy link
Author

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

Copy link
Author

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
Copy link
Author

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:
Copy link
Author

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;
Copy link
Author

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"
Copy link
Author

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with random user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants