-
Notifications
You must be signed in to change notification settings - Fork 38
/
test.yaml
90 lines (88 loc) · 1.78 KB
/
test.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
76
77
78
79
80
81
82
83
84
85
86
87
88
apiVersion: v1
kind: Pod
metadata:
name: envoy-vcl
namespace: envoy
labels:
app: envoy-vcl
annotations:
"cni.projectcalico.org/vppVcl": "enable"
spec:
containers:
- name: envoy-vcl
image: envoyproxy/envoy-contrib:v1.21-latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5001
- containerPort: 5003
command: ["tail", "-f", "/dev/null"]
volumeMounts:
- mountPath: /home/hostuser
name: hostuser
- mountPath: /etc/envoy/envoy.yaml
name: envoyyaml
- mountPath: /etc/vpp/vcl.conf
name: vclconf
volumes:
- name: hostuser
hostPath:
path: ${HOME}
- name: envoyyaml
hostPath:
path: ${VPP_DATAPLANE_DIRECTORY}/test/yaml/envoy/envoyvcl.yaml
- name: vclconf
hostPath:
path: ${VPP_DATAPLANE_DIRECTORY}/test/yaml/envoy/vcl.conf
---
apiVersion: v1
kind: Service
metadata:
namespace: envoy
name: envoy-vcl-service
spec:
selector:
app: envoy-vcl
ports:
- protocol: TCP
port: 10001
---
apiVersion: v1
kind: Pod
metadata:
name: envoy-linux
namespace: envoy
labels:
app: envoy-linux
spec:
containers:
- name: envoy-linux
image: envoyproxy/envoy-contrib:v1.21-latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5001
- containerPort: 5003
command: ["tail", "-f", "/dev/null"]
volumeMounts:
- mountPath: /home/hostuser
name: hostuser
- mountPath: /etc/envoy/envoy.yaml
name: envoyyaml
volumes:
- name: hostuser
hostPath:
path: ${HOME}
- name: envoyyaml
hostPath:
path: ${VPP_DATAPLANE_DIRECTORY}/test/yaml/envoy/envoy.yaml
---
apiVersion: v1
kind: Service
metadata:
namespace: envoy
name: envoy-linux-service
spec:
selector:
app: envoy-linux
ports:
- protocol: TCP
port: 10001