Installation
Content:
Installation from scratch
If you like to build your own kTailor image, then you can do so using the provided Makefile.
-
Clone the repository and change the path into it:
git clone https://github.com/katalyticIT/kTailor.git cd kTailor -
Build and Push: Set your registry and repository variables.
export IMAGE_RGST=my-registry.io export IMAGE_REPO=ktailor make docker-build docker-push -
Deploy: This applies RBAC, certificates, and the webhook deployment.
make deploy
Run the make command without parameter to let it print all parameters available.
Example: Makefile Build Command
# Build the local binary
make build
# Build and restart the pod in the cluster
make rolloutInstallation with manifest
The git repository contains some yaml files that can be used to install kTailor,
using the prebuilt image katalytic/ktailor. Prerequisite is that
cert-manager is installed.
- Clone the repository and change the path into it:
git clone https://github.com/katalyticIT/kTailor.git
cd kTailor/deploy- Generate the SSL certificates for the webhook:
kubectl apply -f certs.yaml- Create the service account and cluster role that are needed for kTailor to enable it to read the configmaps in other namespaces:
kubectl apply -f rbac.yaml- Install ktailor with service, configmaps etc.:
kubectl apply -f manifests.yamlThat’s all. The following command should show the running kTailor pods:
kubectl get pods -n ktailorIf you want to try kTailor in a sandbox environment first, then try the killercoda scenario.
Installation via helm Chart
There’s a helm chart in charts/ktailor which can be used to deploy ktailor to Kubernetes or Openshift. Set the appropriate settings in the values.yaml (esp. certs.provider for cert-manager or the Openshift internal issuer).
Prerequisites
- On Kubernetes: cert-manager installed (required to automatically generate the TLS certificates for the webhook). (On Openshift ktailor will use the internal CA.)
Steps
-
Clone the repository and change the path into it:
git clone https://github.com/katalyticIT/kTailor.git cd kTailor -
Create a namespace or, if using OpenShift, a project:
# depending on your platform: kubectl create namespace ktailor oc new-project ktailor -
Copy the file
charts/ktailor/values.yamland edit it according to your needs, e.g.- Set
webhook.enabledtofalseto install kTailor without activating the webhook if you want to test the installation routine first. - Set
certs.providertoopenshiftorcert-manager, depending on your environment.
- Set
-
Install the webhook by using helm:
# add --set webhook.enabled=false to install ktailor # w/o activating the webhook yet, e.g. for tests helm install ktailor charts/ktailor -n ktailor -f /path/to/my/values.yaml
And you’re done.