Restart Kubernetes API server with different options

后端 未结 2 431
盖世英雄少女心
盖世英雄少女心 2021-01-04 04:54

I\'m pretty new to Kubernetes and clusters so this might be very simple.

I set up a Kubernetes cluster with 5 nodes using kubeadm following this guide.

2条回答
  •  忘掉有多难
    2021-01-04 05:15

    in /etc/kubernetes/manifests is a file called kube-apiserver.json. This is a JSON file and contains all the option you can set. I've appended the --basic-auth-file=SOMEFILE and rebooted the system (right after the change of the file kubectl wasn't working anymore and the API was shutdown)

    After a reboot the whole system was working again.

    Update

    I didn't manage to run the dashboard using this. What I did in the end was installing the dashboard on the cluster. copying the keys from the master node (/etc/kubernetes/admin.conf) to my laptop and did kubectl proxy to proxy the traffic of the dashboard to my local machine. Now I can access it on my laptop through 127.0.0.1:8001/ui

提交回复
热议问题