-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathperimeter-test.yml
74 lines (74 loc) · 1.17 KB
/
perimeter-test.yml
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
---
apiVersion: v1
kind: Namespace
metadata:
name: channel
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: cluster-perimeter
namespace: channel
spec:
replicas: 1
selector:
matchLabels:
role: channel
template:
metadata:
labels:
role: channel
spec:
containers:
- name: stub
image: solsson/http-echo@sha256:a6e24bd4bd1388d50b16c3da1652fbb6effdfdd23a9fe565712c6b73120a3826
ports:
- name: http
containerPort: 80
hostPort: 80
- name: https
containerPort: 443
hostPort: 443
---
kind: Service
apiVersion: v1
metadata:
name: perimeter
namespace: channel
spec:
type: ClusterIP
selector:
role: channel
ports:
- protocol: TCP
port: 80
targetPort: 80
---
kind: Service
apiVersion: v1
metadata:
name: perimeter-port80
namespace: channel
spec:
type: NodePort
selector:
role: channel
ports:
- protocol: TCP
port: 80
targetPort: 80
nodePort: 80
---
kind: Pod
apiVersion: v1
metadata:
name: test
namespace: channel
spec:
containers:
- name: curl
image: solsson/curl
command:
- tail
- -f
- /dev/null