diff --git a/contrib/ray/kuberay-operator/overlays/kubeflow/disable-injection.yaml b/contrib/ray/kuberay-operator/overlays/kubeflow/disable-injection.yaml new file mode 100644 index 0000000000..bb757416a1 --- /dev/null +++ b/contrib/ray/kuberay-operator/overlays/kubeflow/disable-injection.yaml @@ -0,0 +1,13 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: kuberay-operator + namespace: kubeflow +spec: + template: + spec: + containers: + - name: kuberay-operator + env: + - name: ENABLE_INIT_CONTAINER_INJECTION + value: "false" diff --git a/contrib/ray/kuberay-operator/overlays/kubeflow/kustomization.yaml b/contrib/ray/kuberay-operator/overlays/kubeflow/kustomization.yaml index 5520f1897a..49421b7e53 100644 --- a/contrib/ray/kuberay-operator/overlays/kubeflow/kustomization.yaml +++ b/contrib/ray/kuberay-operator/overlays/kubeflow/kustomization.yaml @@ -1,3 +1,6 @@ namespace: kubeflow resources: - ../../base + +patches: +- path: disable-injection.yaml diff --git a/contrib/ray/test.sh b/contrib/ray/test.sh index 71c8c5eaeb..02c82b4d59 100755 --- a/contrib/ray/test.sh +++ b/contrib/ray/test.sh @@ -33,7 +33,7 @@ kubectl label namespace $NAMESPACE istio-injection=enabled kubectl get namespaces --selector=istio-injection=enabled # Install KubeRay operator -kustomize build kuberay-operator/overlays/standalone | kubectl -n kubeflow apply --server-side -f - +kustomize build kuberay-operator/overlays/kubeflow | kubectl -n kubeflow apply --server-side -f - # Wait for the operator to be ready. kubectl -n kubeflow wait --for=condition=available --timeout=600s deploy/kuberay-operator @@ -87,4 +87,4 @@ for ((i=0; i