Vagrant with kubespray works. Lets move on
This commit is contained in:
parent
080f5b783f
commit
fbbfba3a61
11
README.md
11
README.md
|
|
@ -5,3 +5,14 @@ Infrapuzzle is the newly restructured way of implementing my private infrastruct
|
||||||
* single node k8s "cluster" implemented with kubespray
|
* single node k8s "cluster" implemented with kubespray
|
||||||
* development with Vagrant
|
* development with Vagrant
|
||||||
* host directory storage
|
* host directory storage
|
||||||
|
* Ingress via host network
|
||||||
|
|
||||||
|
## Bootstrap
|
||||||
|
|
||||||
|
Bootstrap is documented in the subfolders [REAMDE](./bootstrap/README.md)
|
||||||
|
|
||||||
|
## Links used
|
||||||
|
|
||||||
|
* [ingress via host network](https://kubernetes.github.io/ingress-nginx/deploy/baremetal/#via-the-host-network)
|
||||||
|
* [Install K8s with Kubespray](https://kubernetes.io/docs/setup/production-environment/tools/kubespray/)
|
||||||
|
*
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
kubespray/**
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
# Bootstrap
|
||||||
|
|
||||||
|
The following lines document hwo to initalize a fresh cluster. On a real cluster, or using Vagrant. It therefore assumes to clone kubespray to this folder. It will be excluded in *.gitignore* and all files are in this folder.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/kubernetes-sigs/kubespray.git
|
||||||
|
./init_kubespray.sh
|
||||||
|
cd kubespray
|
||||||
|
vagrant up
|
||||||
|
# up and abkle to ssh
|
||||||
|
vagrant ssh k8s-1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Done steps
|
||||||
|
|
||||||
|
The following steps have been done while first setup and are not required to be redone:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cp ./kubespray/Vagrantfile .
|
||||||
|
```
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
$num_instances = 1
|
||||||
|
$os = "centos"
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Idempotently initializes a fresh kubespray repo clone
|
||||||
|
mkdir -p kubespray/vagrant
|
||||||
|
cp config.rb kubespray/vagrant/config.rb
|
||||||
Loading…
Reference in New Issue