-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathhttpbin.yaml
47 lines (47 loc) · 938 Bytes
/
httpbin.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
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: multi-zone-ha-httpbin
name: multi-zone-ha-httpbin
spec:
replicas: 3
selector:
matchLabels:
app: multi-zone-ha-httpbin
strategy: {}
template:
metadata:
labels:
app: multi-zone-ha-httpbin
spec:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app: multi-zone-ha-httpbin
containers:
- image: docker.io/kennethreitz/httpbin
name: httpbin
resources: {}
ports:
- containerPort: 80
status: {}
---
apiVersion: v1
kind: Service
metadata:
labels:
app: multi-zone-ha-httpbin
name: multi-zone-ha-httpbin
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: multi-zone-ha-httpbin
status:
loadBalancer: {}