Kueue Operator provides the ability to deploy kueue using different configurations
The Kueue Operator needs CertManager installed to operate correctly
ko version | ocp version | kueue version | k8s version | golang |
---|---|---|---|---|
1.0.0 | 4.19 - 4.20 | 0.11.z | 1.32 | 1.23 |
Kueue releases around 6 times a year. For the latest Openshift version, we will take the latest version that was build with that underlying Kubernetes version.
See Kueue Release for more details on the Kueue release policy.
-
Login into podman and have a repository created.
-
Set OPERATOR_IMAGE to point to your repostory ie export OPERATOR_IMAGE=quay.io/testrepo/kueue-operator:test
-
Build operator image:
make operator-build
-
Push operator image to repository:
make operator-push
-
Set $KUEUE_IMAGE to point to kueue operand image
-
Run
make deploy-cert-manager
to deploy OperatorGroup and Subscription in cert-manager-operator namespace. -
Run
make deploy-ocp
to deploy the operator using the $OPERATOR_IMAGE and $KUEUE_IMAGE for operator and operand, respectively. -
Run
make undeploy-ocp
to remove operator from ocp cluster
-
Login into podman and have a repository created for the operator bundle.
-
Set BUNDLE_IMAGE to point to your repostory and a tag of choice
-
Run
make bundle-generate
to generate the bundle manifests -
Run
make bundle-build
to build thebundle.Dockerfile
. -
Run
make bundle-push
to push the bundle image to your repository. -
Run
make deploy-cert-manager
to deploy OperatorGroup and Subscription in cert-manager-operator namespace. -
Set OPERATOR_NAMESPACE, i.e, "kueue-operator"
-
Run
oc new-project $OPERATOR_NAMESPACE
to create a namespace for the operaotr -
Run
operator-sdk run bundle --namespace $OPERATOR_NAMESPACE ${BUNDLE_IMAGE}
to deploy operator to $OPERATOR_NAMESPACE
-
make
-
oc apply -f deploy/
-
oc apply -f deploy/crd
-
hack/run-locally.sh
-
Optionally run
oc apply -f deploy/examples/job.yaml
apiVersion: operator.openshift.io/v1alpha1
kind: Kueue
metadata:
labels:
app.kubernetes.io/name: kueue-operator
app.kubernetes.io/managed-by: kustomize
name: cluster
namespace: openshift-kueue-operator
spec:
config:
integrations:
frameworks:
- "batch/job"
- Set kubeconfig to point to a OCP cluster
- Set OPERATOR_IMAGE to point to your operator image
- Set KUEUE_IMAGE to point to your kueue image you want to test
- make deploy-cert-manager test-e2e