kruise

by OpenKruise

Helm chartv1.9.3App 1.9.3

Helm chart for kruise components

About this chart

Kruise v1.9.3

Configuration

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

setup parameters

ParameterDescriptionDefault
featureGatesFeature gates for Kruise, empty string means all enabled""
installation.namespaceNamespace for kruise installationkruise-system
installation.createNamespaceWhether to create the installation.namespacetrue
installation.roleListGroupsApiGroups which kruise is permit to list, default set to be all*
crds.managedKruise will not install CRDs with chart if this is falsetrue
imagePullSecretsThe list of image pull secrets for kruise image[]

manager parameters

ParameterDescriptionDefault
manager.log.levelLog level that kruise-manager printed4
manager.replicasReplicas of kruise-controller-manager deployment2
manager.image.repositoryRepository for kruise-manager imageopenkruise/kruise-manager
manager.image.tagTag for kruise-manager imagev1.9.3
manager.resources.limits.cpuCPU resource limit of kruise-manager container200m
manager.resources.limits.memoryMemory resource limit of kruise-manager container512Mi
manager.resources.requests.cpuCPU resource request of kruise-manager container100m
manager.resources.requests.memoryMemory resource request of kruise-manager container256Mi
manager.metrics.portPort of metrics served8080
manager.webhook.portPort of webhook served9443
manager.pprofAddrAddress of pprof servedlocalhost:8090
manager.nodeAffinityNode affinity policy for kruise-manager pod{}
manager.nodeSelectorNode labels for kruise-manager pod{}
manager.tolerationsTolerations for kruise-manager pod[]
manager.resyncPeriodResync period of informer kruise-manager, defaults no resync0
manager.hostNetworkWhether kruise-manager pod should run with hostnetworkfalse
manager.loggingFormatLogging format, valid formats includes (plain text), json

daemon parameters

ParameterDescriptionDefault
daemon.extraEnvsExtra environment variables that will be pass onto pods[]
daemon.log.levelLog level that kruise-daemon printed4
daemon.portPort of metrics and healthz that kruise-daemon served10221
daemon.pprofAddrAddress of pprof servedlocalhost:10222
daemon.resources.limits.cpuCPU resource limit of kruise-daemon container50m
daemon.resources.limits.memoryMemory resource limit of kruise-daemon container128Mi
daemon.resources.requests.cpuCPU resource request of kruise-daemon container0
daemon.resources.requests.memoryMemory resource request of kruise-daemon container0
daemon.affinityAffinity policy for kruise-daemon pod{}
daemon.socketLocationLocation of the container manager control socket/var/run
daemon.socketFileSpecify the socket file name in socketLocation (if you are not using containerd/docker/pouch/cri-o)
daemon.credentialProvider.enableWhether to enable credential provider for image pull jobfalse
daemon.credentialProvider.hostPathnode dir of the credential provider plugin, kruise-daemon will mount the dir as a hostpath volumecredential-provider-plugin
daemon.credentialProvider.configmapconfigmap name of the credential provider in kruise-system nscredential-provider-config
daemon.credentialProvider.awsCredentialsDiraws credentials dir if using AWS, for example: /root/.aws

other parameters

ParameterDescriptionDefault
enableKubeCacheMutationDetectorWhether to enable KUBE_CACHE_MUTATION_DETECTORfalse
webhookConfiguration.timeoutSecondsThe timeoutSeconds for all webhook configuration30
webhookConfiguration.aksIntegrationEnable AKS-specific namespace selectors on webhooks to exclude AKS control-plane and managed namespaces. Set to true when deploying on Azure Kubernetes Service.false
serviceAccount.annotationsAnnotations to patch for serviceAccounts{}
externalCerts.annotationsAnnotations to patch for webhook configuration and crd when featuregate EnableExternalCerts is enabled. For example, cert-manager.io/inject-ca-from: kruise-system/kruise-webhook-certs.{}

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example, helm install kruise https://... --set featureGates="AllAlpha=true".

Optional: feature-gate

Feature-gate controls some influential features in Kruise:

NameDescriptionDefaultEffect (if closed)
PodWebhookWhether to open a webhook for Pod createtrueSidecarSet/KruisePodReadinessGate disabled
KruiseDaemonWhether to deploy kruise-daemon DaemonSettrueImagePulling/ContainerRecreateRequest disabled
DaemonWatchingPodShould each kruise-daemon watch pods on the same nodetrueFor in-place update with same imageID or env from labels/annotations
CloneSetShortHashEnables CloneSet controller only set revision hash name to pod labelfalseCloneSet name can not be longer than 54 characters
KruisePodReadinessGateEnables Kruise webhook to inject 'KruisePodReady' readiness-gate to all Pods during creationfalseThe readiness-gate will only be injected to Pods created by Kruise workloads
PreDownloadImageForInPlaceUpdateEnables CloneSet controller to create ImagePullJobs to pre-download images for in-place updatetrueNo image pre-download for in-place update
CloneSetPartitionRollbackEnables CloneSet controller to rollback Pods to currentRevision when number of updateRevision pods is bigger than (replicas - partition)falseCloneSet will only update Pods to updateRevision
ResourcesDeletionProtectionEnables protection for resources deletionfalseNo protection for resources deletion
TemplateNoDefaultsWhether to disable defaults injection for pod/pvc template in workloadsfalseShould not close this feature if it has open
PodUnavailableBudgetDeleteGateEnables PodUnavailableBudget for pod deletion, evictiontrueNo protection for pod deletion, eviction
PodUnavailableBudgetUpdateGateEnables PodUnavailableBudget for pod.Spec updatefalseNo protection for in-place update
WorkloadSpreadEnables WorkloadSpread to manage multi-domain and elastic deploytrueWorkloadSpread disabled
InPlaceUpdateEnvFromMetadataEnables Kruise to in-place update a container in Pod when its env from labels/annotations changed and pod is in-place updating

Deploy kruise with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kruise 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 chartkruise is pinned at v1.9.3 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