Prometheus + Kubernetes + Gitlab

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’m going to walk through my experience configuring Prometheus in a Gitlab managed Kubernetes cluster, then explain how you can create your own application metrics to be visualized within Gitlab. …

Learn how to use the kubectl command across multiple clusters and namespaces

Image for post
Image for post
Photo by chuttersnap on Unsplash

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 kubens and 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. …

Kubernetes + Gitlab + Continuous Integration & Deployment

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.

Image for post
Image for post
Photo by Fatos Bytyqi on Unsplash

Building a Kubernetes Cluster

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.


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store