nri-memory-policy
by containers
The memory-policy NRI plugin configures default Linux memory policy for containers at creation time.
About this chart
Memory Policy Plugin
This chart deploys memory-policy Node Resource Interface (NRI) plugin. The memory-policy NRI plugin configures default Linux memory policy for containers at creation time.
Prerequisites
- Kubernetes 1.24+
- Helm 3.0.0+
- Container runtime:
- containerD:
- built with NRI > v0.9.0, needs command line adjustments.
- CRI-O
- built with NRI > v0.9.0, needs command line adjustments.
- containerD:
Installing the Chart
Path to the chart: nri-memory-policy.
helm repo add nri-plugins https://containers.github.io/nri-plugins
helm install my-memory-policy nri-plugins/nri-memory-policy --namespace kube-system
The command above deploys the memory-policy plugin on the Kubernetes cluster
within the kube-system namespace with default configuration. To customize the
available parameters as described in the Configuration options
below, you have two options: you can use the --set flag or create a custom
values.yaml file and provide it using the -f flag. For example:
# Install the memory-policy plugin with custom values specified in a custom values.yaml file
cat <<EOF > myPath/values.yaml
nri:
runtime:
patchConfig: true
plugin:
index: 92
tolerations:
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoSchedule"
EOF
helm install my-memory-policy nri-plugins/nri-memory-policy --namespace kube-system -f myPath/values.yaml
Uninstalling the Chart
To uninstall the memory-policy plugin run the following command:
helm delete my-memory-policy --namespace kube-system
Configuration options
The tables below present an overview of the parameters available for users to customize with their own values, along with the default values.
| Name | Default | Description |
|---|---|---|
image.name | ghcr.io/containers/nri-plugins/nri-memory-policy | container image name |
image.tag | unstable | container image tag |
image.pullPolicy | Always | image pull policy |
resources.cpu | 10m | cpu resources for the Pod |
resources.memory | 100Mi | memory qouta for the Pod |
nri.runtime.config.pluginRegistrationTimeout | "" | set NRI plugin registration timeout in NRI config of containerd or CRI-O |
nri.runtime.config.pluginRequestTimeout | "" | set NRI plugin request timeout in NRI config of containerd or CRI-O |
nri.runtime.patchConfig | false | patch NRI configuration in containerd or CRI-O |
nri.plugin.index | 92 | NRI plugin index, larger than in NRI resource plugins |
initImage.name | ghcr.io/containers/nri-plugins/config-manager | init container image name |
initImage.tag | unstable | init container image tag |
initImage.pullPolicy | Always | init container image pull policy |
tolerations | [] | specify taint toleration key, operator and effect |
affinity | [] | specify node affinity |
nodeSelector | [] | specify node selector labels |
podPriorityClassNodeCritical | true | enable marking Pod as node critical |
Deploy nri-memory-policy with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nri-memory-policy 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 chartnri-memory-policy is pinned at v0.15.2 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