这个报错是node2中:

tail -f /var/log/containers/rbd-provisioner-857866b5b7-ftmxq_kube-system_rbd-provisioner-:

{"log":"I0827 22:27:08.163484 1 controller.go:948] provision \"default/mypvc2\" class \"ceph-rbd\": started\n","stream":"stderr","time":"2018-08-27T22:27:08.164113972Z"}

{"log":"I0827 22:27:08.170400 1 event.go:221] Event(v1.ObjectReference{Kind:\"PersistentVolumeClaim\", Namespace:\"default\", Name:\"mypvc2\", UID:\"3e0bb388-aa47-11e8-b78a-00505697564e\", APIVersion:\"v1\", ResourceVersion:\"4366965\", FieldPath:\"\"}): type: 'Normal' reason: 'Provisioning' External provisioner is provisioning volume for claim \"default/mypvc2\"\n","stream":"stderr","time":"2018-08-27T22:27:08.170996675Z"}

{"log":"W0827 22:27:08.181881 1 controller.go:707] Retrying syncing claim \"default/mypvc2\" because failures 5 \u003c threshold 15\n","stream":"stderr","time":"2018-08-27T22:27:08.182301488Z"}

{"log":"E0827 22:27:08.181960 1 controller.go:722] error syncing claim \"default/mypvc2\": failed to provision volume with StorageClass \"ceph-rbd\": missing Ceph monitors\n","stream":"stderr","time":"2018-08-27T22:27:08.182339857Z"}

{"log":"I0827 22:27:08.182067 1 event.go:221] Event(v1.ObjectReference{Kind:\"PersistentVolumeClaim\", Namespace:\"default\", Name:\"mypvc2\", UID:\"3e0bb388-aa47-11e8-b78a-00505697564e\", APIVersion:\"v1\", ResourceVersion:\"4366965\", FieldPath:\"\"}): type: 'Warning' reason: 'ProvisioningFailed' failed to provision volume with StorageClass \"ceph-rbd\": missing Ceph monitors\n","stream":"stderr","time":"2018-08-27T22:27:08.182363909Z"}

*************

apiVersion: extensions/v1beta1

kind: Deployment

metadata:

name: rbd-provisione

namespace: kube-system

spec:

replicas: 1

strategy:

type: Recreate

template:

metadata:

labels:

app: rbd-provisione

spec:

containers:

- name: rbd-provisione

image: "quay.io/external_storage/rbd-provisioner:latest"

env:

- name: PROVISIONER_NAME

value: ceph.com/rbd

serviceAccount: rbd-provisioner

**************

kind: StorageClass

apiVersion: storage.k8s.io/v1

metadata:

name: ceph-rbd

provisioner: ceph.com/rbd

parameters:

adminId: admin

adminSecretName: ceph-secret-admin4

adminSecretNamespace: kube-system

monitors: 172.16.2.211:6789

pool: kube

userId: kube

userSecretName: ceph-secret-kube4

fsType: ext4

imageFormat: "2"

imageFeatures: "layering"

---

apiVersion: v1

kind: PersistentVolumeClaim

metadata:

name: mypvc2

spec:

accessModes:

- ReadWriteOnce

storageClassName: ceph-rbd

resources:

requests:

storage: 1Gi

---

apiVersion: v1

kind: Pod

metadata:

labels:

run: mypod2

name: mypod2

spec:

restartPolicy: OnFailure

containers:

- image: busybox

name: bb

volumeMounts:

- mountPath: /zhaer

name: shared-volume

args:

- /bin/sh

- -c

- touch /zhaer/zhaer.txt ; sleep 6000

volumes:

- name: shared-volume

persistentVolumeClaim:

claimName: mypvc2

用户3001631用户3001631修改于
GUNLinux回答于

热门问答

如何设置物联网通信的规则引擎转发到微信小程序?

DylanRichard

腾讯 · 产品经理 (已认证)

万物互联的时代,欢迎来到IoT的世界
推荐

正如参考文章所述,通过规则引擎述是将设备上行数据转发到服务端而不是直接到小程序,需要开发者基于API SDK用于服务端开发,并于小程序进行上下行通信。

在房间内切出app/闪退后还继续收费吗?

腾讯音视频小蔡

深圳市腾讯科技 · 软件开发工程师 (已认证)

QQ:471381568
推荐
1、切出app调用pause的时候是在房间的话,会一直收费。 2、比如A在程序闪退后,如果没有重连,90秒后A会自动退出房间。 3、扣费有疑问可以先看下运营指引:https://cloud.tencent.com/document/product/607/17448 如果对扣费还...... 展开详请

腾讯IM web端sdk 1.7版本,更新到当前最新,在哪里可以查看有什么改动呢?

使用微信小程序也可以做腾讯云的标准视频直播吗?使用微信小程序做腾讯云的视频直播和im即时通讯可行吗?

美女视频一起走向共同富裕
推荐
支持的 IM部分,集成云通信 https://cloud.tencent.com/document/product/269/36838 标准直播部分,使用live-pusher和live-player标签,然后用云直播即可 https://cloud.tencent.com/do...... 展开详请

为什么我通过控制台vnc看到的界面和用vnc viewer看的的界面不一样???

HappyLau谈云计算专注于公有云,私有云解决方案,在kubernetes,openstack,kvm,ceph,linux,shell有丰富的实战经验。
推荐

控制台页面使用的是novnc,novnc是一种基于web页面使用的vnc客户端,详情可参考https://github.com/novnc/noVNC介绍,常规的vnc viewer是图形的客户端,所使用的依赖库有所不同,因此显示也不一样。

iOS在release下不走sendProcessBlock进度回调?

karis

腾讯 · 客户端开发工程师 (已认证)

Karis
推荐

请问是哪个版本的sdk呢,调用代码方便贴一下吗,最好能提供一个能复现的demo哈

关于作者

所属标签

扫码关注云+社区

领取腾讯云代金券

年度创作总结 领取年终奖励