- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我通过调用创建了以下持久卷kubectl create -f nameOfTheFileContainingTheFollowingContent.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-monitoring-static-content
spec:
capacity:
storage: 100Mi
accessModes:
- ReadWriteOnce
hostPath:
path: "/some/path"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pv-monitoring-static-content-claim
spec:
accessModes:
- ReadWriteOnce
storageClassName: ""
resources:
requests:
storage: 100Mi
kubectl describe pvc pv-monitoring-static-content-claim
我得到以下结果
Name: pv-monitoring-static-content-claim
Namespace: default
StorageClass:
Status: Terminating (lasts 5m)
Volume: pv-monitoring-static-content
Labels: <none>
Annotations: pv.kubernetes.io/bind-completed=yes
pv.kubernetes.io/bound-by-controller=yes
Finalizers: [foregroundDeletion]
Capacity: 100Mi
Access Modes: RWO
Events: <none>
kubectl describe pv pv-monitoring-static-content
Name: pv-monitoring-static-content
Labels: <none>
Annotations: pv.kubernetes.io/bound-by-controller=yes
Finalizers: [kubernetes.io/pv-protection foregroundDeletion]
StorageClass:
Status: Terminating (lasts 16m)
Claim: default/pv-monitoring-static-content-claim
Reclaim Policy: Retain
Access Modes: RWO
Capacity: 100Mi
Node Affinity: <none>
Message:
Source:
Type: HostPath (bare host directory volume)
Path: /some/path
HostPathType:
Events: <none>
最佳答案
当持久卷受到保护时会发生这种情况。您应该能够交叉验证这一点:
命令:kubectl describe pvc PVC_NAME | grep Finalizers
输出:Finalizers: [kubernetes.io/pvc-protection]
您可以通过使用 kubectl patch
将终结器设置为 null 来解决此问题。 :
kubectl patch pvc PVC_NAME -p '{"metadata":{"finalizers": []}}' --type=merge
关于Kubernetes:无法删除 PersistentVolumeClaim (pvc),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51358856/
Hi得到了一个对我来说似乎有效的YAML,但当应用它时它不起作用,我不知道它有什么问题。错误:。Kubeval部署.yaml通过,没有错误
我了解 accessModes 各自的作用,但令我惊讶的是 accessModes 的配置部分是一个数组,而不是简单的键值对。文档远非清晰,据我所知甚至没有提到拥有多个文档。 PersistentVo
我有一个 Kubernetes 启动并在 AWS 上正常运行。 我正在尝试部署此 sample application .我可以使用 docker-compose up 在本地运行该项目没有任何问题
我通过调用创建了以下持久卷 kubectl create -f nameOfTheFileContainingTheFollowingContent.yaml apiVersion: v1 kind:
我在 Kubernetes 上使用 rookio 和 CoreOS 来动态创建持久卷。 因此我创建了一个 PersistentVolumeClaim (kubectl create -f postgr
这两者之间的联系究竟是什么?我如何指定 PersistentVolumeClaim 必须使用特定的 PersistentVolume?它似乎在所有 PersistentVolumeClaims 之间共
我在练习k8s关于存储主题。我不明白为什么 step2: PersistentVolume教程配置PersistenVolumeClaim时有不同的存储大小在第 3 步 例如 nfs-0001.yam
我有一个 DaemonSet它创建了 flink 任务管理器 pod,每个节点一个。 节点 假设我有两个节点 节点-A 节点-B pod daemonSet 将创建 节点 A 上的 pod-A 节点
我尝试部署一个容器,但不幸的是,当我尝试执行 kubectl apply -f *.yaml 时出现错误 错误是: error validating data: ValidationError(Pod
在 kubernetes 中,我可以使用 PersistentVolumeClaim创建一些存储,稍后我可以将其安装在某个容器中。 但是,如果容器中的用户不是 root,则该用户将无法访问该目录,因为
这个问题是关于 Kubernetes 中 PersistentVolume 和 PersistentVolumeClaim 配置的行为。我们已通读 documentation并留下一些挥之不去的问题。
我们已经根据我们的项目要求成功地创建了 Pod、服务和复制 Controller 。现在我们计划使用 Kubernetes 在 AWS 中设置持久性存储。我已经创建了 YAML 文件以在 AWS 中创
我正在尝试在阿里云的 Kubernetes 上创建一个动态存储卷。首先,我创建了一个存储类。 kind: StorageClass apiVersion: storage.k8s.io/v1beta1
为了让 PersistentVolumeClaim 绑定(bind)到 PersistentVolume,需要对下面的 yaml 进行哪些具体更改? 与 Kubernetes 工作节点位于同一 VPC
我有动态 PersistentVolume使用 PersistentVolumeClaim 进行配置. 我想在 pod 完成后保留 PV。所以我想要什么persistentVolumeReclaimP
我在一个受污染的节点中设置了一个新的 k8s。但是 PersistentVolume当我试图创建一个简单的 PostgreSQL 时,无法成功创建。 下面有一些详细信息。 StorageClass抄自
当我推送部署时,由于某种原因,我的 pod 上出现错误: pod has unbound PersistentVolumeClaims 下面是我的 YAML: 这是在本地运行的,而不是在任何云解决方案
我有一个 docker 图像 felipeogutierrez/tpch-dbgen我使用 docker-compose 构建的我把它推到docker-hub注册表使用 travis-CI . ver
在Vsphere中的kubernetes的“Juju” 安装中,我们如下创建pvc, --- kind: PersistentVolumeClaim apiVersion: v1 metadata:
我正在尝试在 Rancher 上配置我的 kubernetes 集群。当我部署 rabbitmq 时,它创建了待处理的卷。我不明白如何使用存储。我知道手动存储类名。 这是我的rabbitmq的yaml
我是一名优秀的程序员,十分优秀!