kubeci-engine

by AppsCode Inc.

Helm chartv0.1.0App 0.1.0Verified publisher

KubeCI Engine by AppsCode - Kubernetes Native Workflow Engine

About this chart

KubeCI Engine

KubeCI Engine by AppsCode - Kubernetes Native Workflow Engine

TL;DR;

$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm install appscode/kubeci-engine --name kubeci-engine --namespace kube-system

Introduction

This chart bootstraps a KubeCI engine controller deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.9+

Installing the Chart

To install the chart with the release name kubeci-engine:

$ helm install appscode/kubeci-engine --name kubeci-engine

The command deploys KubeCI engine operator on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the kubeci-engine:

$ helm delete kubeci-engine

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the KubeCI engine chart and their default values.

ParameterDescriptionDefault
replicaCountNumber of KubeCI engine replicas to create (only 1 is supported)1
operator.registryDocker registry used to pull operator imagekubeci
operator.repositoryOperator container imagekubeci-engine
operator.tagOperator container image tag0.7.0
cleaner.registryDocker registry used to pull Webhook cleaner imageappscode
cleaner.repositoryWebhook cleaner container imagekubectl
cleaner.tagWebhook cleaner container image tagv1.11
imagePullPolicyContainer image pull policyIfNotPresent
criticalAddonIf true, installs KubeCI engine operator as critical addonfalse
logLevelLog level for operator3
affinityAffinity rules for pod assignment{}
annotationsAnnotations applied to operator pod(s){}
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations used pod assignment{}
rbac.createIf true, create and use RBAC resourcestrue
serviceAccount.createIf true, create a new service accounttrue
serviceAccount.nameService account to be used. If not set and serviceAccount.create is true, a name is generated using the fullname template``
apiserver.groupPriorityMinimumThe minimum priority the group should have.10000
apiserver.versionPriorityThe ordering of this API inside of the group.15
apiserver.enableValidatingWebhookEnable validating webhooks for KubeCI engine CRDstrue
apiserver.enableMutatingWebhookEnable mutating webhooks for Kubernetes workloadstrue
apiserver.caCA certificate used by main Kubernetes api servernot-ca-cert
apiserver.disableStatusSubresourceIf true, disables status sub resource for crds. Otherwise enables based on Kubernetes versionfalse
enableAnalyticsSend usage events to Google Analyticstrue

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example:

$ helm install --name kubeci-engine --set image.tag=v0.2.1 appscode/kubeci-engine

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example:

$ helm install --name kubeci-engine --values values.yaml appscode/kubeci-engine

RBAC

By default the chart will not install the recommended RBAC roles and rolebindings.

You need to have the flag --authorization-mode=RBAC on the api server. See the following document for how to enable RBAC.

To determine if your cluster supports RBAC, run the following command:

$ kubectl api-versions | grep rbac

If the output contains "beta", you may install the chart with RBAC enabled (see below).

Enable RBAC role/rolebinding creation

To enable the creation of RBAC resources (On clusters with RBAC). Do the following:

$ helm install --name kubeci-engine appscode/kubeci-engine --set rbac.create=true

Deploy kubeci-engine with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubeci-engine 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 chartkubeci-engine is pinned at v0.1.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