Traefik is a simple and eficient load balancer that can be used at any environment, but if is used with docker or kubernetes can use the service discovery funcionality to allow you the deploy your services and it automaticaly discover all of your replicas and where are running
Used with kubernetes, acts as a ingress controller ( version 1.7 ), so you can use the standard ingress manifest to deploy your services
At the last post k3s introduction I told that I was not going to install traefik because is more dificult to make changes on it, so now we are going to learn how to install and use it.
At this point I indicate that to facilitate the dns resolution of the differents deployments we are going to use the nip.io domain, to allow us to call every deployment with dns its name and for that the ingress manifest must have a domain name.
First we are going to install traefik 1.7 at our kubernetes cluster. We can do that with 2 approaches
cert-manager is the most used certificate operator for kubernetes. It can issue certificates from several sources, especially from letsencrypt but at this post, I am going to learn you how to use a personal CA certification authority to allow you to generate certificates on your LAB’s.
First we need to install cert-manager on your kubernetes cluster
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.1.0/cert-manager.yaml
Now we are going to verify the cert-manager is running
root@zbox:~# kubectl -n cert-manager get po
NAME READY STATUS RESTARTS AGE
cert-manager-webhook-578954cdd-wwzgg 1/1 Running 0 14d
cert-manager-86548b886-cflh5 1/1 Running 1 14d
cert-manager-cainjector-6d59c8d4f7-lgtv4 1/1 Running 1 14d
k3s.io is a full operating kubernets environment that can help you to run your deployments for example at your laptop. It is more lightweight than microk8s or minikube.
K3s get its lightweight goal by removing features out of the Kubernetes binaries (legacy, alpha, and cloud-provider-specific features), also use containerd instead of docker, use sqlite3 as database instead of etcd.
FEATURES:
Drone Ci/CD is a Continuous Integration platform very simple that allow to