All technologies

Operations

Kubernetes and GitOps: operations in Germany

Our applications run on our own Kubernetes clusters at Hetzner in Germany. With GitOps, every change is documented in the repository, rollouts run automatically and can be rolled back at the push of a button.

Kubernetes orchestrates containers across multiple servers. We use k3s and roll out changes via GitOps with ArgoCD.

Data flow

How Kubernetes & GitOps fits into your processes

  1. Pull Request
  2. CI build
  3. Git repo
  4. ArgoCD
  5. k3s cluster
A change is approved via pull request, built and synced into the cluster by ArgoCD.

Use cases

What we build with Kubernetes & GitOps

  • GitOps

    Rollouts via pull request with ArgoCD.

  • Certificates

    Automatic HTTPS for every domain.

  • Scaling

    More capacity when load rises.

  • Monitoring

    Metrics and alerts before users notice anything.

Typical projects

Why companies bring us in

  1. 01

    Many services, one operation

    Starting point
    Several applications run scattered across individual servers, and updates are manual work.
    Solution
    We consolidate the services on a k3s cluster at Hetzner and roll them out with ArgoCD.
    Result
    All services are deployed, monitored and backed up the same way.
  2. 02

    Safe rollback

    Starting point
    After a faulty release, there is no quick and clean way back.
    Solution
    The desired state lives in the repository; a revert commit restores the previous version.
    Result
    Faulty changes can be rolled back in a traceable way.
  3. 03

    Load fluctuates

    Starting point
    An API is heavily used at certain times and becomes slow.
    Solution
    We set resource limits and automatic scaling based on load.
    Result
    The API gets more instances when needed and releases them afterwards.

From practice

Kubernetes & GitOps in our projects

  • Dedicated k3s clusters at Hetzner with ArgoCD run a company data API, property management software, an office platform and several apps.

Approach

How we introduce Kubernetes & GitOps

  1. 1

    Assessment

    Which services, what load, what requirements.

  2. 2

    Cluster

    Set up k3s at Hetzner, networking and certificates.

  3. 3

    GitOps

    Rollouts via ArgoCD, with rollback.

  4. 4

    Operations

    Monitoring, backups and updates.

Result

What you get from us

  • k3s cluster at Hetzner in Germany
  • GitOps repository with ArgoCD applications
  • Automatic TLS certificates
  • Monitoring with alerts
  • Backups for databases and volumes
  • Operations documentation and emergency procedure
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: company-api
  namespace: argocd
spec:
  project: default
  source:
    repoURL: https://git.example.com/platform/deploy.git
    targetRevision: main
    path: apps/company-api
  destination:
    server: https://kubernetes.default.svc
    namespace: company-api
  syncPolicy:
    automated: { prune: true, selfHeal: true }
An ArgoCD Application that automatically syncs the state from the repository into the cluster.

Quality

What we watch for with Kubernetes & GitOps

  1. 1

    Resource limits

    Without requests and limits, a single service can saturate an entire node.

  2. 2

    Readiness probes

    A pod only receives requests once it is ready, otherwise users see errors during rollout.

  3. 3

    Secrets not in plain text

    Credentials are stored encrypted in the repository or in a secrets store, never in plain text.

  4. 4

    Backups with restore test

    We back up data outside the cluster and practice the restore.

  5. 5

    Cluster updates

    Kubernetes versions age quickly, so we plan updates regularly and with testing.

Comparison

Kubernetes or Single server?

Kubernetes

Getting started
Requires more setup and expertise
Server outage
Services start on other nodes
Many services
Rolled out and monitored consistently
Rollouts
Step by step, with rollback via Git
Good fit for
Multiple services and apps

Single server

Getting started
Quick to set up, easy to understand
Server outage
Services are down until repaired
Many services
Quickly becomes hard to manage
Rollouts
Usually manual or by script
Good fit for
Single website or small application

For a single website, a server is often the better choice. Once you have several services, Kubernetes pays off.

Kubernetes & GitOps

Common questions

Tap a question.