prepare-kubernetes-cluster

by AppsCode Inc.

Helm chartv0.1.0App v0.1.0Verified publisher

Prepare Kubernetes Cluster by AppsCode

About this chart

Prepare Kubernetes Cluster

Prepare Kubernetes Cluster by AppsCode - Update Linux Kernel configuration of a Kubernetes Cluster nodes

TL;DR;

$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm search repo appscode/prepare-kubernetes-cluster --version=v0.1.0
$ helm upgrade -i prepare-kubernetes-cluster appscode/prepare-kubernetes-cluster -n kube-system --create-namespace --version=v0.1.0

Introduction

This chart deploys a Kubernetes Job on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.12+

Installing the Chart

To install/upgrade the chart with the release name prepare-kubernetes-cluster:

$ helm upgrade -i prepare-kubernetes-cluster appscode/prepare-kubernetes-cluster -n kube-system --create-namespace --version=v0.1.0

The command deploys a Kubernetes Job 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 the prepare-kubernetes-cluster:

$ helm uninstall prepare-kubernetes-cluster -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 prepare-kubernetes-cluster chart and their default values.

ParameterDescriptionDefault
nameOverrideOverrides name template""
fullnameOverrideOverrides fullname template""
preparer.repositoryDocker image used to run kernel configuration commandstianon/toybox
preparer.pullPolicyImage pull policy of Docker image used for node preparationIfNotPresent
preparer.tagImage tag of Docker image used for node preparation0.8.4
preparer.securityContextSecurity options the node preparer container should run with{"privileged":true}
cleaner.repositoryDocker image used to uninstall this helm releaseappscode/helm
cleaner.pullPolicyImage pull policy of Docker image used for helm commandIfNotPresent
cleaner.tagImage tag of Docker image used for helm command3.4.2
cleaner.skipSkip generating cleaner YAMLtrue
cleaner.securityContextSecurity options the helm cleaner container should run with{}
imagePullSecretsSpecify an array of imagePullSecrets. Secrets must be manually created in the namespace. Example: helm template charts/prepare-kubernetes-cluster \ --set imagePullSecrets[0].name=sec0 \ --set imagePullSecrets[1].name=sec1[]
serviceAccount.createSpecifies whether a service account should be createdtrue
serviceAccount.annotationsAnnotations to add to the service account{}
serviceAccount.nameThe name of the service account to use. If not set and create is true, a name is generated using the fullname template""
podAnnotationsAnnotations passed to operator pod(s).{}
podSecurityContextSecurity options the operator pod should run with.{}
resourcesCompute Resources required by the node preparer and helm cleaner container{}
nodeSelectorNode labels for pod assignment{"beta.kubernetes.io/os":"linux"}
tolerationsTolerations for pod assignment[]
affinityAffinity rules for pod assignment{}
node.featuresSpecify an array of features to be enabled in a Kubernetes node. Available features: - DISABLE_THP: Disable Transparent Huge Page Example: helm template charts/prepare-kubernetes-cluster \ --set node.features[0]=DISABLE_THP[]
node.sysctlsSpecify an array of sysctl parameters. Example: helm template charts/prepare-kubernetes-cluster \ --set node.sysctls[0].name=vm.max_map_count \ --set node.sysctls[0].value=300000[{"name":"vm.max_map_count","value":"262144"}]

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

$ helm upgrade -i prepare-kubernetes-cluster appscode/prepare-kubernetes-cluster -n kube-system --create-namespace --version=v0.1.0 --set preparer.repository=tianon/toybox

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

$ helm upgrade -i prepare-kubernetes-cluster appscode/prepare-kubernetes-cluster -n kube-system --create-namespace --version=v0.1.0 --values values.yaml

Deploy prepare-kubernetes-cluster with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has prepare-kubernetes-cluster 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 chartprepare-kubernetes-cluster 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