# Install via k8s job

In order to deploy kube+ with a job onto your k8s cluster you have to prepare a set of secrets in advance.

# Step 1 - Get kube+

Get the latest kube+ tarball (opens new window) and untar it.

$ tar xvzf kube-plus-latest.tgz

# Step 2 - Configuration

Configure your config.yml according to this chapter.

# Step 3 - Namespace

Create your namespace.

$ kubectl create namespace <your-namespace>

# Step 4 - Configuration secret

Create a secret from your config file.

$ kubectl -n <your-namespace> create secret generic kube-plus-config --from-file=config.yml

# Step 5 - Docker registry credentials

Create a secret with your docker registry credentials either with directly providing your credentials

$ kubectl -n <your-namespace> create secret docker-registry image-registry-credentials \
--docker-server=<your-registry-server> \
--docker-username=<your-name> \
--docker-password=<your-password>

or use your config.json file after a successful login to your registry with docker login to the module registry.
The config.json you will find usually under $HOME/.docker/config.json.

$ kubectl -n <your-namespace> create secret generic image-registry-credentials \
  --from-file=.dockerconfigjson=<path/to/.docker/config.json> \
  --type=kubernetes.io/dockerconfigjson

# Step 6 - Install kube+

Apply the install job.

$ kubectl -n <your-namespace> apply -f jobs/install.yml

# Step 7 - Test kube+

Afterwards test your kube+ installation.

$ kubectl -n <your-namespace> apply -f jobs/test.yml
Last Updated: 1/12/2023, 4:39:38 PM