Traefik with let’s encrypt support using Helm and running on DO-k8s
DigitalOcean has been my favourite cloud platform for long time now, because it is developer-friendly and it offers services with reasonable prices.
Here I want to share about how to setup own Kubernetes (k8s) cluster using digitalocean’s platform, shortly do-k8s!
First and foremost, get yourself a DO account if you don’t have it yet. Then create a do-k8s cluster using do account page, it is easy to use and intuitive.
NB! For pet projects or just development purposes, you can use even 1-node which costs just 10usd!
When your cluster is ready, browse to do-k8s admin page and download config file into a local folder or working folder. For example, my config file is named
petcat-k8s-kubeconfig.yaml and resides under my home folder’s kubeconfigs
Make sure you already have installed kubectl
kubectl usage with DO config, I did update
Now you can use
$kubectl as shortcut when running k8s commands and have direct access to my DO cluster.
DO-K8s: Connect and Setup
Now let’s get web-ui-dashboard for k8s cluster.
Let’s get monitoring in place
TRAEFIK: install and configure
We’ll be using Helm chart for Traefik
Before installing Traefik, …make sure to create secret for
$kubectl create secret generic acme-dnsprovider-config --from-literal=DO_AUTH_TOKEN=FIXME_YOUR_DO_TOKEN $kubectl get secret acme-dnsprovider-config
tbc… create user+pass for Traefik
Helm chart config
traefik-helm.yaml for your Traefik instance.
Now we can install this chart with
helm install --generate-name --namespace kube-system --values traefik-helm.yaml stable/traefik
At the end of successful install, you get the name of the instance, e.g.
traefik-1564937212 , not this down because you need it for any further interactions like upgrade or delete.
If all went well, now you can access Traefik dashboard from the url you’ve assigned in
till next time, #LearnMakeShare