...
1apiVersion: v1
2kind: Service
3metadata:
4 name: pastrychef
5 labels:
6 app: pastrychef
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: pastrychef
17 domain: prod
18 component: kitchen
19---
20apiVersion: apps/v1
21kind: Deployment
22metadata:
23 name: pastrychef
24spec:
25 replicas: 1
26 template:
27 metadata:
28 annotations:
29 prometheus.io.scrape: "true"
30 labels:
31 app: pastrychef
32 domain: prod
33 component: kitchen
34 spec:
35 volumes:
36 - name: pastrychef-disk
37 gcePersistentDisk:
38 pdName: pastrychef-disk
39 fsType: ext4
40 - name: secret-ssh-key
41 secret:
42 secretName: secrets
43 containers:
44 - image: gcr.io/myproj/pastrychef:v0.1.15
45 volumeMounts:
46 - name: pastrychef-disk
47 mountPath: /logs
48 - mountPath: /etc/certs
49 name: secret-ssh-key
50 readOnly: true
51 ports:
52 - containerPort: 8080
53 args: [
54 "-env=prod",
55 "-ssh-tunnel-key=/etc/certs/tunnel-private.pem",
56 "-logdir=/logs",
57 "-event-server=events:7788",
58 "-reconnect-delay=1m",
59 "-etcd=etcd:2379",
60 "-recovery-overlap=10000"
61 ]
62 name: pastrychef
63 livenessProbe:
64 httpGet:
65 path: /debug/health
66 port: 8080
67 initialDelaySeconds: 40
68 periodSeconds: 3
View as plain text