You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can there be an entry in Gate and Web deployment yamls to allow for additions of init containers and side car containers to be added as part of the values yaml.
For example, in GCP, we're required to have a gce-proxy container to securely speak to our cloudsql DB, using image: gcr.io/cloudsql-docker/gce-proxy:1.17 as a sidecar. This means we have to modify the helm charts leading us to get out of date pretty quickly without the risk of removing the sidecar.
In addition, when Vault injector isn't available, we would use the init containers to retrieve secrets/certs from Vault. Again, this means modifications to helm charts leading us to get out of date quickly.
You could have Values of gate.init.enabled or web.init.enabled and it dumps the config of gate.init.container to the gate deployment YAML. Same with Web & Sidecar containers.
The text was updated successfully, but these errors were encountered:
@MalcolmCyber
Hi,
I'd appreciate hearing back from you if this solution would be suitable for you.
I will raise a PR and we will release a new version if it does
Instead of IF statements, I've used {{- include "server.initContainers" .Values | nindent 6 }} & {{- include "server.extraContainers" .Values | nindent 6 }}
With a .Values content under .Values.web.extraContainers (and gate)
extraContainers:
- name: cloudsql-proxy
image: gcr.io/cloudsql-docker/gce-proxy:1.17
command: ["/cloud_sql_proxy",
"-instances=mgmt-ctu-aqua-scalock-db=tcp:5432,mgmt-ctu-aqua-scalock-audit-db=tcp:5432,mgmt-ctu-aqua-scalock-audit-db=tcp:5432",
"-ip_address_types=PRIVATE"]
helper.tpl update:
{{/*
Inject additional containers into the pod if populated
*/}}
{{- define "server.extraContainers" -}}
{{- range $i, $container := .extraContainers }}
name: {{ $container.name }}
image: {{ $container.image }}
command: {{ $container.command }}
{{- end }}
{{- end -}}
Can there be an entry in Gate and Web deployment yamls to allow for additions of init containers and side car containers to be added as part of the values yaml.
For example, in GCP, we're required to have a gce-proxy container to securely speak to our cloudsql DB, using image: gcr.io/cloudsql-docker/gce-proxy:1.17 as a sidecar. This means we have to modify the helm charts leading us to get out of date pretty quickly without the risk of removing the sidecar.
In addition, when Vault injector isn't available, we would use the init containers to retrieve secrets/certs from Vault. Again, this means modifications to helm charts leading us to get out of date quickly.
You could have Values of gate.init.enabled or web.init.enabled and it dumps the config of gate.init.container to the gate deployment YAML. Same with Web & Sidecar containers.
The text was updated successfully, but these errors were encountered: