...
1apiVersion: v1
2kind: Service
3metadata:
4 name: souschef
5 labels:
6 app: souschef
7 domain: prod
8 component: kitchen
9spec:
10 ports:
11 - port: 8080
12 protocol: TCP
13 targetPort: 8080
14 name: client
15 selector:
16 app: souschef
17---
18apiVersion: apps/v1
19kind: Deployment
20metadata:
21 name: souschef
22spec:
23 replicas: 1
24 template:
25 metadata:
26 labels:
27 app: souschef
28 domain: prod
29 component: kitchen
30 spec:
31 containers:
32 - image: gcr.io/myproj/souschef:v0.5.3
33 ports:
34 - containerPort: 8080
35 name: souschef
36 livenessProbe:
37 httpGet:
38 path: /debug/health
39 port: 8080
40 initialDelaySeconds: 40
41 periodSeconds: 3
View as plain text