-
Notifications
You must be signed in to change notification settings - Fork 76
/
deployment.yaml
66 lines (66 loc) · 1.65 KB
/
deployment.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: "k8s-sidecar-injector-prod"
namespace: "kube-system"
labels:
k8s-app: "k8s-sidecar-injector"
track: "prod"
spec:
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels:
k8s-app: "k8s-sidecar-injector"
track: "prod"
spec:
serviceAccountName: k8s-sidecar-injector
volumes:
- name: secrets
secret:
secretName: k8s-sidecar-injector
containers:
- name: "k8s-sidecar-injector"
imagePullPolicy: Always
image: tumblr/k8s-sidecar-injector:latest
command: ["entrypoint.sh"]
args: []
ports:
- name: https
containerPort: 9443
- name: http-metrics
containerPort: 9000
volumeMounts:
- name: secrets
mountPath: /var/lib/secrets
livenessProbe:
httpGet:
scheme: HTTPS
path: /health
port: https
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 3
resources:
requests:
cpu: "0.5"
memory: 1Gi
limits:
cpu: "0.5"
memory: 2Gi
env:
- name: "TLS_CERT_FILE"
value: "/var/lib/secrets/sidecar-injector.crt"
- name: "TLS_KEY_FILE"
value: "/var/lib/secrets/sidecar-injector.key"
- name: "LOG_LEVEL"
value: "2"
- name: "CONFIG_DIR"
value: "conf/"
- name: "CONFIGMAP_LABELS"
value: "app=k8s-sidecar-injector"