-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
42 lines (42 loc) · 927 Bytes
/
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: etcd-backup-controller
spec:
replicas: 1
selector:
matchLabels:
app: etcd-backup-controller
template:
metadata:
labels:
app: etcd-backup-controller
spec:
containers:
- name: etcd-backup-controller
image: sundaram2023/etcd-backup-controller:5
volumeMounts:
- name: backup-volume
mountPath: /backup
resources:
limits:
memory: "128Mi"
cpu: "500m"
env:
- name: ETCD_ENDPOINT
value: "https://127.0.0.1:2379"
volumes:
- name: backup-volume
persistentVolumeClaim:
claimName: etcd-backup-pvc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: etcd-backup-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi