Kubernetes on LXC
Steps:
0.- Create k8s infrastructure. You just need have setup LXC to use LVM with enough free space ant then create the infrastructure with:
$> ansible-playbook k8s-lxc.yml
The result should be:
1.- Create bastion lxc using bastion.yml:
$> ansible-playbook bastion.yml
2.- Add proxy setup in ~/.ssh/config
...
Host bastion
User ubuntu
HostName 10.38.14.110
ForwardX11 yes
ProxyCommand ssh karis nc %h %p
...
3.- ssh to bastion and launch:
$> kubectl proxy &
$> firefox &
4.- Open location at firefox: http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/
For authentication use kubeconfig file at ubuntu home directory