Skip to content

Commit 2071d14

Browse files
author
Gleb Mishchenko
committed
use service account key in helm
1 parent e2a5561 commit 2071d14

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

helm/yandex-cloud-connectors/templates/system/deployment.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ spec:
2020
containers:
2121
- image: {{ .Values.imageRegistry }}/manager:{{ .Chart.AppVersion }}
2222
args:
23+
- --service-account-key-file
24+
- /secret/key
2325
{{ if .Values.debug }}- --debug{{ end }}
2426
name: manager
2527
securityContext:
@@ -51,8 +53,14 @@ spec:
5153
- mountPath: /etc/yandex-cloud-connectors/certs
5254
name: tls-certificate
5355
readOnly: true
56+
- mountPath: /secret
57+
name: sakey
58+
readOnly: true
5459
volumes:
5560
- name: tls-certificate
5661
secret:
5762
secretName: webhook-tls-cert
63+
- name: sakey
64+
secret:
65+
secretName: connector-sakey-secret
5866
terminationGracePeriodSeconds: 10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: connector-sakey-secret
5+
namespace: {{ .Values.namespace }}
6+
stringData:
7+
key: |
8+
{{ required "saKey value is required to be set on install" .Values.saKey | indent 4}}
+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
namespace: yandex-cloud-connectors
22
imageRegistry: cr.yandex/yc/cloud-connectors
33
debug: false
4+
saKey:
5+

0 commit comments

Comments
 (0)