set volume access modes

This commit is contained in:
Mikaël Cluseau 2023-09-27 22:07:05 +02:00
parent 750744ea3b
commit 9476d38a2b

View File

@ -17,7 +17,8 @@ spec:
containers: containers:
- name: db - name: db
image: quay.io/coreos/etcd:v3.5.9 image: quay.io/coreos/etcd:v3.5.9
args: command:
- etcd
- --data-dir=/data - --data-dir=/data
env: env:
- name: ETCD_INITIAL_CLUSTER_STATE - name: ETCD_INITIAL_CLUSTER_STATE
@ -29,7 +30,9 @@ spec:
- metadata: - metadata:
name: data name: data
spec: spec:
storageClass: local storageClassName: local
accessModes:
- ReadWriteOnce
resources: resources:
requests: requests:
storage: 1Gi storage: 1Gi