...
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 labels:
5 app: contour
6 name: contour
7 namespace: heptio-contour
8spec:
9 replicas: 2
10 selector:
11 matchLabels:
12 app: contour
13 template:
14 metadata:
15 annotations:
16 prometheus.io/format: prometheus
17 prometheus.io/path: /stats
18 prometheus.io/port: "9001"
19 prometheus.io/scrape: "true"
20 labels:
21 app: contour
22 spec:
23 containers:
24 - args:
25 - serve
26 - --incluster
27 command:
28 - contour
29 image: gcr.io/heptio-images/contour:master
30 imagePullPolicy: Always
31 name: contour
32 - args:
33 - --config-path /config/contour.yaml
34 - --service-cluster cluster0
35 - --service-node node0
36 - --log-level info
37 - --v2-config-only
38 command:
39 - envoy
40 image: docker.io/envoyproxy/envoy-alpine:v1.6.0
41 name: envoy
42 ports:
43 - containerPort: 8080
44 name: http
45 - containerPort: 8443
46 name: https
47 volumeMounts:
48 - mountPath: /config
49 name: contour-config
50 initContainers:
51 - args:
52 - bootstrap
53 - /config/contour.yaml
54 command:
55 - contour
56 image: gcr.io/heptio-images/contour:master
57 imagePullPolicy: Always
58 name: envoy-initconfig
59 volumeMounts:
60 - mountPath: /config
61 name: contour-config
62---
View as plain text