Unable to apply storage-provisioner.yaml due to yaml to JSON conversion error. #3956
Labels
addon/storage-provisioner
Issues relating to storage provisioner addon
kind/documentation
Categorizes issue or PR as related to documentation.
priority/backlog
Higher priority than priority/awaiting-more-evidence.
I tried to apply the storage-provisioner.yaml file but there is error related to YAML to JSON Conversion.
kubectl apply -f https://raw.githubusercontent.com/kubernetes/minikube/master/deploy/addons/storage-provisioner/storage-provisioner.yaml serviceaccount/storage-provisioner unchanged clusterrolebinding.rbac.authorization.k8s.io/storage-provisioner unchanged error: error parsing https://raw.githubusercontent.com/kubernetes/minikube/master/deploy/addons/storage-provisioner/storage-provisioner.yaml: error converting YAML to JSON: yaml: line 13: did not find expected key
It seems issue is with the "Image" key:
image: {{default "gcr.io/k8s-minikube" .ImageRepository}}/storage-provisioner:v1.8.1
I was able to apply after changing the double quotes as below.
image: "{{default gcr.io/k8s-minikube .ImageRepository}}/storage-provisioner:v1.8.1"
But i am not sure if it will produce the same result. I am new to this so any help will be appreciated.
OS: Ubuntu 18.04.1
I was able apply by changing the image key as
image: "gcr.io/k8s-minikube/storage-provisioner:v1.8.1"
The text was updated successfully, but these errors were encountered: