Important
Prerequisites: Ensure cert-manager is installed in your cluster before deploying the operator.
Choose your preferred installation method:
Clone the repository to your local machine:
git clone https://github.com/InditexTech/k8s-overcommit-operator.git
cd k8s-overcommit-operatorEdit the values.yaml file to customize your deployment. Below is an example configuration:
# Example configuration
deployment:
image:
registry: ghcr.io
image: inditextech/k8s-overcommit-operator
tag: 1.0.0Install the operator using Helm:
helm install k8s-overcommit-operator chartFor OpenShift or clusters with OLM installed, apply the catalog source:
kubectl apply -f https://raw.githubusercontent.com/InditexTech/k8s-overcommit-operator/refs/heads/main/deploy/catalog_source.yamlApply the operator group configuration:
kubectl apply -f https://raw.githubusercontent.com/InditexTech/k8s-overcommit-operator/refs/heads/main/deploy/operator_group.yamlYou can create your own subscription or use the default subscription.yaml. Below is an example:
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: k8s-overcommit-operator
namespace: operators
spec:
channel: alpha
name: k8s-overcommit-operator
source: community-operators
sourceNamespace: olmApply the subscription:
kubectl apply -f https://raw.githubusercontent.com/InditexTech/k8s-overcommit-operator/refs/heads/main/deploy/subscription.yamlAfter installation, validate that the operator is running:
kubectl get pods -n k8s-overcommit