Davis is a lightweight, real-time dashboard for Kubernetes built with ReactJS and NodeJS. In this tutorial, you will learn how to install Davis on your Ubuntu Server Latest system.
Begin with clone the Davis repository in your Ubuntu Server Latest with git
.
git clone https://github.com/tchapi/davis.git
Add and configure a Kubernetes cluster on your system:
sudo snap install microk8s --classic
Once installed, start the microk8s service using:
microk8s.start
Add kubectl to your Ubuntu environment:
sudo snap install kubectl --classic
Verify that your cluster is running correctly by typing:
microk8s.kubectl get nodes
Navigate into the Davis directory you cloned earlier and run:
sudo docker build -t <your-repo-name>/davis .
Once build is done, start the container:
sudo docker run -p 8080:8080 <your-repo-name>/davis:latest
Create a Kubernetes secret that contains your SSL certificate files, match these files with your own file names:
kubectl create secret tls tls-secret --key /path/to/private.key --cert /path/to/certificate.crt
Next, navigate to the davis-server.yaml
file, and make the following changes:
Change x.x.x.x
to your server's IP address.
Uncomment the following lines:
tls:
hosts:
- dashboard.example.com
secretName: tls-secret
Then run the following command to deploy Davis to Kubernetes:
kubectl apply -f davis-server.yaml
Finally, expose the service using:
kubectl expose deployment davis-server --type=LoadBalancer --port=443 --target-port=8080 --name=davis-server-lb
Now you can access the Davis dashboard with your server's IP address or domain name using HTTPS protocol on port 443:
https://dashboard.example.com
Great! Now you have successfully installed Davis and it's ready for monitoring your Kubernetes cluster. Enjoy!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!