@@ -63,10 +63,15 @@ spec:
63
63
{{- toYaml .Values.securityContext | nindent 8 }}
64
64
{{- end }}
65
65
{{- end }}
66
- {{- with .Values.volumes }}
67
66
volumes :
68
- {{- toYaml . | nindent 8 }}
69
- {{- end }}
67
+ # GCM-specific volume added by Mael. DO NOT REMOVE when updating the
68
+ # Helm chart.
69
+ - name : ubbagent-config
70
+ configMap :
71
+ name : ubbagent-config
72
+ {{- if .Values.volumes }}
73
+ {{ toYaml .Values.volumes | indent 8 }}
74
+ {{- end }}
70
75
containers :
71
76
- name : {{ .Chart.Name }}
72
77
{{- with .Values.image }}
@@ -146,6 +151,40 @@ spec:
146
151
resources :
147
152
{{- toYaml . | nindent 12 }}
148
153
{{- end }}
154
+
155
+ # GCM-specific container added by Mael. DO NOT REMOVE when updating the
156
+ # Helm chart.
157
+ - name : ubbagent
158
+ image : " {{ .Values.ubbagent.image.repository }}:{{ .Values.ubbagent.image.tag }}"
159
+ env :
160
+ - name : AGENT_CONFIG_FILE
161
+ value : " /etc/ubbagent/config.yaml"
162
+ - name : AGENT_LOCAL_PORT
163
+ value : " 4567"
164
+ - name : AGENT_ENCODED_KEY
165
+ valueFrom :
166
+ secretKeyRef :
167
+ name : {{ default (print (.Release.Name | trunc 63 | trimSuffix "-") "-license") .Values.ubbagent.reportingSecretName }}
168
+ key : reporting-key
169
+ - name : AGENT_CONSUMER_ID
170
+ valueFrom :
171
+ secretKeyRef :
172
+ name : {{ default (print (.Release.Name | trunc 63 | trimSuffix "-") "-license") .Values.ubbagent.reportingSecretName }}
173
+ key : consumer-id
174
+ volumeMounts :
175
+ - name : ubbagent-config
176
+ mountPath : /etc/ubbagent
177
+ resources :
178
+ limits :
179
+ cpu : 200m
180
+ memory : 100Mi
181
+ requests :
182
+ cpu : 10m
183
+ memory : 20Mi
184
+ securityContext :
185
+ runAsUser : 1001
186
+ runAsNonRoot : true
187
+
149
188
{{- with .Values.nodeSelector }}
150
189
nodeSelector :
151
190
{{- toYaml . | nindent 8 }}
0 commit comments