This Helm repository is designed to simplify the deployment and management of the kaspr-operator and related custom resources in your Kubernetes cluster.
This repository comes with two charts:
- The
operatorchart is for deploying the kaspr kubernetes operator application. - The
resourceschart is for deploying kaspr custom resources in Kubernetes environments.
- Kubernetes cluster
- Helm 3.x
-
Clone the repository:
git clone https://github.com/totalwinelabs/kaspr-helm.git cd kaspr-helm -
Install the Kaspr operator:
The command below installs the Kaspr operator using the default values file included with the chart, which is sufficient for most deployments. However, if you wish to fine-tune the deployment according to your specific needs, you can provide your own values file.
helm install kaspr-operator charts/operator -n kaspr-operator --create-namespace -
Install Kaspr custom resources:
To properly create the resources you want, you should provide a custom values file that overrides the default settings to meet your specific configuration needs. You can use the -f or --values flag to specify your own values file during the installation. For example, if you have a custom values file named
my-app-values.yaml, you can install a resource like this:helm install kaspr-scheduler charts/resources -f my-app-values.yaml
CRDs are included in the /crds directory of the operator chart and are installed automatically with the Helm chart. However, they need to be manually updated or removed when necessary.
-
Updating CRDs:
kubectl apply -f ./charts/operator/crds -
Removing CRDs:
kubectl delete -f ./charts/operator/crds
The Helm chart supports configurations through values files:
charts/operator/values.yaml: Configures the deployment of the Kaspr operator.charst/reseources/values.yaml: Configures the Kaspr related custom resources.
Refer to these files for detailed configuration options. You should provide a custom values file that overrides the default settings when deploying kaspr custom resources to meet your specific needs.
- Cluster-wide: Set
watchAnyNamespacetoTruein operator'svalues.yamlfor the operator to monitor resources across all namespaces. - Namespace-specific: Define specific namespaces in
watchNamespacesinoperator.values.yaml. The operator's deployment namespace is always included.
To uninstall the Kaspr operator:
helm uninstall kaspr-operator -n kaspr-operator
Remember to manually remove the CRDs if necessary.
For issues or questions, please open an issue in the GitHub repository.
This project is licensed under the MIT License - see the LICENSE.md file for details.