mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 21:23:12 +01:00
Update the `README` file with usage instructions. Signed-off-by: Leonardo Cecchi <leonardo.cecchi@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
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
|