...
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: watcher
5spec:
6 replicas: 1
7 # podTemplate defines the 'cookie cutter' used for creating
8 # new pods when necessary
9 template:
10 metadata:
11 labels:
12 # Important: these labels need to match the selector above
13 # The api server enforces this constraint.
14 app: watcher
15 domain: prod
16 component: infra
17 spec:
18 volumes:
19 - name: secret-volume
20 secret:
21 secretName: star-example-com-secrets
22 containers:
23 - image: gcr.io/myproj/watcher:v0.1.0
24 ports:
25 - containerPort: 7080
26 - containerPort: 7788
27 name: watcher
28 volumeMounts:
29 - mountPath: /etc/ssl
30 name: secret-volume
31
View as plain text