This project provides an example setup for a Kubernetes cluster with KubeOne. The nodes for the cluster can be provisioned with Vagrant.
This
- Proper ssh setup for non root user
- The user requires passwordless sudo permissions
Perform these steps on node-1:
- Copy Dockerfile to node-1
- Copy haproxy.cfg to node-1
docker build . -t kubeone-haproxy:2.8.4-bullseye
docker run -p 6443:6443 -d --restart always --name haproxy kubeone-haproxy:2.8.4-bullseye
Run this commands on node-1:
docker run -p 9090:8080 -d --restart always --name keycloak -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:22.0.5 start-dev
- run "kubeone config print --full >> kubeone.yaml"
- Open kubeone.yaml
- set kubernetes version
- set cloudProvider to
none: {}
(none for not supported providers) - set machineController to
deploy: false
(false for not supported providers) - set values for controlPlane (ssh setup for non root user)
- set values for staticWorkers (ssh setup for non root user)
- set values for apiEndpoint (loadbalancer IP + port from node-1)
- run "kubeone apply -m kubeone.yaml"