kubepack-operator
Kubepack Operator by AppsCode
About this chart
Kubepack Operator
Kubepack Operator by AppsCode - Kubernetes Package Installer
TL;DR;
$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm install kubepack-operator appscode/kubepack-operator -n kube-system
Introduction
This chart deploys a Kubepack operator on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.11+
Installing the Chart
To install the chart with the release name kubepack-operator:
$ helm install kubepack-operator appscode/kubepack-operator -n kube-system
The command deploys a Kubepack 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 kubepack-operator:
$ helm delete kubepack-operator -n kube-system
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 kubepack-operator chart and their default values.
| Parameter | Description | Default |
|---|---|---|
| nameOverride | Overrides name template | "" |
| fullnameOverride | Overrides fullname template | "" |
| replicaCount | Number of Kubepack operator replicas to create (only 1 is supported) | 1 |
| operator.registry | Docker registry used to pull operator image | kubepack |
| operator.repository | Name of operator container image | kubepack-operator |
| operator.tag | Operator container image tag | v0.1.0 |
| operator.resources | Compute Resources required by the operator container | {} |
| operator.securityContext | Security options the operator container should run with | {} |
| cleaner.registry | Docker registry used to pull Webhook cleaner image | appscode |
| cleaner.repository | Webhook cleaner container image | kubectl |
| cleaner.tag | Webhook cleaner container image tag | v1.16 |
| imagePullSecrets | Specify an array of imagePullSecrets. Secrets must be manually created in the namespace. Example: helm template charts/kubepack-operator \ --set imagePullSecrets[0].name=sec0 \ --set imagePullSecrets[1].name=sec1 | [] |
| imagePullPolicy | Container image pull policy | IfNotPresent |
| criticalAddon | If true, installs Kubepack operator as critical addon | false |
| logLevel | Log level for operator | 3 |
| annotations | Annotations applied to operator deployment | {} |
| podAnnotations | Annotations passed to operator pod(s). | {} |
| nodeSelector | Node labels for pod assignment | {"beta.kubernetes.io/arch":"amd64","beta.kubernetes.io/os":"linux"} |
| tolerations | Tolerations for pod assignment | [] |
| affinity | Affinity rules for pod assignment | {} |
| podSecurityContext | Security options the operator pod should run with. | {"fsGroup":65535} |
| serviceAccount.create | Specifies whether a service account should be created | true |
| serviceAccount.annotations | Annotations to add to the service account | {} |
| serviceAccount.name | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | `` |
| apiserver.groupPriorityMinimum | The minimum priority the webhook api group should have at least. Please see https://github.com/kubernetes/kube-aggregator/blob/release-1.9/pkg/apis/apiregistration/v1beta1/types.go#L58-L64 for more information on proper values of this field. | 10000 |
| apiserver.versionPriority |
Deploy kubepack-operator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubepack-operator 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkubepack-operator is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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