Debian Codegraph @

example/deployment/kubernetes/deployment.yaml

raw
1 apiVersion: v1
2 kind: Service
3 metadata:
4 name: websockets-test
5 spec:
6 type: NodePort
7 ports:
8 - port: 80
9 nodePort: 32080
10 selector:
11 app: websockets-test
12 ---
13 apiVersion: apps/v1
14 kind: Deployment
15 metadata:
16 name: websockets-test
17 spec:
18 selector:
19 matchLabels:
20 app: websockets-test
21 template:
22 metadata:
23 labels:
24 app: websockets-test
25 spec:
26 containers:
27 - name: websockets-test
28 image: websockets-test:1.0
29 livenessProbe:
30 httpGet:
31 path: /healthz
32 port: 80
33 periodSeconds: 1
34 ports:
35 - containerPort: 80