kubeservice-lxcfs-webhook
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
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity to add to the controller Pods |
| image.lxcfs | string | "docker.io/dongjiang1989/lxcfs:v4.0.12" | lxcfs daemonset image |
| image.webhook | string | "docker.io/dongjiang1989/lxcfs-webhook:latest" | lxcfs webhook image |
| imagePullSecrets | list | [] | 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.enable | bool | false | Whether to enabled leaderElection |
| leaderElection.id | string | "lxcfs-on-kubernetes-leader-election" | The id used to store the ConfigMap for leader election |
| leaderElection.namespace | string | "kube-system" | The namespace used to store the ConfigMap for leader election |
| logLevel | int | 4 | Set the verbosity of controller. Range of 0 - 6 with 6 being the most verbose. Info level is 4. |
| lxcfs.args | list | ["-l","--enable-cfs","--enable-pidfd"] | Adjusting the boot parameters of lxcfs |
| lxcfs.matchLabels | object | {"mount-lxcfs":"enabled"} | For namespaces that match the labes, the Pods under it will mount lxcfs. |
| lxcfs.mountPath | string | "/var/lib/lxc/lxcfs" | Specify the mount path of lxcfs on the host |
| lxcfs.podAnnotations | object | {} | Additional annotations to add to the agent Pods |
| lxcfs.resources | object | {"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.useDaemonset | bool | true | Installing lxcfs with daemonset |
| podAnnotations | object | {} | Additional annotations to add to the controller Pods |
| pullPolicy | string | "IfNotPresent" | The image pull policy. |
| replicas | int | 1 | Number of replicas for the controller |
| resources | object | {"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.port | int | 443 | Expose port for WebHook controller |
| service.type | string | "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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkubeservice-lxcfs-webhook is pinned at v1.6.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