-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PVC stay "pending", storage provisioner is failing to list #8414
Comments
Taking a closer look, this is some weird "fails to list" issue, rather than a permission issue. |
@ctron I am curious, could you share the steps to create the PVC so I could replicate this issue myself? if this is a permission issue, do you mind trying with
|
It looks like the storage-provisioner image ( If I change the image to |
Related: #6523 |
That worked for me, in particular, the following commands fixed the issue on minikube 1.12.1 #minikube delete
docker pull gcr.io/k8s-minikube/storage-provisioner:latest
docker tag gcr.io/k8s-minikube/storage-provisioner:latest gcr.io/k8s-minikube/storage-provisioner:v1.8.1
minikube start
# Taken from: https://github.com/kubernetes/minikube/blob/e5cfa386b1d978096d3e8d917f5ed07b960a457c/deploy/addons/storage-provisioner/storage-provisioner.yaml.tmpl
cat <<EOF | kubectl apply -f -
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: system::leader-locking-storage-provisioner
namespace: kube-system
labels:
addonmanager.kubernetes.io/mode: EnsureExists
rules:
- apiGroups:
- ""
resources:
- endpoints
verbs:
- watch
- apiGroups:
- ""
resourceNames:
- k8s.io-minikube-hostpath
resources:
- endpoints
verbs:
- get
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: leader-locking-storage-provisioner
namespace: kube-system
labels:
addonmanager.kubernetes.io/mode: EnsureExists
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: system::leader-locking-storage-provisioner
subjects:
- kind: ServiceAccount
name: storage-provisioner
namespace: kube-system
---
apiVersion: v1
kind: Endpoints
metadata:
name: k8s.io-minikube-hostpath
namespace: kube-system
labels:
addonmanager.kubernetes.io/mode: Reconcile
EOF |
Hey @ctron in the past few months we've upgraded the storage provisioner and fixed some bugs. Could you try:
Thanks. |
Will do. |
@ctron - any update? We're now on minikube v1.4.0 -- though I don't think the storage provisioner has changed since v1.13.1. |
@ctron do you still have this issue with latest version of minikube? |
I am now on |
I just checked, looks like |
Thanks for the update! |
Steps to reproduce the issue:
minikube start --cpus 4 --memory 8192
Full output of failed command:
Full output of
minikube start
command used, if not already included:Logs of the storage provisioner:
Optional: Full output of
minikube logs
command:The text was updated successfully, but these errors were encountered: