Something went wrong. Try again.
AtAuth
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788apiVersion: apps/v1kind: Deploymentmetadata: name: {{ include "atauth-gateway.fullname" . }} labels: {{- include "atauth-gateway.labels" . | nindent 4 }}spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: {{- include "atauth-gateway.selectorLabels" . | nindent 6 }} strategy: type: Recreate template: metadata: annotations: checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} labels: {{- include "atauth-gateway.selectorLabels" . | nindent 8 }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} serviceAccountName: {{ include "atauth-gateway.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http containerPort: {{ .Values.config.port }} protocol: TCP envFrom: - configMapRef: name: {{ include "atauth-gateway.fullname" . }}-config - secretRef: name: {{ include "atauth-gateway.secretName" . }} env: - name: DB_PATH value: /app/data/gateway.db {{- if .Values.persistence.enabled }} volumeMounts: - name: data mountPath: /app/data {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} livenessProbe: httpGet: path: /health port: http initialDelaySeconds: 10 periodSeconds: 30 timeoutSeconds: 5 failureThreshold: 3 readinessProbe: httpGet: path: /health port: http initialDelaySeconds: 5 periodSeconds: 10 timeoutSeconds: 3 failureThreshold: 3 {{- if .Values.persistence.enabled }} volumes: - name: data persistentVolumeClaim: claimName: {{ .Values.persistence.existingClaim | default (printf "%s-data" (include "atauth-gateway.fullname" .)) }} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }}