![](/img/trans.png)
[英]pod has unbound immediate PersistentVolumeClaims, I deployed milvus server using
etcd:已啟用:真名稱:etcd replicaCount:3 pdb:創建:假圖像:存儲庫:“milvusdb/etcd”標簽:“3.5.0-r7”pullPolicy:IfNotPresent 服務:類型:ClusterIP 端口:2379 peerPort:2380 身份驗證:rbac:已 ...
[英]pod has unbound immediate PersistentVolumeClaims, I deployed milvus server using
etcd:已啟用:真名稱:etcd replicaCount:3 pdb:創建:假圖像:存儲庫:“milvusdb/etcd”標簽:“3.5.0-r7”pullPolicy:IfNotPresent 服務:類型:ClusterIP 端口:2379 peerPort:2380 身份驗證:rbac:已 ...
[英]How to Read File from PersistentVolumeClaims in SpringBoot
我的 OpenShift PersistentVolumeClaims 中有“file.txt”。 我的 StorageClasses 是 NFS。 是否可以從我的 spring-boot 代碼訪問和讀取“file.txt”? (此 spring-boot 代碼將部署在 OpenShift 上,我 ...
[英]Kubernetes create a persistentVolume per pod in deployment
我在 Kube.netes 中有以下PersistentVolumeClaim和Deployment : 問題是這只是創建了一個掛載到每個 pod 中的卷。 我有replicas: 3 。 如何為每個 pod 創建一個卷? 我需要繼續使用Deployment並且不能遷移到使用StatefulSet ...
[英]Can I reuse same Persistent Volume for another PersistentVolumeClaim with an access mode of `ReadWriteOnce`?
我有一個用例,我希望單個 pod 在任何給定時間使用一個 PV,然后一旦 pod 被刪除,同一個 PV 應該被另一個 pod 使用。 有沒有辦法在 k8s 中實現這一點? 注意:- 我的豆莢是有生命的(可能會停留大約 60-90 分鍾) ...
[英]Get details of persistent volume claim using python k8s client
我正在嘗試獲取persistentvolumeclaim的詳細信息,例如當您運行kubectl describe pvc [your-pvc-name]時可以獲得的“Used By” ,但我正在嘗試使用 python k8s 客戶端來獲取它。 我能夠通過readNamespacedPersisten ...
[英]Helm Postgres will not bind to PVC
我正在通過以下步驟使用 helm 部署 postgres DB: 申請光伏: 應用PVC: 運行 helm 命令: 這是 output: ...
[英]When is pre-provisioned VolumeSnapshot useful in Kubernetes?
我正在閱讀https://kubernetes.io/docs/concepts/storage/volume-snapshots/的VolumeSnapshot和VolumeSnapshotContent的 Kubernetes 文檔。 但是,當我閱讀“預先配置的快照”部分時,我有點困惑。 可以 ...
[英]Share multiple folders in pod using persistent volumes
我想使用 kubernetes 的 PersistentVolume reqource 共享多個卷。 我想在 pod 中共享“/opt/*”文件夾。 但不是“/ opt”: 但是在 pod 中我看不到共享卷。 如果我只共享“/opt”文件夾,那么它會顯示在 pod 中。 有什么我想念的嗎? ...
[英]Kubernetes - All PVCs Bound, yet "pod has unbound immediate PersistentVolumeClaims"
不幸的是,我無法粘貼配置或kubectl output,但請多多包涵。 使用 helm 將一系列容器部署到initContainer 1.14.6,所有容器都部署成功,除了那些在其中定義了 initContainer 部分的容器。 在這些失敗的部署中,它們的模板定義了container和initC ...
[英]Fabric8 KubernetesClient sends volumeName as empty string for PersistentVolumeClaim causing Forbidden: spec is immutable after creation
我想使用fabric8 kubernetes-client多次應用以下 yamlapiVersion: v1 kind: PersistentVolumeClaim metadata: name: my-pvc spec: storageClassName: my-storage-class ...
[英]K8s which access mode should be used in a persistentvolumeclaim for a database deployment?
我想將 PostgreSQL 數據庫中的數據存儲在persistentvolumeclaim中。 (在 Microsoft Azure 上的托管 Kubernetes 集群上) 而且我不確定選擇哪種訪問模式。 查看可用的訪問模式: ReadWriteOnce ReadOnlyMany ReadW ...
[英]Error con Pods in Azure k8s (Volume capability not supported)
我在 azure k8s 集群(4Gb 標准硬盤)中創建了磁盤 我使用的是代碼 PV 文件然后我正在創建 PVC: 聚氯乙烯 yaml 將我的卷附加到 Pod: Pod 卷附件但是當我檢查我的 Pod 的狀態時,我得到了一個錯誤: 您能否提供建議,我該如何解決這個問題: Warning Fail ...
[英]Setup a 3 replicas StatefulSet with MongoDB in ReplicaSet mode bound to local persistence in Kubernetes cluster
我從 K8s 開始,我並沒有完全圍繞使用PV + PVC + SC與volumeClaimTemplates + HostPath場景部署具有多個副本的 StatefulSet 綁定到本地磁盤。 我的目標是部署一個 MongoDB StatefulSet,其中 3 個副本設置為(mongo 的副本集 ...
[英]Is there a way to put different limitRange for different StorageClasses per namespace
我知道我們可以為每個命名空間的StorageClass放置一個ResourceQuota ,這將限制我們可以為每個命名空間的每個 StorageClass 請求的存儲總量。 關聯 我也知道我們可以創建一個LimitRange來限制單個PersistentVolumeClaim以請求定義范圍內的存儲 ...
[英]How to monitor disk usage of persistent volumes of all storageclasses using Prometheus?
我在 Grafana 上使用Kubernetes Persistent Volumes儀表板來查看我的 PVC 的磁盤使用情況。 該儀表板使用kubelet_volume_stats_used_bytes指標來獲取 PVC 的數據,我也可以將其可視化。 但是,它不顯示使用 EFS 作為存儲類的 P ...
[英]k8s Deployment set readOnly in volumes vs volumeMounts
我想將持久卷中的數據用作容器內的readOnly數據。 在volumeMounts與部署volumes.persistentVolumeClaim下設置readOnly標志有什么區別? 結果似乎是一樣的。 兩者之一是多余的嗎? --- kind: Deployment apiVersion: ap ...
[英]Storage Class unable to create persistent volume using blob-csi-driver
我正在使用帶有 adls gen 2 blob 存儲的blob-csi-driver版本 1.15。 但是我的有狀態集無法部署,因為無法自動創建持久卷。 我在 PVC 中獲得以下狀態,其中 PVC 的創建被卡住。 在這種情況下,如何自動創建持久卷? 我創建了一個具有以下定義的存儲類。 我的有 ...
[英]1 node(s) had volume node affinity conflict, 3 node(s) didn't match Pod's node affinity/selector
我正在嘗試在特定的 node_pool 上配置 redis statefulset,但是當我應用清單時,我收到以下錯誤。 我的 GKE 是區域性的,我在一個區域中創建了一個帶有一個副本的節點池,因為它足以用於 redis 工作。 node_pool 位於單個區域中。 我的想法是 3 個副本位 ...
[英]PersistentVolumeClaim used by multiple pods: one for writing and another for backup
在 Oracle 雲上的 Kubernetes 集群中,我有一個帶有 Apache 服務器的 pod。 這個 pod 需要一個持久卷,所以我使用了一個 persistentVolumeClaim,雲提供商能夠自動創建一個關聯卷(Oracle 塊卷)。 PVC 使用的訪問模式是 readWrit ...
[英]How to move FileSystem persistent-volumes's data to new Node?
當我強制我的 pod 在新節點上運行時,持久卷數據(文件系統)會被拋在后面。 如何將它與我的 Pod 一起移動? 我正在使用以下 yaml 部署 portainer: 在第一次部署時,一切正常,但是當我測試將我的 Pod 遷移到另一個節點時,它只是啟動了一個新的新搬運工 Pod,沒有保留的持久 ...