-
Notifications
You must be signed in to change notification settings - Fork 38
Add helm documentation for the operator #210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # Patterns to ignore when building Helm packages. | ||
| # Operating system files | ||
| .DS_Store | ||
|
|
||
| # Version control directories | ||
| .git/ | ||
| .gitignore | ||
| .bzr/ | ||
| .hg/ | ||
| .hgignore | ||
| .svn/ | ||
|
|
||
| # Backup and temporary files | ||
| *.swp | ||
| *.tmp | ||
| *.bak | ||
| *.orig | ||
| *~ | ||
|
|
||
| # IDE and editor-related files | ||
| .idea/ | ||
| .vscode/ | ||
|
|
||
| # Helm chart artifacts | ||
| dist/chart/*.tgz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| {{ define "chart.valuesTable" -}} | ||
| | Parameter | Description | Default | | ||
| |-----------|-------------|---------| | ||
| {{- range .Values }} | ||
| | `{{ .Key }}` | {{ if .Description }}{{ .Description }}{{ else }}{{ .AutoDescription }}{{ end }} | {{ if .Default }}{{ .Default }}{{ else }}{{ .AutoDefault }}{{ end }} | | ||
| {{- end }} | ||
| {{- end -}} | ||
|
|
||
| {{ define "generatedDocsWarning" -}} | ||
| <!--- | ||
| Document is generated by `make generate-helm-docs`. DO NOT EDIT. | ||
| Edit the corresponding *.gotmpl.md file instead | ||
| --> | ||
| {{- end -}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| --- | ||
| title: Ceph-CSI Operator Helm Chart | ||
| --- | ||
| {{ template "generatedDocsWarning" . }} | ||
|
|
||
| Installs [ceph-csi-operator](https://github.com/ceph/ceph-csi-operator) to automates the deployment, configuration, and management of [ceph-csi](https://github.com/ceph/ceph-csi) drivers using new Kubernetes APIs defined as a set of Custom Resource Definitions (CRDs). | ||
|
|
||
| ## Introduction | ||
|
|
||
| This chart bootstraps a [ceph-csi-operator](https://github.com/ceph/ceph-csi-operator) deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| * Kubernetes 1.32+ | ||
| * Helm 3.x | ||
|
|
||
| See the [Helm support matrix](https://helm.sh/docs/topics/version_skew/) for more details. | ||
|
|
||
| ## Installing | ||
|
|
||
| The Ceph-CSI Operator helm chart will install the basic components necessary to install [ceph-csi](https://github.com/ceph/ceph-csi) on Kubernetes cluster. | ||
|
|
||
| 1. Install the Helm chart | ||
|
|
||
| The `helm install` command deploys ceph-csi-operator on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation. | ||
|
|
||
| ceph-csi-operator currently publishes builds of the ceph-csi operator to tagged versions. | ||
|
|
||
| ### **Released version** | ||
|
|
||
|
|
||
| ```console | ||
| helm repo add ceph-csi-operator https://ceph.github.io/ceph-csi-operator-charts | ||
| helm install --create-namespace --namespace ceph-csi-operator-system ceph-csi-operator/operator -f values.yaml | ||
| ``` | ||
|
|
||
| For example settings, see the next section or [values.yaml](https://github.com/ceph/ceph-csi-operator/tree/main/deploy/charts/ceph-csi-operator/values.yaml) | ||
|
|
||
| ## Configuration | ||
|
|
||
| The following table lists the configurable parameters of the ceph-csi-operator chart and their default values. | ||
|
|
||
| {{ template "chart.valuesTable" . }} | ||
|
|
||
| ### **Development Build** | ||
|
|
||
| To deploy from a local build from your development environment: | ||
|
|
||
| 1. Build the cephcsi-operator container image: `make docker-build` | ||
| 1. Copy the image to your K8s cluster, such as with the `docker save` then the `docker load` commands | ||
| 1. Install the helm chart: | ||
|
|
||
| ```console | ||
| cd deploy/charts/ceph-csi-operator | ||
| helm install --create-namespace --namespace ceph-csi-operator-system ceph-csi-operator . | ||
| ``` | ||
|
|
||
| ## Uninstalling the Chart | ||
|
|
||
| To see the currently installed Rook chart: | ||
|
|
||
| ```console | ||
| helm ls --namespace ceph-csi-operator-system | ||
| ``` | ||
|
|
||
| To uninstall/delete the `ceph-csi-operator` deployment: | ||
|
|
||
| ```console | ||
| helm delete --namespace ceph-csi-operator-system ceph-csi-operator | ||
| ``` | ||
|
|
||
| The command removes all the Kubernetes components associated with the chart and deletes the release. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| --- | ||
| title: Ceph-CSI Operator Helm Chart | ||
| --- | ||
| <!--- | ||
| Document is generated by `make generate-helm-docs`. DO NOT EDIT. | ||
| Edit the corresponding *.gotmpl.md file instead | ||
| --> | ||
|
|
||
| Installs [ceph-csi-operator](https://github.com/ceph/ceph-csi-operator) to automates the deployment, configuration, and management of [ceph-csi](https://github.com/ceph/ceph-csi) drivers using new Kubernetes APIs defined as a set of Custom Resource Definitions (CRDs). | ||
|
|
||
| ## Introduction | ||
|
|
||
| This chart bootstraps a [ceph-csi-operator](https://github.com/ceph/ceph-csi-operator) deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| * Kubernetes 1.32+ | ||
| * Helm 3.x | ||
|
|
||
| See the [Helm support matrix](https://helm.sh/docs/topics/version_skew/) for more details. | ||
|
|
||
| ## Installing | ||
|
|
||
| The Ceph-CSI Operator helm chart will install the basic components necessary to install [ceph-csi](https://github.com/ceph/ceph-csi) on Kubernetes cluster. | ||
|
|
||
| 1. Install the Helm chart | ||
|
|
||
| The `helm install` command deploys ceph-csi-operator on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation. | ||
|
|
||
| ceph-csi-operator currently publishes builds of the ceph-csi operator to tagged versions. | ||
|
|
||
| ### **Released version** | ||
|
|
||
| ```console | ||
| helm repo add ceph-csi-operator https://ceph.github.io/ceph-csi-operator-charts | ||
| helm install --create-namespace --namespace ceph-csi-operator-system ceph-csi-operator/operator -f values.yaml | ||
| ``` | ||
|
|
||
| For example settings, see the next section or [values.yaml](https://github.com/ceph/ceph-csi-operator/tree/main/deploy/charts/ceph-csi-operator/values.yaml) | ||
|
|
||
| ## Configuration | ||
|
|
||
| The following table lists the configurable parameters of the ceph-csi-operator chart and their default values. | ||
|
|
||
| | Parameter | Description | Default | | ||
| |-----------|-------------|---------| | ||
| | `cephfsCtrlpluginSa.serviceAccount.annotations` | | `{}` | | ||
| | `cephfsNodepluginSa.serviceAccount.annotations` | | `{}` | | ||
| | `controllerManager.manager.args[0]` | | `"--leader-elect"` | | ||
| | `controllerManager.manager.containerSecurityContext.allowPrivilegeEscalation` | | `false` | | ||
| | `controllerManager.manager.containerSecurityContext.capabilities.drop[0]` | | `"ALL"` | | ||
| | `controllerManager.manager.containerSecurityContext.readOnlyRootFilesystem` | | `true` | | ||
| | `controllerManager.manager.env.csiServiceAccountPrefix` | | `"ceph-csi-operator-"` | | ||
| | `controllerManager.manager.env.watchNamespace` | | `""` | | ||
| | `controllerManager.manager.image.repository` | | `"quay.io/cephcsi/ceph-csi-operator"` | | ||
| | `controllerManager.manager.image.tag` | | `"latest"` | | ||
| | `controllerManager.manager.resources.limits.cpu` | | `"500m"` | | ||
| | `controllerManager.manager.resources.limits.memory` | | `"128Mi"` | | ||
| | `controllerManager.manager.resources.requests.cpu` | | `"10m"` | | ||
| | `controllerManager.manager.resources.requests.memory` | | `"64Mi"` | | ||
| | `controllerManager.podSecurityContext.runAsNonRoot` | | `true` | | ||
| | `controllerManager.replicas` | | `1` | | ||
| | `controllerManager.serviceAccount.annotations` | | `{}` | | ||
| | `kubernetesClusterDomain` | | `"cluster.local"` | | ||
| | `nfsCtrlpluginSa.serviceAccount.annotations` | | `{}` | | ||
| | `nfsNodepluginSa.serviceAccount.annotations` | | `{}` | | ||
| | `rbdCtrlpluginSa.serviceAccount.annotations` | | `{}` | | ||
| | `rbdNodepluginSa.serviceAccount.annotations` | | `{}` | | ||
|
|
||
| ### **Development Build** | ||
|
|
||
| To deploy from a local build from your development environment: | ||
|
|
||
| 1. Build the cephcsi-operator container image: `make docker-build` | ||
| 1. Copy the image to your K8s cluster, such as with the `docker save` then the `docker load` commands | ||
| 1. Install the helm chart: | ||
|
|
||
| ```console | ||
| cd deploy/charts/ceph-csi-operator | ||
| helm install --create-namespace --namespace ceph-csi-operator-system ceph-csi-operator . | ||
| ``` | ||
|
|
||
| ## Uninstalling the Chart | ||
|
|
||
| To see the currently installed Rook chart: | ||
|
|
||
| ```console | ||
| helm ls --namespace ceph-csi-operator-system | ||
| ``` | ||
|
|
||
| To uninstall/delete the `ceph-csi-operator` deployment: | ||
|
|
||
| ```console | ||
| helm delete --namespace ceph-csi-operator-system ceph-csi-operator | ||
| ``` | ||
|
|
||
| The command removes all the Kubernetes components associated with the chart and deletes the release. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.