Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.4 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.4 KB

vagrant-k8s-cluster

Vagrantfile for k8s cluster of 3 nodes.

Prerequisite

  • Host: Linux
  • Vagrant >= 2.0.3 with plugin vagrant-vbguest

Start

$ git clone https://github.com/qzchenwl/vagrant-k8s-cluster
$ cd vagrant-k8s-cluster
$ vagrant up

Dashboard

When vagrant up succeeded, kubecfg.p12 and admin-user-token.txt can be found in folder output/.

Before visiting the dashboard through api-server, do the following steps:

  1. Trust certificate output/kubecfg.p12, which has password 123456.
    1. Double click output/kubecfg.p12 open-kubecfg-p12
    2. Trust kubernetes-admin certificate trust-kubecfg-cert
    3. Allow all applications to access this item allow-all-app-access
  2. Open url and login
    1. Open chrome and navigate to: https://10.0.0.101:6443/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/
    2. Select the certificate browser-sel-cert
    3. Copy admin-user token from output/admin-user-token.txt admin-user-token
    4. Sign In browser-input-token

Finally

dashboard