-
Notifications
You must be signed in to change notification settings - Fork 175
/
deployment-base.yaml
63 lines (63 loc) · 1.44 KB
/
deployment-base.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: pod-identity-webhook
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: pod-identity-webhook
template:
metadata:
labels:
app: pod-identity-webhook
spec:
serviceAccountName: pod-identity-webhook
containers:
- name: pod-identity-webhook
image: IMAGE
imagePullPolicy: Always
command:
- /webhook
- --in-cluster=false
- --namespace=default
- --service-name=pod-identity-webhook
- --annotation-prefix=eks.amazonaws.com
- --token-audience=sts.amazonaws.com
- --logtostderr
volumeMounts:
- name: cert
mountPath: "/etc/webhook/certs"
readOnly: true
volumes:
- name: cert
secret:
secretName: pod-identity-webhook-cert
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: selfsigned
spec:
selfSigned: {}
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: pod-identity-webhook
namespace: default
spec:
secretName: pod-identity-webhook-cert
commonName: "pod-identity-webhook.default.svc"
dnsNames:
- "pod-identity-webhook"
- "pod-identity-webhook.default"
- "pod-identity-webhook.default.svc"
- "pod-identity-webhook.default.svc.local"
isCA: true
duration: 2160h # 90d
renewBefore: 360h # 15d
issuerRef:
name: selfsigned
kind: ClusterIssuer