generated from edgexfoundry-holding/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 7
/
create-proxy-user.job.yaml
51 lines (51 loc) · 1.6 KB
/
create-proxy-user.job.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
apiVersion: batch/v1
kind: Job
metadata:
name: security-proxy-setup
spec:
template:
spec:
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
org.edgexfoundry.service: edgex-security-secretstore-setup
topologyKey: "kubernetes.io/hostname"
imagePullSecrets:
- name: dockerhub
automountServiceAccountToken: false
containers:
- name: security-proxy-setup
image: nexus3.edgexfoundry.org:10004/security-proxy-setup:latest
imagePullPolicy: Always
command: ["/edgex-init/ready_to_run_wait_install.sh"]
args: ["/edgex/secrets-config", "proxy", "adduser", "--user", "edgexuser", "--useRootToken"]
envFrom:
- configMapRef:
name: edgex-common-variables
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
volumeMounts:
- mountPath: /edgex-init
name: edgex-init
- mountPath: /vault/config
name: vault-config
- mountPath: /tmp/edgex/secrets
name: edgex-secrets
restartPolicy: Never
securityContext:
runAsNonRoot: false
runAsUser: 0
runAsGroup: 0
volumes:
- name: edgex-init
persistentVolumeClaim:
claimName: edgex-init
- name: vault-config
persistentVolumeClaim:
claimName: vault-config
- name: edgex-secrets
persistentVolumeClaim:
claimName: edgex-secrets