Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions manifests/pipecd/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,24 @@ spec:
app.kubernetes.io/component: server
spec:
containers:
{{- if .Value.cloudSQLProxy.enabled }}
- name: cloud-sql-proxy
image: "gcr.io/cloudsql-docker/gce-proxy:{{ .Values.cloudSQLProxy.version }}"
command:
- "/cloud_sql_proxy"
- "-instances={{ .Values.cloudSQLProxy.args.instanceConnectionName }}=tcp:{{ .Values.cloudSQLProxy.args.port }}"
- "-credential_file={{ .Values.secret.mountPath }}/{{ .Values.secret.cloudSQLServiceAccount.fileName }}"
securityContext:
runAsNonRoot: true
volumeMounts:
- name: pipecd-secret
mountPath: {{ .Values.secret.mountPath }}
readOnly: true
{{- if .Values.cloudSQLProxy.resources }}
resources:
{{- toYaml .Values.cloudSQLProxy.resources | nindent 12 }}
{{- end }}
{{- end }}
- name: server
image: "{{ .Values.server.image.repository }}:{{ .Chart.AppVersion }}"
imagePullPolicy: IfNotPresent
Expand Down Expand Up @@ -210,6 +228,20 @@ spec:
app.kubernetes.io/component: ops
spec:
containers:
{{- if .Value.cloudSQLProxy.enabled }}
- name: cloud-sql-proxy
image: "gcr.io/cloudsql-docker/gce-proxy:{{ .Values.cloudSQLProxy.version }}"
command:
- "/cloud_sql_proxy"
- "-instances={{ .Values.cloudSQLProxy.args.instanceConnectionName }}=tcp:{{ .Values.cloudSQLProxy.args.port }}"
- "-credential_file={{ .Values.secret.mountPath }}/{{ .Values.secret.cloudSQLServiceAccount.fileName }}"
securityContext:
runAsNonRoot: true
volumeMounts:
- name: pipecd-secret
mountPath: {{ .Values.secret.mountPath }}
readOnly: true
{{- end }}
- name: ops
image: "{{ .Values.ops.image.repository }}:{{ .Chart.AppVersion }}"
imagePullPolicy: IfNotPresent
Expand Down
8 changes: 8 additions & 0 deletions manifests/pipecd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ ops:
metrics: true
resources: {}

cloudSQLProxy:
enabled: false
version: 1.17
args:
instanceConnectionName: ""
port: 3306
resources: {}

mysql:
imageTag: "8.0.23"
resources: {}
Expand Down