https://github.com/bbckr/home-k8s-setup-1
https://github.com/bbckr/home-k8s-setup-1
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bbckr/home-k8s-setup-1
- Owner: bbckr
- Created: 2019-08-10T00:35:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-02T19:47:53.000Z (almost 7 years ago)
- Last Synced: 2025-02-05T09:18:43.844Z (over 1 year ago)
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# home-k8s-setup-1
Vagrant initialization of home kubernetes setup.
### Requires
- VirtualBox
- Vagrant
## Before Running Locally on the Host...
``` bash
# Generate random KUBETOKEN for kubeadm join (be sure to safely store the generated value for reuse)
export KUBETOKEN="$(tr -cd 'a-z0-9' < /dev/urandom | fold -w 6 | head -n 1).$(tr -cd 'a-z0-9' < /dev/urandom | fold -w 16 | head -n 1)"
# Generate ssh key if you haven't already at id_rsa
```
## Cheat Sheet
``` bash
# start cluster
vagrant up
# tear down cluster
vagrant destroy -f
# ssh into node
vagrant ssh ${NODE_NAME}
```