Dashboard: Unable to reinstall dashboard

Created on 5 Apr 2018  路  3Comments  路  Source: kubernetes/dashboard

Environment
Dashboard version: v1.8.3 
Kubernetes version: v1.10.0
Operating system: Linux docker5 4.9.80-hypriotos-v7+ #1 SMP Tue Mar 27 07:46:13 UTC 2018 armv7l GNU/Linux  (RaspberryPi3, HypriotOS) 
Node.js version:
Go version:
Steps to reproduce

  1. Deploy dashboard: kubectl apply -f https://github.com/kubernetes/dashboard/blob/v1.8.3/src/deploy/recommended/kubernetes-dashboard-arm.yaml
  2. Remove dashboard:
  • kubectl delete deployment kubernetes-dashboard --namespace=kube-system
  • kubectl delete service kubernetes-dashboard --namespace=kube-system
  • kubectl delete role kubernetes-dashboard-minimal --namespace=kube-system
  • kubectl delete rolebinding kubernetes-dashboard-minimal --namespace=kube-system
  • kubectl delete sa kubernetes-dashboard --namespace=kube-system
  • kubectl delete secret kubernetes-dashboard-certs --namespace=kube-system
  • kubectl delete secret kubernetes-dashboard-key-holder --namespace=kube-system
  1. Try to deploy again:
    kubectl apply -f https://github.com/kubernetes/dashboard/blob/v1.8.3/src/deploy/recommended/kubernetes-dashboard-arm.yaml
Observed result

error: error converting YAML to JSON: yaml: line 325: mapping values are not allowed in this context

Expected result

deploy successful

Comments

Seems strange that it reports an error on the non-existent line 325 as if the yaml were concatenated against another file. Also, it's the exact same command that previously worked.

Most helpful comment

@andrei-dascalu why? just try:

  1. kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.8.3/src/deploy/recommended/kubernetes-dashboard.yaml

  2. kubectl delete -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.8.3/src/deploy/recommended/kubernetes-dashboard.yaml

  3. kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.8.3/src/deploy/recommended/kubernetes-dashboard.yaml

All 3 comments

I think it's better to use raw.

https://raw.githubusercontent.com/kubernetes/dashboard/v1.8.3/src/deploy/recommended/kubernetes-dashboard.yaml

just try:
curl https://github.com/kubernetes/dashboard/blob/v1.8.3/src/deploy/recommended/kubernetes-dashboard-arm.yaml
and
curl https://raw.githubusercontent.com/kubernetes/dashboard/v1.8.3/src/deploy/recommended/kubernetes-dashboard.yaml

No difference, regardless of which I use I can't reinstall the dashboard after an initial installation.

@andrei-dascalu why? just try:

  1. kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.8.3/src/deploy/recommended/kubernetes-dashboard.yaml

  2. kubectl delete -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.8.3/src/deploy/recommended/kubernetes-dashboard.yaml

  3. kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.8.3/src/deploy/recommended/kubernetes-dashboard.yaml

Was this page helpful?
0 / 5 - 0 ratings