Kubernetes for Developers

rophilogene

Romaric P.

Posted on January 13, 2024

Kubernetes for Developers

In the last 8 years, Kubernetes has emerged as the standard for orchestrating containerized applications. However, its complexity can be a barrier for many developers.

Disclaimer: I'm a co-founder of Qovery - but I guarantee it's not a trap! Give it a try to Qovery if you want a very nice developer experience on top of your Kubernetes cluster.

Kubernetes for Developers

Enter Qovery - an Internal Developer Platform that can be installed on any Kubernetes cluster to bring a delightful and simplified developer experience. But don't take my word for granted. In this quick step-by-step article, I will show you how to deploy one of my GitHub apps and a Postgres database on my Kubernetes cluster running on GCP. And what's really really cool is that I don't even need to understand how Kubernetes work!

Qovery: A Brief Overview

What is Qovery?
An Internal Developer Platform that abstracts Kubernetes complexities, empowering developers to focus on their code.

Key Benefits:

  • Fast and easy installation on any Kubernetes cluster.
  • Intuitive open-source interfaces (Web, CLI, API, Terraform Provider) for efficient app deployment and
  • No Kubernetes expertise is required for developers.
  • Highly customizable for Platform Engineers.
  • No YAML to write for Developers ;)
  • Generous free plan (no credit card required).

Who Uses Qovery?

Over 60,000 developers and Platform Engineers, valuing its simplicity and efficiency.

Deploying an Application on Kubernetes with Qovery

Step 1: Set Up Your Qovery Account

Connect to console.qovery.com and sign in with GitHub, GitLab, or Bitbucket.

Then, give a name to your Organization and Choose the Free plan.

Once your organization is created, you should get this view:

I recommend familiarizing yourself with the basic concepts of Qovery to understand what an organization, cluster, project, or environment is.

Step 2: Connect Your GitHub Repository

You can skip this part if you signed up with your GitHub account. Otherwise, you can connect your GitHub account and permit Qovery to get access to your public and/or private repositories.

Go to your Organization settings > Git repositories access > then, pick the option you want to connect your GitHub account.

Step 3: Install Qovery on Your Kubernetes Cluster

To install Qovery on your Kubernetes cluster, you need to add a cluster into the Qovery interface:

Add your Kubeconfig:

Qovery will give you the commands and the generated helm configuration files you can download.

Then, you need to run the following on your Kubernetes cluster:

helm repo add qovery https://helm.qovery.com
helm repo update

helm upgrade --install -n qovery -f values-zXXX.yaml qovery
Enter fullscreen mode Exit fullscreen mode

Congrats! πŸ₯³ Your cluster is connected to Qovery. You can now deploy your apps.

Step 4: Deploy Your Application

Now, we can deploy our GitHub app on our Kubernetes cluster. Check out this short video and look how fast it is.

Here is what I did:

  1. I created an Environment and then I created an Application.

  2. I select my app from my GitHub repository

  3. By default Qovery picks the Dockerfile at the root of my project but I can change it.

  4. I set the CPU to 250m and the RAM to 256 MB

  5. I declared my app port to be 5555 and I tick the expose publicly option -> So my app can be accessible from outside.

  6. I deployed my app and it's accessible publicly (end of video)

This is pretty cool, right? It's not over! 😎

Step 5: Manage and Monitor Your Application

Qovery provides everything you need to manage (start, stop, restart, redeploy, delete) and check out your applications logs - directly streamed from your Kubernetes cluster. Yes!

You want to use Datadog or any third-party solutions? No problem.. Everything compatible to Kubernetes is compatible to Qovery.

Step 6: Leverage Advanced Qovery Features

I'm pretty sure you ask yourself, ok that's great all of that. But what about configuring your environment variables, your custom domain or even deploy a database... Well it's all covered :)

Imagine, you can even securely connect to your database with the Qovery CLI 😎

~ $ qovery auth
Opening your browser, waiting for your authentication...
Info: Success

~ $ qovery port-forward -p 5556:5555
Info: Current context:
Organization | MyOrg
Project      | URL Shortener
Environment  | prod
Service      | DB
Type         | database


Info: Continue with port-forward command using this context ?
Please type "yes" to validate context: yes

Listening on 127.0.0.1:5432 => 5432

~ $ psql $DATABASE_URL

psql >
Enter fullscreen mode Exit fullscreen mode

Powerful out-of-the-box features

Here are a list of cool features you get out of the box:

  • Auto-deploy: if I do commit and push a change on my GitHub app - it will be automatically redeployed without any downtime
  • Clone: this is my favorite feature! You can clone your app (or your complete environment) in one click. So, testing a new feature without impacting the original app is easily possible.
  • Ephemeral Environment: For each Pull Request that I open for my app, Qovery will spin up a new environment
  • RBAC, GitHub Actions (CI/CD) integration, Logs, Deployment pipeline, env var interpolation, env var as a file, helm deployment, multiple clusters...

There are so many cool features that I could write 10 other posts to talk about them exclusively. It's probably something that I'll do if you are interested to learn more about some of them :)

Conclusion

Qovery demystifies Kubernetes for developers, making it accessible and manageable without requiring deep expertise. Feel free to try it now on your Kubernetes cluster - it's free and will always be!

If you like the Qovery web interface - give a star ⭐ - it's open source and coded in React ✨

Additional Resources:

πŸ’– πŸ’ͺ πŸ™… 🚩
rophilogene
Romaric P.

Posted on January 13, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Kubernetes for Developers
kubernetes Kubernetes for Developers

January 13, 2024