generated from cloudnative-pg/cnpg-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
deployment.yaml
57 lines (57 loc) · 1.31 KB
/
deployment.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
48
49
50
51
52
53
54
55
56
57
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: barman-cloud
name: barman-cloud
spec:
replicas: 1
selector:
matchLabels:
app: barman-cloud
strategy:
type: Recreate
template:
metadata:
labels:
app: barman-cloud
spec:
serviceAccountName: plugin-barman-cloud
containers:
- image: plugin-barman-cloud:latest
name: barman-cloud
ports:
- containerPort: 9090
protocol: TCP
env:
- name: SIDECAR_IMAGE
valueFrom:
secretKeyRef:
key: SIDECAR_IMAGE
name: plugin-barman-cloud
args:
- operator
- --server-cert=/server/tls.crt
- --server-key=/server/tls.key
- --client-cert=/client/tls.crt
- --server-address=:9090
- --leader-elect
- --log-level=debug
readinessProbe:
tcpSocket:
port: 9090
initialDelaySeconds: 10
periodSeconds: 10
volumeMounts:
- mountPath: /server
name: server
- mountPath: /client
name: client
resources: {}
volumes:
- name: server
secret:
secretName: barman-cloud-server-tls
- name: client
secret:
secretName: barman-cloud-client-tls