Hello!
I've got kubernetes cluster with version 1.5.0-beta.0. I've got configured
storageclass using RBD. I've got deployments that uses PVC from that
storageclass.
I tried to mount PVC from that storage class to StatefulSet and i got
strange error.
FirstSeen LastSeen Count From
SubObjectPath Type Reason Message
--------- -------- ----- ----
------------- -------- ------ -------
9h 4s 2399 {persistentvolume-controller }
Warning ProvisioningFailed cannot find volume
plugin for alpha provisioning
StorageClass yaml:
apiVersion: storage.k8s.io/v1beta1
kind: StorageClass
metadata:
name: rbd
provisioner: kubernetes.io/rbd
parameters:
monitors: 192.168.1.2:6789, 192.168.1.10:6789, 192.168.1.11:6789
adminId: admin
adminSecretName: ceph-secret-admin
adminSecretNamespace: "kube-system"
pool: kubernetes
userId: kube
userSecretName: ceph-secret
StatefulSet and PVC template yaml:
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: etcd
spec:
serviceName: etcd
replicas: 2
template:
metadata:
labels:
app: etcd
annotations:
pod.alpha.kubernetes.io/initialized: "true"
spec:
containers:
- name: etcd
image: quay.io/coreos/etcd:v3.0.15
command: ["/bin/sh", "-c"]
args: ["etcd --name=$(hostname -s)
--initial-advertise-peer-urls=http://$(hostname -f):2380
--advertise-client-urls=http://$(hostname -f):2379
--listen-peer-urls=http://0.0.0.0:2380
--listen-client-urls=http://0.0.0.0:2379
--initial-cluster=etcd-0=http://etcd-0.etcd.development-services.svc.cluster.local:2380,etcd-1=http://etcd-1.etcd.development-services.svc.cluster.local:2380"]
ports:
- containerPort: 2379
name: client
- containerPort: 2380
name: peer
volumeMounts:
- name: etcd-data
mountPath: /var/lib/etcd
volumeClaimTemplates:
- metadata:
name: etcd-data
annotations:
volume.beta.kubernetes.io/storage-class: rbd
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: Service
metadata:
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
name: database-etcd
labels:
app: etcd
spec:
ports:
- port: 2379
name: client
- port: 2380
name: peer
# *.ubuntu.default.svc.cluster.local
clusterIP: None
selector:
app: etcd
Kube-controller-manager logs:
I1123 00:04:11.352716 1 pet_set.go:332] StatefulSet etcd blocked from
scaling on pod etcd-0
I1123 00:04:11.908962 1 pv_controller.go:1225] error finding
provisioning plugin for claim default/etcd-data-etcd-1: cannot find volume
plugin for alpha provisioning
I1123 00:04:11.908968 1 pv_controller.go:1225] error finding
provisioning plugin for claim default/etcd-data-etcd-0: cannot find volume
plugin for alpha provisioning
I tried to find something useful in Google but I haven't found anything
--
You received this message because you are subscribed to the Google Groups
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.