provisioner

by Conduktor

Helm chartv0.3.0App v0.9.2Verified publisher

Helm chart to run Conduktor CLI provisioning on Conduktor Plaform

About this chart

Conduktor Provisioner

If you have any questions you can submit feedback or contact support.

  • Introduction
  • Prerequisites
  • Usage
  • Limitations
  • Parameters
    • Global parameters
    • Common parameters
    • conduktor-ctl Parameters
    • Init wait-for script configuration
    • Conduktor Console provisioning configuration
    • Conduktor Gateway provisioning configuration
    • Other Parameters
  • Examples values
    • Provision Console
    • Provision Gateway
    • Provision Console and Gateway
    • Use secrets and configmaps for configuration
    • Provide manifests from a ConfigMap
    • Using different CLI commands
    • Using CronJob to run the provisioner
  • Troubleshooting

Introduction

Helm Chart to deploy Conduktor Provisioner on Kubernetes that will provision existing Conduktor products.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • Conduktor Console 1.23.0+ (depending on the resources, check documentation for more details)
  • Conduktor Gateway 3.1.0+ (depending on the resources, check documentation for more details)

Usage

# Add the Conduktor Helm repository
helm repo add conduktor https://helm.conduktor.io

# Install Conduktor Console
helm upgrade --install platform conduktor/console \
    --create-namespace -n conduktor \
    --set config.admin.email="[email protected]" \
    --set config.admin.password="admin123!" \
    --set config.database.password="postgres" \
    --set config.database.username="postgres" \
    --set config.database.host="postgresql" \
    --set config.database.name="postgres" \
    --set config.license="${LICENSE}"

# Push Conduktor CLI compatible YAML manifests files into a ConfigMap. See https://github.com/conduktor/ctl
kubectl create configmap setup-manifests --from-file=./manifests/console-setup.yaml -n conduktor

# Use Provisioner chart to provision Console
helm upgrade --install setup conduktor/provisioner \
    -n conduktor \
    --set console.enabled=true \
    --set console.url="http://console.conduktor" \
    --set console.username="[email protected]" \
    --set console.password="admin123!" \
    --set console.extraManifestsConfigMapRef[0].name="setup-manifests" \
    --set console.extraManifestsConfigMapRef[0].key="console-setup.yaml"

More examples can be found in the Examples values section.

Limitations

As a job using Conduktor CLI, the provisioner Job will not be delete by default on helm uninstall. Use cleanupAfterFinished.enabled: true to cleanup after job finished or manually delete it.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.security.allowInsecureImagesAllows skipping image verificationfalse
global.compatibility.openshift.adaptSecurityContextAdapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)auto
global.compatibility.omitEmptySeLinuxOptionsIf set to true, removes the seLinuxOptions from the securityContexts when it is set to an empty objectfalse

Common parameters

Configuration provisioning job and other common parameters.

NameDescriptionValue
nameOverrideString to partially override common.names.name""
fullnameOverrideString to fully override common.names.fullname""
namespaceOverrideString to fully override common.names.namespace""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
useHooksEnable Helm hooks for the conduktor-provisioner Job and CronJob.true
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the chart release["sleep"]
diagnosticMode.argsArgs to override all containers in the chart release["infinity"]

conduktor-ctl Parameters

Configuration of the conduktor-ctl image used to run the Conduktor CLI commands.

NameDescriptionValue
image.registryconduktor-ctl image registrydocker.io
image.repositoryconduktor-ctl image repositoryconduktor/conduktor-ctl
image.tagconduktor-ctl image tag (immutable tags are recommended)v0.9.2
image.digestconduktor-ctl image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag image tag (immutable tags are recommended)""
image.pullPolicyconduktor-ctl image pull policyIfNotPresent
image.pullSecretsconduktor-ctl image pull secrets[]
image.debugEnable conduktor-ctl image debug modefalse
cronJob.enabledConfigure conduktor-provisioner job as a CronJobfalse
cronJob.scheduleSchedule for the CronJob, by default empty string (no schedule)""
cronJob.timezoneTimezone for the CronJob, by default empty string (no timezone)""
cronJob.concurrencyPolicyConcurrency policy for the CronJob, by default "Replace"Replace
cronJob.suspendSuspend the CronJob, by default false (not suspended)false
cronJob.successfulJobsHistoryLimitNumber of successful jobs to keep in history3
cronJob.failedJobsHistoryLimitNumber of failed jobs to keep in history1
cleanupAfterFinished.enabledEnable cleanup of Job after it's finishedfalse
cleanupAfterFinished.secondsTTL to cleanup the Job after it's finished600
restartPolicyRestart policy for conduktor-provisioner jobsOnFailure
backoffLimitNumber of retries before the job is considered failed10
podSecurityContextconduktor-provisioner Pod Security Context{}
podLabelsExtra labels for conduktor-provisioner pods{}
podAnnotationsAnnotations for conduktor-provisioner pods{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft

Deploy provisioner with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has provisioner on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartprovisioner is pinned at v0.3.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply