Skip to content

Commit

Permalink
fix: app chart (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdh authored Oct 22, 2023
1 parent ff549bd commit eef7ea1
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions stable/app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,40 +154,40 @@ spec:
mountPath: /etc/telegraf/
{{- end }}
{{- if .Values.iap.enabled }}
- name: iap-sidecar
image: {{ .Values.iap.image }}
imagePullPolicy: IfNotPresent
ports:
- containerPort: {{ .Values.iap.containerPort }}
name: http
protocol: TCP
readinessProbe:
tcpSocket:
port: {{ .Values.iap.containerPort }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
livenessProbe:
tcpSocket:
port: {{ .Values.iap.containerPort }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
env:
- name: REFRESH_TIME_SECONDS
value: {{ .Values.iap.refreshTimeSeconds }}
- name: SERVICE_ACCOUNT_CREDENTIALS
value: {{ .Values.iap.serviceAccountMountPath }}/{{ .Values.iap.serviceAccountFileName }}
- name: IAP_HOST
value: {{ .Values.iap.host }}
- name: CLIENT_ID
value: {{ .Values.iap.clientID }}
- name: LOGGER_LEVEL
value: {{ .Values.iap.logLevel }}
- name: PORT
value: "{{ .Values.iap.containerPort }}"
volumeMounts:
- mountPath: {{ .Values.iap.serviceAccountMountPath }}
name: {{ .Values.iap.serviceAccountSecret }}
{{- end -}}
- name: iap-sidecar
image: {{ .Values.iap.image }}
imagePullPolicy: IfNotPresent
ports:
- containerPort: {{ .Values.iap.containerPort }}
name: http
protocol: TCP
readinessProbe:
tcpSocket:
port: {{ .Values.iap.containerPort }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
livenessProbe:
tcpSocket:
port: {{ .Values.iap.containerPort }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
env:
- name: REFRESH_TIME_SECONDS
value: {{ .Values.iap.refreshTimeSeconds }}
- name: SERVICE_ACCOUNT_CREDENTIALS
value: {{ .Values.iap.serviceAccountMountPath }}/{{ .Values.iap.serviceAccountFileName }}
- name: IAP_HOST
value: {{ .Values.iap.host }}
- name: CLIENT_ID
value: {{ .Values.iap.clientID }}
- name: LOGGER_LEVEL
value: {{ .Values.iap.logLevel }}
- name: PORT
value: "{{ .Values.iap.containerPort }}"
volumeMounts:
- mountPath: {{ .Values.iap.serviceAccountMountPath }}
name: {{ .Values.iap.serviceAccountSecret }}
{{- end }}
volumes:
{{- range $volume := .Values.volumes }}
- {{- toYaml $volume | nindent 10 }}
Expand Down

0 comments on commit eef7ea1

Please sign in to comment.