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
| Parameter | Description | Default |
|---|---|---|
featureGates | Feature gates for Kruise, empty string means all enabled | "" |
installation.namespace | Namespace for kruise installation | kruise-system |
installation.createNamespace | Whether to create the installation.namespace | true |
installation.roleListGroups | ApiGroups which kruise is permit to list, default set to be all | * |
crds.managed | Kruise will not install CRDs with chart if this is false | true |
imagePullSecrets | The list of image pull secrets for kruise image | [] |
manager parameters
| Parameter | Description | Default |
|---|---|---|
manager.log.level | Log level that kruise-manager printed | 4 |
manager.replicas | Replicas of kruise-controller-manager deployment | 2 |
manager.image.repository | Repository for kruise-manager image | openkruise/kruise-manager |
manager.image.tag | Tag for kruise-manager image | v1.9.3 |
manager.resources.limits.cpu | CPU resource limit of kruise-manager container | 200m |
manager.resources.limits.memory | Memory resource limit of kruise-manager container | 512Mi |
manager.resources.requests.cpu | CPU resource request of kruise-manager container | 100m |
manager.resources.requests.memory | Memory resource request of kruise-manager container | 256Mi |
manager.metrics.port | Port of metrics served | 8080 |
manager.webhook.port | Port of webhook served | 9443 |
manager.pprofAddr | Address of pprof served | localhost:8090 |
manager.nodeAffinity | Node affinity policy for kruise-manager pod | {} |
manager.nodeSelector | Node labels for kruise-manager pod | {} |
manager.tolerations | Tolerations for kruise-manager pod | [] |
manager.resyncPeriod | Resync period of informer kruise-manager, defaults no resync | 0 |
manager.hostNetwork | Whether kruise-manager pod should run with hostnetwork | false |
manager.loggingFormat | Logging format, valid formats includes (plain text), json | |
daemon parameters
| Parameter | Description | Default |
|---|---|---|
daemon.extraEnvs | Extra environment variables that will be pass onto pods | [] |
daemon.log.level | Log level that kruise-daemon printed | 4 |
daemon.port | Port of metrics and healthz that kruise-daemon served | 10221 |
daemon.pprofAddr | Address of pprof served | localhost:10222 |
daemon.resources.limits.cpu | CPU resource limit of kruise-daemon container | 50m |
daemon.resources.limits.memory | Memory resource limit of kruise-daemon container | 128Mi |
daemon.resources.requests.cpu | CPU resource request of kruise-daemon container | 0 |
daemon.resources.requests.memory | Memory resource request of kruise-daemon container | 0 |
daemon.affinity | Affinity policy for kruise-daemon pod | {} |
daemon.socketLocation | Location of the container manager control socket | /var/run |
daemon.socketFile | Specify the socket file name in socketLocation (if you are not using containerd/docker/pouch/cri-o) | |
daemon.credentialProvider.enable | Whether to enable credential provider for image pull job | false |
daemon.credentialProvider.hostPath | node dir of the credential provider plugin, kruise-daemon will mount the dir as a hostpath volume | credential-provider-plugin |
daemon.credentialProvider.configmap | configmap name of the credential provider in kruise-system ns | credential-provider-config |
daemon.credentialProvider.awsCredentialsDir | aws credentials dir if using AWS, for example: /root/.aws | |
other parameters
| Parameter | Description | Default |
|---|---|---|
enableKubeCacheMutationDetector | Whether to enable KUBE_CACHE_MUTATION_DETECTOR | false |
webhookConfiguration.timeoutSeconds | The timeoutSeconds for all webhook configuration | 30 |
webhookConfiguration.aksIntegration | Enable 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.annotations | Annotations to patch for serviceAccounts | {} |
externalCerts.annotations | Annotations 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:
| Name | Description | Default | Effect (if closed) |
|---|---|---|---|
PodWebhook | Whether to open a webhook for Pod create | true | SidecarSet/KruisePodReadinessGate disabled |
KruiseDaemon | Whether to deploy kruise-daemon DaemonSet | true | ImagePulling/ContainerRecreateRequest disabled |
DaemonWatchingPod | Should each kruise-daemon watch pods on the same node | true | For in-place update with same imageID or env from labels/annotations |
CloneSetShortHash | Enables CloneSet controller only set revision hash name to pod label | false | CloneSet name can not be longer than 54 characters |
KruisePodReadinessGate | Enables Kruise webhook to inject 'KruisePodReady' readiness-gate to all Pods during creation | false | The readiness-gate will only be injected to Pods created by Kruise workloads |
PreDownloadImageForInPlaceUpdate | Enables CloneSet controller to create ImagePullJobs to pre-download images for in-place update | true | No image pre-download for in-place update |
CloneSetPartitionRollback | Enables CloneSet controller to rollback Pods to currentRevision when number of updateRevision pods is bigger than (replicas - partition) | false | CloneSet will only update Pods to updateRevision |
ResourcesDeletionProtection | Enables protection for resources deletion | false | No protection for resources deletion |
TemplateNoDefaults | Whether to disable defaults injection for pod/pvc template in workloads | false | Should not close this feature if it has open |
PodUnavailableBudgetDeleteGate | Enables PodUnavailableBudget for pod deletion, eviction | true | No protection for pod deletion, eviction |
PodUnavailableBudgetUpdateGate | Enables PodUnavailableBudget for pod.Spec update | false | No protection for in-place update |
WorkloadSpread | Enables WorkloadSpread to manage multi-domain and elastic deploy | true | WorkloadSpread disabled |
InPlaceUpdateEnvFromMetadata | Enables 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkruise is pinned at v1.9.3 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