diff --git a/Chart.yaml b/Chart.yaml index 1d70878..1e43a45 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -15,13 +15,13 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.3 +version: 1.0.4 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "1.0.0" +appVersion: "1.0.1" dependencies: - name: postgresql diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 8bc4175..340cb95 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -37,18 +37,24 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + command: ["python"] + args: ["start.py", "--workers", "{{ .Values.config.data.NUM_WORKERS }}"] ports: - name: http containerPort: {{ .Values.service.port }} protocol: TCP livenessProbe: httpGet: - path: /docs + path: /api/v1/health/live port: 8000 + initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.livenessProbe.periodSeconds }} readinessProbe: httpGet: - path: /docs + path: /api/v1/health/ready port: 8000 + initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.readinessProbe.periodSeconds }} resources: {{- toYaml .Values.resources | nindent 12 }} envFrom: diff --git a/values.yaml b/values.yaml index 1a1486a..2210962 100644 --- a/values.yaml +++ b/values.yaml @@ -96,13 +96,24 @@ config: LDAP_PORT: "636" LDAP_SERVICE_ACCOUNT_BIND_DN: "cn=unc:app:renci:eduhelx,ou=Applications,dc=unc,dc=edu" LDAP_TIMEOUT_SECONDS: "5" + NUM_WORKERS: "4" secretData: # -- # E.g. run `secrets.token_urlsafe(64)` in a Python 3 shell to generate this value. # The JWT secret key is a private key used to sign/verify that a JWT is issued by the server. JWT_SECRET_KEY: "" + # The bearer token used to authenticate with Gitea Assist. The value is encoded in Gitea Assist's + # credential secret (`config.secrets.creds` in the gitea-assist chart values) + GITEA_ASSIST_AUTH_TOKEN: "" # -- The account password for the LDAP service LDAP_SERVICE_ACCOUNT_PASSWORD: "" +livenessProbe: + initialDelaySeconds: 30 + periodSeconds: 30 +readinessProbe: + initialDelaySeconds: 30 + periodSeconds: 10 + postgresql: enabled: true auth: