install

Description

Installs Volume Manager in your kubernetes cluster.

Syntax

kubectl directpv install [flags]

Parameters

Flags

Flag Description
--apparmor-profile <string> Path to Apparmor profile
--image <string> Name of the Volume Manager image (default directpv:4.0.6)
--image-pull-secrets <string> Image pull secrets for Volume Manager images (SECRET1,..)
--kube-version <string> Kubernetes version to use for manifest generation (default “1.27.0”)
--legacy Enable legacy mode (Used with ‘-o’)
--node-selector <string> Select the storage nodes using labels (KEY=VALUE,..)
-o, --output <string> Generate installation manifest. Specify the format as yaml or json
--openshift Use an OpenShift specific installation
--org <string> Organization name in the registry (default minio)
--registry <string> Name of container registry (default “quay.io”)
--seccomp-profile <string> Path to Seccomp profile
--tolerations <string> Set toleration labels on the storage nodes (KEY[=VALUE]:EFFECT,..)

Global Flags

You can use the following global Volume Manager flags with kubectl directpv install:

Flag Description
--kubeconfig <string> Path to the kube.config file to use for CLI requests
--quiet Suppress printing error messages

Examples

Install Volume Manager

The following command installs Volume Manager with all default options.

kubectl directpv install

Install Volume Manager from private registry

The following command installs Volume Manager using images from a private registry at private-registry.io for the org my-org-name.

kubectl directpv install --registry private-registry.io --org my-org-name

Deploy Volume Manager pods on select nodes

The following command deploys the Volume Manager daemonset only on pods on the specified node.

kubectl directpv install --node-selector node-label-key=node-label-value

Replace node-label-key with the label key used as the selector. Replace node-label-value with the value for the key on the nodes you want to install Volume Manager on.

Use tolerations to control placement of Volume Manager pods

The following command uses tolerations to limit where Volume Manager installs. The tolerations take the form of key=value:effect.

kubectl directpv install --tolerations key=value:NoSchedule

Generate a Volume Manager installation manifest file

The following command generates a YAML manifest file that can be used to install Volume Manager.

kubectl directpv install -o yaml > directpv-install.yaml

Install Volume Manager with an AppArmor profile

The following command installs Volume Manager using an AppArmor profile.

kubectl directpv install --apparmor-profile directpv

Install Volume Manager with a seccomp profile

The following command installs Volume Manager using a seccomp profile.

kubectl directpv install --seccomp-profile profiles/seccomp.json
All Rights Reserved 2024-Present, MinIO, Inc.