Skip to content

qzchenwl/vagrant-k8s-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Set up k8s cluster for test with vagrant and kubeadm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages