Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Commit

Permalink
Update preferences, flowmanager deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
natarajaya committed Jun 26, 2019
1 parent 94706c8 commit f920092
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions shared/charts/gpii-flowmanager/templates/deployment.yaml
Expand Up @@ -21,6 +21,10 @@ spec:
ports:
- containerPort: {{ .Values.flowmanagerListenPort }}
env:
{{- if .Values.enableStackdriverTrace }}
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/credentials/credentials.json
{{- end }}
- name: NODE_ENV
value: '{{ .Values.nodeEnv }}'
- name: GPII_FLOWMANAGER_LISTEN_PORT
Expand All @@ -34,6 +38,10 @@ spec:
{{- if .Values.enableStackdriverTrace }}
- name: GPII_ENABLE_STACKDRIVER_TRACE
value: 'true'
volumeMounts:
- name: credentials
mountPath: /etc/credentials
readOnly: true
{{- end }}
{{- if .Values.resources }}
resources:
Expand All @@ -51,3 +59,9 @@ spec:
- '/usr/bin/curl'
- '-f'
- 'http://localhost:{{ .Values.flowmanagerListenPort }}/ready'
{{- if .Values.enableStackdriverTrace }}
volumes:
- name: credentials
secret:
secretName: {{ .Values.credentialsSecretName }}
{{- end }}
14 changes: 14 additions & 0 deletions shared/charts/gpii-preferences/templates/deployment.yaml
Expand Up @@ -22,6 +22,10 @@ spec:
ports:
- containerPort: {{ .Values.preferencesListenPort }}
env:
{{- if .Values.enableStackdriverTrace }}
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/credentials/credentials.json
{{- end }}
- name: NODE_ENV
value: {{ .Values.nodeEnv }}
- name: GPII_PREFERENCESSERVER_LISTEN_PORT
Expand All @@ -33,6 +37,10 @@ spec:
{{- if .Values.enableStackdriverTrace }}
- name: GPII_ENABLE_STACKDRIVER_TRACE
value: 'true'
volumeMounts:
- name: credentials
mountPath: /etc/credentials
readOnly: true
{{- end }}
{{- if .Values.resources }}
resources:
Expand All @@ -50,3 +58,9 @@ spec:
- '/usr/bin/curl'
- '-f'
- 'http://localhost:{{ .Values.preferencesListenPort }}/ready'
{{- if .Values.enableStackdriverTrace }}
volumes:
- name: credentials
secret:
secretName: {{ .Values.credentialsSecretName }}
{{- end }}

0 comments on commit f920092

Please sign in to comment.