mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-22 07:50:04 -05:00
helm/gcp: use service account in operator and joinservice
This commit is contained in:
parent
99a81cd246
commit
0df9431663
@ -40,6 +40,9 @@ spec:
|
||||
- --cloud-provider={{ .Values.csp }}
|
||||
- --key-service-endpoint=key-service.{{ .Release.Namespace }}:{{ .Values.global.keyServicePort }}
|
||||
- --attestation-variant={{ .Values.attestationVariant }}
|
||||
env:
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: /var/secrets/google/key.json
|
||||
volumeMounts:
|
||||
- mountPath: {{ .Values.global.serviceBasePath | quote }}
|
||||
name: config
|
||||
@ -47,6 +50,9 @@ spec:
|
||||
- mountPath: /etc/kubernetes
|
||||
name: kubeadm
|
||||
readOnly: true
|
||||
- mountPath: /var/secrets/google
|
||||
name: gcekey
|
||||
readOnly: true
|
||||
ports:
|
||||
- containerPort: {{ .Values.joinServicePort }}
|
||||
name: tcp
|
||||
@ -54,6 +60,10 @@ spec:
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: gcekey
|
||||
secret:
|
||||
secretName: gcekey
|
||||
optional: true
|
||||
- name: config
|
||||
projected:
|
||||
sources:
|
||||
|
@ -42,6 +42,8 @@ spec:
|
||||
value: {{ .Values.csp | quote }}
|
||||
- name: constellation-uid
|
||||
value: {{ .Values.constellationUID | quote }}
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: /var/secrets/google/key.json
|
||||
image: {{ .Values.controllerManager.manager.image | quote }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
@ -72,6 +74,9 @@ spec:
|
||||
- mountPath: /etc/gce
|
||||
name: gceconf
|
||||
readOnly: true
|
||||
- mountPath: /var/secrets/google
|
||||
name: gcekey
|
||||
readOnly: true
|
||||
- mountPath: /etc/constellation-upgrade-agent.sock
|
||||
name: upgrade-agent-socket
|
||||
readOnly: true
|
||||
@ -109,6 +114,10 @@ spec:
|
||||
name: gceconf
|
||||
optional: true
|
||||
name: gceconf
|
||||
- name: gcekey
|
||||
secret:
|
||||
secretName: gcekey
|
||||
optional: true
|
||||
- name: upgrade-agent-socket
|
||||
hostPath:
|
||||
path: /run/constellation-upgrade-agent.sock
|
||||
|
@ -50,6 +50,8 @@ spec:
|
||||
value: GCP
|
||||
- name: constellation-uid
|
||||
value: "42424242424242"
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: /var/secrets/google/key.json
|
||||
image: constellationOperatorImage
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
@ -86,6 +88,9 @@ spec:
|
||||
- mountPath: /etc/gce
|
||||
name: gceconf
|
||||
readOnly: true
|
||||
- mountPath: /var/secrets/google
|
||||
name: gcekey
|
||||
readOnly: true
|
||||
- mountPath: /etc/constellation-upgrade-agent.sock
|
||||
name: upgrade-agent-socket
|
||||
readOnly: true
|
||||
@ -123,6 +128,10 @@ spec:
|
||||
name: gceconf
|
||||
optional: true
|
||||
name: gceconf
|
||||
- name: gcekey
|
||||
secret:
|
||||
secretName: gcekey
|
||||
optional: true
|
||||
- name: upgrade-agent-socket
|
||||
hostPath:
|
||||
path: /run/constellation-upgrade-agent.sock
|
||||
|
@ -40,6 +40,9 @@ spec:
|
||||
- --cloud-provider=AWS
|
||||
- --key-service-endpoint=key-service.testNamespace:9000
|
||||
- --attestation-variant=aws-nitro-tpm
|
||||
env:
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: /var/secrets/google/key.json
|
||||
volumeMounts:
|
||||
- mountPath: /var/config
|
||||
name: config
|
||||
@ -47,6 +50,9 @@ spec:
|
||||
- mountPath: /etc/kubernetes
|
||||
name: kubeadm
|
||||
readOnly: true
|
||||
- mountPath: /var/secrets/google
|
||||
name: gcekey
|
||||
readOnly: true
|
||||
ports:
|
||||
- containerPort: 9090
|
||||
name: tcp
|
||||
@ -54,6 +60,10 @@ spec:
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: gcekey
|
||||
secret:
|
||||
secretName: gcekey
|
||||
optional: true
|
||||
- name: config
|
||||
projected:
|
||||
sources:
|
||||
|
@ -50,6 +50,8 @@ spec:
|
||||
value: Azure
|
||||
- name: constellation-uid
|
||||
value: "42424242424242"
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: /var/secrets/google/key.json
|
||||
image: constellationOperatorImage
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
@ -86,6 +88,9 @@ spec:
|
||||
- mountPath: /etc/gce
|
||||
name: gceconf
|
||||
readOnly: true
|
||||
- mountPath: /var/secrets/google
|
||||
name: gcekey
|
||||
readOnly: true
|
||||
- mountPath: /etc/constellation-upgrade-agent.sock
|
||||
name: upgrade-agent-socket
|
||||
readOnly: true
|
||||
@ -123,6 +128,10 @@ spec:
|
||||
name: gceconf
|
||||
optional: true
|
||||
name: gceconf
|
||||
- name: gcekey
|
||||
secret:
|
||||
secretName: gcekey
|
||||
optional: true
|
||||
- name: upgrade-agent-socket
|
||||
hostPath:
|
||||
path: /run/constellation-upgrade-agent.sock
|
||||
|
@ -40,6 +40,9 @@ spec:
|
||||
- --cloud-provider=Azure
|
||||
- --key-service-endpoint=key-service.testNamespace:9000
|
||||
- --attestation-variant=azure-sev-snp
|
||||
env:
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: /var/secrets/google/key.json
|
||||
volumeMounts:
|
||||
- mountPath: /var/config
|
||||
name: config
|
||||
@ -47,6 +50,9 @@ spec:
|
||||
- mountPath: /etc/kubernetes
|
||||
name: kubeadm
|
||||
readOnly: true
|
||||
- mountPath: /var/secrets/google
|
||||
name: gcekey
|
||||
readOnly: true
|
||||
ports:
|
||||
- containerPort: 9090
|
||||
name: tcp
|
||||
@ -54,6 +60,10 @@ spec:
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: gcekey
|
||||
secret:
|
||||
secretName: gcekey
|
||||
optional: true
|
||||
- name: config
|
||||
projected:
|
||||
sources:
|
||||
|
@ -50,6 +50,8 @@ spec:
|
||||
value: GCP
|
||||
- name: constellation-uid
|
||||
value: "42424242424242"
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: /var/secrets/google/key.json
|
||||
image: constellationOperatorImage
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
@ -86,6 +88,9 @@ spec:
|
||||
- mountPath: /etc/gce
|
||||
name: gceconf
|
||||
readOnly: true
|
||||
- mountPath: /var/secrets/google
|
||||
name: gcekey
|
||||
readOnly: true
|
||||
- mountPath: /etc/constellation-upgrade-agent.sock
|
||||
name: upgrade-agent-socket
|
||||
readOnly: true
|
||||
@ -123,6 +128,10 @@ spec:
|
||||
name: gceconf
|
||||
optional: true
|
||||
name: gceconf
|
||||
- name: gcekey
|
||||
secret:
|
||||
secretName: gcekey
|
||||
optional: true
|
||||
- name: upgrade-agent-socket
|
||||
hostPath:
|
||||
path: /run/constellation-upgrade-agent.sock
|
||||
|
@ -40,6 +40,9 @@ spec:
|
||||
- --cloud-provider=GCP
|
||||
- --key-service-endpoint=key-service.testNamespace:9000
|
||||
- --attestation-variant=gcp-sev-es
|
||||
env:
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: /var/secrets/google/key.json
|
||||
volumeMounts:
|
||||
- mountPath: /var/config
|
||||
name: config
|
||||
@ -47,6 +50,9 @@ spec:
|
||||
- mountPath: /etc/kubernetes
|
||||
name: kubeadm
|
||||
readOnly: true
|
||||
- mountPath: /var/secrets/google
|
||||
name: gcekey
|
||||
readOnly: true
|
||||
ports:
|
||||
- containerPort: 9090
|
||||
name: tcp
|
||||
@ -54,6 +60,10 @@ spec:
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: gcekey
|
||||
secret:
|
||||
secretName: gcekey
|
||||
optional: true
|
||||
- name: config
|
||||
projected:
|
||||
sources:
|
||||
|
@ -50,6 +50,8 @@ spec:
|
||||
value: GCP
|
||||
- name: constellation-uid
|
||||
value: "42424242424242"
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: /var/secrets/google/key.json
|
||||
image: constellationOperatorImage
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
@ -86,6 +88,9 @@ spec:
|
||||
- mountPath: /etc/gce
|
||||
name: gceconf
|
||||
readOnly: true
|
||||
- mountPath: /var/secrets/google
|
||||
name: gcekey
|
||||
readOnly: true
|
||||
- mountPath: /etc/constellation-upgrade-agent.sock
|
||||
name: upgrade-agent-socket
|
||||
readOnly: true
|
||||
@ -123,6 +128,10 @@ spec:
|
||||
name: gceconf
|
||||
optional: true
|
||||
name: gceconf
|
||||
- name: gcekey
|
||||
secret:
|
||||
secretName: gcekey
|
||||
optional: true
|
||||
- name: upgrade-agent-socket
|
||||
hostPath:
|
||||
path: /run/constellation-upgrade-agent.sock
|
||||
|
@ -40,6 +40,9 @@ spec:
|
||||
- --cloud-provider=OpenStack
|
||||
- --key-service-endpoint=key-service.testNamespace:9000
|
||||
- --attestation-variant=qemu-vtpm
|
||||
env:
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: /var/secrets/google/key.json
|
||||
volumeMounts:
|
||||
- mountPath: /var/config
|
||||
name: config
|
||||
@ -47,6 +50,9 @@ spec:
|
||||
- mountPath: /etc/kubernetes
|
||||
name: kubeadm
|
||||
readOnly: true
|
||||
- mountPath: /var/secrets/google
|
||||
name: gcekey
|
||||
readOnly: true
|
||||
ports:
|
||||
- containerPort: 9090
|
||||
name: tcp
|
||||
@ -54,6 +60,10 @@ spec:
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: gcekey
|
||||
secret:
|
||||
secretName: gcekey
|
||||
optional: true
|
||||
- name: config
|
||||
projected:
|
||||
sources:
|
||||
|
@ -50,6 +50,8 @@ spec:
|
||||
value: QEMU
|
||||
- name: constellation-uid
|
||||
value: "42424242424242"
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: /var/secrets/google/key.json
|
||||
image: constellationOperatorImage
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
@ -86,6 +88,9 @@ spec:
|
||||
- mountPath: /etc/gce
|
||||
name: gceconf
|
||||
readOnly: true
|
||||
- mountPath: /var/secrets/google
|
||||
name: gcekey
|
||||
readOnly: true
|
||||
- mountPath: /etc/constellation-upgrade-agent.sock
|
||||
name: upgrade-agent-socket
|
||||
readOnly: true
|
||||
@ -123,6 +128,10 @@ spec:
|
||||
name: gceconf
|
||||
optional: true
|
||||
name: gceconf
|
||||
- name: gcekey
|
||||
secret:
|
||||
secretName: gcekey
|
||||
optional: true
|
||||
- name: upgrade-agent-socket
|
||||
hostPath:
|
||||
path: /run/constellation-upgrade-agent.sock
|
||||
|
@ -40,6 +40,9 @@ spec:
|
||||
- --cloud-provider=QEMU
|
||||
- --key-service-endpoint=key-service.testNamespace:9000
|
||||
- --attestation-variant=qemu-vtpm
|
||||
env:
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: /var/secrets/google/key.json
|
||||
volumeMounts:
|
||||
- mountPath: /var/config
|
||||
name: config
|
||||
@ -47,6 +50,9 @@ spec:
|
||||
- mountPath: /etc/kubernetes
|
||||
name: kubeadm
|
||||
readOnly: true
|
||||
- mountPath: /var/secrets/google
|
||||
name: gcekey
|
||||
readOnly: true
|
||||
ports:
|
||||
- containerPort: 9090
|
||||
name: tcp
|
||||
@ -54,6 +60,10 @@ spec:
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: gcekey
|
||||
secret:
|
||||
secretName: gcekey
|
||||
optional: true
|
||||
- name: config
|
||||
projected:
|
||||
sources:
|
||||
|
@ -31,6 +31,9 @@ spec:
|
||||
- /manager
|
||||
args:
|
||||
- --leader-elect
|
||||
env:
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: /var/secrets/google/key.json
|
||||
image: controller:latest
|
||||
name: manager
|
||||
securityContext:
|
||||
@ -60,6 +63,9 @@ spec:
|
||||
- mountPath: /etc/gce
|
||||
name: gceconf
|
||||
readOnly: true
|
||||
- mountPath: /var/secrets/google
|
||||
name: gcekey
|
||||
readOnly: true
|
||||
- mountPath: /etc/constellation-upgrade-agent.sock
|
||||
name: upgrade-agent-socket
|
||||
readOnly: true
|
||||
@ -91,6 +97,10 @@ spec:
|
||||
configMap:
|
||||
name: gceconf
|
||||
optional: true
|
||||
- name: gcekey
|
||||
secret:
|
||||
secretName: gcekey
|
||||
optional: true
|
||||
- name: upgrade-agent-socket
|
||||
hostPath:
|
||||
path: /run/constellation-upgrade-agent.sock
|
||||
|
Loading…
x
Reference in New Issue
Block a user