Skip to content

Commit

Permalink
made namespace change
Browse files Browse the repository at this point in the history
Signed-off-by: hansinikarunarathne <[email protected]>
  • Loading branch information
hansinikarunarathne committed Sep 9, 2024
1 parent e93403d commit 0f8d5fb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
namespace: kubeflow
resources:
- ../../base
- namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: kubeflow
labels:
istio-injection: enabled
1 change: 0 additions & 1 deletion contrib/ray/raycluster_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: ray.io/v1
kind: RayCluster
metadata:
name: kubeflow-raycluster
namespace: kubeflow
spec:
rayVersion: '2.23.0'
enableInTreeAutoscaling: true
Expand Down
1 change: 0 additions & 1 deletion contrib/ray/raycluster_istio_headless_svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ metadata:
labels:
ray.io/headless-worker-svc: raycluster-istio
name: raycluster-istio-headless-svc
namespace: kubeflow
spec:
clusterIP: None
selector:
Expand Down
11 changes: 2 additions & 9 deletions contrib/ray/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ function trap_handler {

trap trap_handler EXIT

# Check if namespace exists, if not, create it
if ! kubectl get namespace $NAMESPACE > /dev/null 2>&1; then
kubectl create namespace $NAMESPACE
fi

kubectl label namespace kubeflow istio-injection=enabled

kubectl get namespaces --selector=istio-injection=enabled


Expand All @@ -53,13 +46,13 @@ kubectl -n $NAMESPACE wait --for=condition=available --timeout=600s deploy/kuber
kubectl -n $NAMESPACE get pod -l app.kubernetes.io/component=kuberay-operator

# Create a RayCluster Headless serivice
kubectl apply -f raycluster_istio_headless_svc.yaml
kubectl -n $NAMESPACE apply -f raycluster_istio_headless_svc.yaml

# Create a RayCluster AuthorizationPolicy
kubectl apply -f raycluster_istio_auth_policy.yaml

# Create a RayCluster custom resource.
kubectl apply -f raycluster_example.yaml
kubectl -n $NAMESPACE apply -f raycluster_example.yaml

# Wait for the RayCluster to be ready.
sleep 5
Expand Down

0 comments on commit 0f8d5fb

Please sign in to comment.