44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
|
{{- if .Values.services.couchdb.backup.enabled }}
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
annotations:
|
||
|
kompose.cmd: kompose convert
|
||
|
kompose.version: 1.21.0 (992df58d8)
|
||
|
creationTimestamp: null
|
||
|
labels:
|
||
|
app.kubernetes.io/name: couchdb-backup
|
||
|
name: couchdb-backup
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app.kubernetes.io/name: couchdb-backup
|
||
|
strategy:
|
||
|
type: Recreate
|
||
|
template:
|
||
|
metadata:
|
||
|
annotations:
|
||
|
kompose.cmd: kompose convert
|
||
|
kompose.version: 1.21.0 (992df58d8)
|
||
|
creationTimestamp: null
|
||
|
labels:
|
||
|
app.kubernetes.io/name: couchdb-backup
|
||
|
spec:
|
||
|
containers:
|
||
|
- env:
|
||
|
- name: SOURCE
|
||
|
value: {{ .Values.services.couchdb.url }}
|
||
|
- name: TARGET
|
||
|
value: {{ .Values.services.couchdb.backup.target }}
|
||
|
- name: RUN_EVERY_SECS
|
||
|
value: {{ .Values.services.couchdb.backup.interval }}
|
||
|
- name: VERBOSE
|
||
|
value: "true"
|
||
|
image: redgeoff/replicate-couchdb-cluster
|
||
|
imagePullPolicy: Always
|
||
|
name: couchdb-backup
|
||
|
resources: {}
|
||
|
status: {}
|
||
|
{{- end }}
|