I've 3 Debian-10 VMs on a bare metal Proxmox host in my network and installed via Ansible the roles
geerlingguy.kubernetes with complete default settings. The kubeadm on the master node shows me the three nodes. So, I think, the installation is fine.
And what now? I'm new to kubernetes, I know there are configs that need to be applied. But how can I "see" them or "change" them via Kubernetes/Ansible. I don't want go back to the command line here. I know about the 'k8s' module - but the examples are not very helpful. A kubernetes should have an ingress controller and some services. Is there a good example playbook for installing Traefik/Haproxy/Nginx/whatever and maybe a small example hello-world-example for Kubernetes? Is there a "map" of possible values for all the YAML options (I used to learn from examples)
Sorry for the very "open" question. I'm searching for some days now and either my questions to Google are wrong or Google sends me always to the same sites with either very "basic" informations that ends by installing the Kubernetes or very "heavy" information, where the author is far away from easy to read.
To make the question a litte bit more concrete.
- The 3 VM's with IP 192.168.10.10-192.168.10.12 are running with Kubernetes 1.17.9 on Docker 19.03.12
- I've installed Helm v3.2.4, some repos (Traefik, Nginx, Stable-Kubernetes-Charts)
- I'm able to install with Helm some -don't know - are that pods or services?
- I'd like to add a simple hello-world HTTP service, like that from gmolaire (thanks!)
- That service is exposed to one of the three VMs on port 80
When I run that tutorial with step
kubectl create -f ingress.yaml
I'm getting the error
Error from server (InternalError): error when creating "ingress.yaml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": Post https://ingress-nginx-controller-admission.ingress-nginx.svc:443/extensions/v1beta1/ingresses?timeout=30s: dial tcp 10.105.231.128:443: connect: connection refused
This might be, because I cannot run
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml it ends with a 404.