英文:
Is it possible to install bitnami/etcd using my own PVC?
问题
我正在使用AWS,为我的新PV和PVC创建了EFS。
我有一个K8s集群,节点位于不同的区域,所以我决定在节点在不同区域被杀死或重建时使用EFS。
我还创建了一个名为PV的PV:
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: some-test-pv
spec:
capacity:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
storageClassName: "gp3"
persistentVolumeReclaimPolicy: Retain
csi:
driver: efs.csi.aws.com
volumeHandle: fs-[我从AWS控制台获取的ID]
作为下一步,我试图安装bitnami/etcd(https://github.com/bitnami/charts/tree/main/bitnami/etcd),但我无法配置它以使用我的PV(我在values.yaml中使用 - helm install etcd -f values.yaml --namespace test bitnami/etcd
):
persistence:
enabled: true
storageClass: ""
annotations: {}
accessModes:
- ReadWriteOnce
size: 1Gi
selector:
matchExpressions:
- { key: name, operator: In, values: [some-test-pv] }
但看起来它试图使用ebs.csi.aws.com
来创建PVC。是否可以将它指向EFS?
英文:
I am using AWS and I created EFS for my new PV and PVC.
I have K8s cluster with nodes in different zones, so I decided to use EFS for cases when node will be killed or died and recreated on node in different zone.
I also created PV with name:
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: some-test-pv
spec:
capacity:
storage: 1Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
storageClassName: "gp3"
persistentVolumeReclaimPolicy: Retain
csi:
driver: efs.csi.aws.com
volumeHandle: fs-[ID which I got from AWS console]
As a next step - I am trying to install bitnami/etcd (https://github.com/bitnami/charts/tree/main/bitnami/etcd) but I cant configure it to use my PV (I am using values.yaml - helm install etcd -f values.yaml --namespace test bitnami/etcd
):
persistence:
enabled: true
storageClass: ""
annotations: {}
accessModes:
- ReadWriteOnce
size: 1Gi
## @param persistence.selector [object] Selector to match an existing Persistent Volume
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#selector
##
selector:
matchExpressions:
- { key: name, operator: In, values: [some-test-pv] }
But looks like it trying to create PVC using ebs.csi.aws.com
.
Is it possible to point it to EFS?
答案1
得分: 0
在值中,您可以使用以下内容:
persistence:
...
existingClaim: some-test-pv
英文:
In values you can use this:
persistence:
...
existingClaim: some-test-pv
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论