Prometheus has experienced rapid growth and adoption over the last few years. It provides a modern interface to collect your applications metrics and comes out of the box with a slew of metrics for your cluster. It is widely used within the Kubernetes community and can provide valuable insights for your applications and even alert you when things are not operating as expected.
I use kubectl as the primary way to interact with my Kubernetes clusters, but it becomes cumbersome juggling multiple configuration files for each cluster, and is also tedious to provide the
-n namespace parameter for every command when jumping across namespaces.
Luckily there are open source tools, namely
kubectx to help us with this problem. To install on Mac OS, we just need to run
brew install kubectx which will install both utilities.
Let’s review working with namespaces first. In Kubernetes, all objects such as pods, services, volumes, etc… are part of a namespace. …
I’m going to walk through my experience of setting up a new Kubernetes cluster (or k8s for short) with DigitalOcean, configuring my Gitlab project to use the k8s cluster, and configuring a CI/CD process for deployments. Keep on reading if you would like to see how simple it is to get a modern stack up and running.
Kubernetes is a container orchestration platform gaining lots of popularity due to its simplicity. Kubernetes is great as you can define your deployment configuration, storage, and network using config files and the cluster will ensure your application is always running in that configuration.