kubeservice-lxcfs-webhook

by kubeservice-stack

Helm chartv1.6.0App 1.5.1Verified publisher

A Kubernetes Admission Webhook for Linux Container Resources View.

About this chart

Kubeservice Lxcfs WebHook

LXCFS is a small FUSE filesystem written with the intention of making Linux containers feel more like a virtual machine.

Kubeservice Lxcfs WebHook is a Kubernetes Admission Webhook for Linux Container Resources View.

This chart creates a Kubeservice Lxcfs WebHook deployment on a Kubernetes cluster using the Helm package manager.

Source Code

Requirements

Kubernetes 1.16+ with Beta APIs enabled

Add Helm repository

helm repo add kubeservice-stack https://kubeservice-stack.github.io/kubservice-charts
helm repo update

See helm repo for command documentation.

Install Chart

helm install [RELEASE_NAME] kubeservice-lxcfs-webhook

See configuration below.

See helm install for command documentation.

Uninstall Chart

helm uninstall [RELEASE_NAME]

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

See helm uninstall for command documentation.

Upgrading Chart

helm upgrade [RELEASE_NAME] [CHART] --install

See helm upgrade for command documentation.

Configuration

See Customizing the Chart Before Installing. To see all configurable options with detailed comments, visit the chart's values.yaml, or run these configuration commands:

# Helm 2
$ helm inspect values kubeservice-lxcfs-webhook

# Helm 3
$ helm show values kubeservice-lxcfs-webhook

See kubeservice-stack/lxcfs-webhook/README.md for further information.

Values

KeyTypeDefaultDescription
affinityobject{}Affinity to add to the controller Pods
image.lxcfsstring"docker.io/dongjiang1989/lxcfs:v4.0.12"lxcfs daemonset image
image.webhookstring"docker.io/dongjiang1989/lxcfs-webhook:latest"lxcfs webhook image
imagePullSecretslist[]Reference to one or more secrets to be used when pulling images https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ For example: [ {"name":"image-pull-secret"} ]
leaderElection.enableboolfalseWhether to enabled leaderElection
leaderElection.idstring"lxcfs-on-kubernetes-leader-election"The id used to store the ConfigMap for leader election
leaderElection.namespacestring"kube-system"The namespace used to store the ConfigMap for leader election
logLevelint4Set the verbosity of controller. Range of 0 - 6 with 6 being the most verbose. Info level is 4.
lxcfs.argslist["-l","--enable-cfs","--enable-pidfd"]Adjusting the boot parameters of lxcfs
lxcfs.matchLabelsobject{"mount-lxcfs":"enabled"}For namespaces that match the labes, the Pods under it will mount lxcfs.
lxcfs.mountPathstring"/var/lib/lxc/lxcfs"Specify the mount path of lxcfs on the host
lxcfs.podAnnotationsobject{}Additional annotations to add to the agent Pods
lxcfs.resourcesobject{"limits":{"cpu":"500m","memory":"300Mi"},"requests":{"cpu":"300m","memory":"200M"}}Expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#resourcerequirements-v1-core
lxcfs.useDaemonsetbooltrueInstalling lxcfs with daemonset
podAnnotationsobject{}Additional annotations to add to the controller Pods
pullPolicystring"IfNotPresent"The image pull policy.
replicasint1Number of replicas for the controller
resourcesobject{"limits":{"cpu":"500m","memory":"300Mi"},"requests":{"cpu":"300m","memory":"200Mi"}}Expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#resourcerequirements-v1-core
service.portint443Expose port for WebHook controller
service.typestring"ClusterIP"Service type to use

Autogenerated from chart metadata using helm-docs v1.4.0

Deploy kubeservice-lxcfs-webhook with OpenTenant

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