Contents

00 Getting Started

00 Motivation

01 🐳 Docker

00 Understanding Docker

02 🎱 Kubernetes

00 Understanding Kubernetes

03 🦊 GitLab

00 Understanding GitLab
02 GitLab Container Registry Integration

04 πŸ’½ Server

00 Provisoning a Server

GitLab Container Registry Integration

To allow Kubernetes to pull from the GitLab Registry. Create a token in the GitLab Group Settings (Settings > Repository > Deploy Tokens) and add it to your cluster like so:

kubectl create secret docker-registry regcred --docker-server=registry.gitlab.com --docker-username=*** --docker-password=***

Don’t forget to add the docker secret to the manifest YAML where you want to use an image from the specified registry. Add:

[...]
spec:
  containers:
    - name: otree04
      image: registry.gitlab.com/oforest/ogardener:latest
      [...]
  imagePullSecrets:
    - name: regcred # put in the name of your secret here
[...]

Read Next

Next you can read, how to set up a fully functional pipeline.

Imprint

Designed & Developed by Jasper Anders