/
03-contour.yaml
76 lines (75 loc) · 1.85 KB
/
03-contour.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
74
75
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: contour
name: contour
namespace: heptio-contour
spec:
replicas: 2
selector:
matchLabels:
app: contour
template:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8000"
labels:
app: contour
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
app: contour
topologyKey: kubernetes.io/hostname
weight: 100
containers:
- args:
- serve
- --incluster
- --xds-address=0.0.0.0
- --xds-port=8001
- --envoy-service-http-port=80
- --envoy-service-https-port=443
- --contour-cafile=/ca/cacert.pem
- --contour-cert-file=/certs/tls.crt
- --contour-key-file=/certs/tls.key
command: ["contour"]
image: gcr.io/heptio-images/contour:v0.14.1
imagePullPolicy: Always
name: contour
ports:
- containerPort: 8001
name: xds
protocol: TCP
- containerPort: 8000
name: debug
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: 8000
readinessProbe:
httpGet:
path: /healthz
port: 8000
volumeMounts:
- name: contourcert
mountPath: "/certs"
readOnly: true
- name: cacert
mountPath: "/ca"
readOnly: true
dnsPolicy: ClusterFirst
serviceAccountName: contour
volumes:
- name: contourcert
secret:
secretName: contourcert
- name: cacert
secret:
secretName: cacert