-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsia.yaml
73 lines (73 loc) · 1.97 KB
/
sia.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
spec:
template:
spec:
containers:
- args:
- --mode=refresh
image: local/athenz-sia:latest
imagePullPolicy: IfNotPresent
name: sia
volumeMounts:
- mountPath: /var/run/athenz
name: tls-certs
- mountPath: /var/run/secrets/kubernetes.io/bound-serviceaccount
name: identityd-token
readOnly: true
initContainers:
- args:
- --mode=init
image: local/athenz-sia:latest
imagePullPolicy: IfNotPresent
name: sia-init
volumeMounts:
- mountPath: /var/run/athenz
name: tls-certs
- mountPath: /var/run/secrets/kubernetes.io/bound-serviceaccount
name: identityd-token
readOnly: true
env:
- name: NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: POD_UID
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.uid
- name: SERVICEACCOUNT
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.serviceAccountName
- name: POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: HOST_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.hostIP
- name: NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
volumes:
- emptyDir: {}
name: tls-certs
- name: identityd-token
projected:
sources:
- serviceAccountToken:
audience: athenz-identityd
expirationSeconds: 3600
path: token