Skip to content

Commit

Permalink
Merge pull request #8 from WorldHealthOrganization/fix/aks-helm-deplo…
Browse files Browse the repository at this point in the history
…yment

feat(kds-deployment): fixes  deployment
  • Loading branch information
tence authored Oct 20, 2023
2 parents 2840d04 + 05c8be4 commit c3d2bea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ spec:
labels:
{{- include "tngkds-backend.labels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
- name: {{ .Values.imagePullSecrets }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
{{ range .Values.service.ports }}
Expand Down
8 changes: 6 additions & 2 deletions k8s/helm/tngkds/charts/tngkds-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
replicaCount: 1

image:
# Create this image before your local installing with: "docker build -t kds:0.0.1" and load
# this image into your local minikube cluster with: "minikube image load kds:0.0.1"
repository: ghcr.io/worldhealthorganization/tng-key-distribution/tng-key-distribution
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
tag: "0.0.1-2840d04"

imagePullSecrets: []
#kubectl -n <k8s-namespace> create secret docker-registry <k8s-docker-registry-secret-name> --docker-server=ghcr.io --docker-username=<github-username> --docker-password=<github-personal-access-token> --docker-email=<email-address> -o yaml
#kubectl -n kds create secret docker-registry tng-distribution-pull-secret --docker-server=ghcr.io --docker-username=anonymous --docker-password=<PAT> [email protected] -o yaml
imagePullSecrets: tng-distribution-pull-secret
nameOverride: ""
fullnameOverride: ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
- containerPort: 5432
name: postgres
volumeMounts:
- mountPath: /var/lib/postgresql/data
- mountPath: /var/lib/postgresql/kds/data
name: postgres-persistance-storage
volumes:
- name: postgres-persistance-storage
Expand Down

0 comments on commit c3d2bea

Please sign in to comment.