From c64831d7682ef7b71f400262658a662675fff59d Mon Sep 17 00:00:00 2001 From: Kai-Hsun Chen Date: Mon, 17 Apr 2023 14:41:28 -0700 Subject: [PATCH] [release v0.5.1] Remove init container (#15) Remove init container --- helm-chart/kuberay-apiserver/Chart.yaml | 2 +- helm-chart/kuberay-apiserver/README.md | 6 +++--- helm-chart/kuberay-operator/Chart.yaml | 2 +- helm-chart/kuberay-operator/README.md | 14 +++++++------- helm-chart/ray-cluster/Chart.yaml | 2 +- helm-chart/ray-cluster/README.md | 8 ++++---- .../ray-cluster/templates/raycluster-cluster.yaml | 12 ------------ helm-chart/ray-cluster/values.yaml | 7 ------- 8 files changed, 17 insertions(+), 36 deletions(-) diff --git a/helm-chart/kuberay-apiserver/Chart.yaml b/helm-chart/kuberay-apiserver/Chart.yaml index af645e9..c312444 100644 --- a/helm-chart/kuberay-apiserver/Chart.yaml +++ b/helm-chart/kuberay-apiserver/Chart.yaml @@ -15,4 +15,4 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.5.0 +version: 0.5.1 diff --git a/helm-chart/kuberay-apiserver/README.md b/helm-chart/kuberay-apiserver/README.md index e997da3..0981e6b 100644 --- a/helm-chart/kuberay-apiserver/README.md +++ b/helm-chart/kuberay-apiserver/README.md @@ -16,8 +16,8 @@ helm version ```sh helm repo add kuberay https://ray-project.github.io/kuberay-helm/ - # Install the KubeRay API Server at Version v0.4.0. - helm install kuberay-apiserver kuberay/kuberay-apiserver --version 0.4.0 + # Install the KubeRay API Server at Version v0.5.0. + helm install kuberay-apiserver kuberay/kuberay-apiserver --version 0.5.0 # Check that the KubeRay API Server is running in the "default" namespaces. kubectl get pods @@ -42,7 +42,7 @@ To list the `kuberay-apiserver` release: ```sh helm ls # NAME NAMESPACE REVISION UPDATED STATUS CHART -# kuberay-apiserver default 1 2022-12-02 02:13:37.514445313 +0000 UTC deployed kuberay-apiserver-0.4.0 +# kuberay-apiserver default 1 2022-12-02 02:13:37.514445313 +0000 UTC deployed kuberay-apiserver-0.5.0 ``` ## Uninstall the Chart diff --git a/helm-chart/kuberay-operator/Chart.yaml b/helm-chart/kuberay-operator/Chart.yaml index 25c8f16..47bc73a 100644 --- a/helm-chart/kuberay-operator/Chart.yaml +++ b/helm-chart/kuberay-operator/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 description: A Helm chart for Kubernetes name: kuberay-operator -version: 0.5.0 +version: 0.5.1 icon: https://github.com/ray-project/ray/raw/master/doc/source/images/ray_header_logo.png type: application diff --git a/helm-chart/kuberay-operator/README.md b/helm-chart/kuberay-operator/README.md index f6f129d..33173ed 100644 --- a/helm-chart/kuberay-operator/README.md +++ b/helm-chart/kuberay-operator/README.md @@ -16,8 +16,8 @@ helm version ```sh helm repo add kuberay https://ray-project.github.io/kuberay-helm/ - # Install both CRDs and KubeRay operator v0.4.0. - helm install kuberay-operator kuberay/kuberay-operator --version 0.4.0 + # Install both CRDs and KubeRay operator v0.5.0. + helm install kuberay-operator kuberay/kuberay-operator --version 0.5.0 # Check the KubeRay operator Pod in `default` namespace kubectl get pods @@ -40,10 +40,10 @@ helm version * Use Helm's built-in `--skip-crds` flag to install the operator only. See [this document](https://helm.sh/docs/chart_best_practices/custom_resource_definitions/) for more details. ```sh # Step 1: Install CRDs only (for cluster admin) - kubectl create -k "github.com/ray-project/kuberay/manifests/cluster-scope-resources?ref=v0.4.0&timeout=90s" + kubectl create -k "github.com/ray-project/kuberay/manifests/cluster-scope-resources?ref=v0.5.0&timeout=90s" # Step 2: Install KubeRay operator only. (for developer) - helm install kuberay-operator kuberay/kuberay-operator --version 0.4.0 --skip-crds + helm install kuberay-operator kuberay/kuberay-operator --version 0.5.0 --skip-crds ``` ## List the chart @@ -53,7 +53,7 @@ To list the `my-release` deployment: ```sh helm ls # NAME NAMESPACE REVISION UPDATED STATUS CHART # APP VERSION -# kuberay-operator default 1 2022-12-02 02:13:37.514445313 +0000 UTC deployed kuberay-operator-0.4.0 1.0 +# kuberay-operator default 1 2022-12-02 02:13:37.514445313 +0000 UTC deployed kuberay-operator-0.5.0 1.0 ``` ## Uninstall the Chart @@ -83,7 +83,7 @@ spec: project: default source: repoURL: https://github.com/ray-project/kuberay - targetRevision: v0.4.0 + targetRevision: v0.5.0 path: helm-chart/kuberay-operator/crds destination: server: https://kubernetes.default.svc @@ -103,7 +103,7 @@ metadata: spec: source: repoURL: https://github.com/ray-project/kuberay - targetRevision: v0.4.0 + targetRevision: v0.5.0 path: helm-chart/kuberay-operator helm: skipCrds: true diff --git a/helm-chart/ray-cluster/Chart.yaml b/helm-chart/ray-cluster/Chart.yaml index bb0444b..0cca865 100644 --- a/helm-chart/ray-cluster/Chart.yaml +++ b/helm-chart/ray-cluster/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v1 description: A Helm chart for Kubernetes name: ray-cluster -version: 0.5.0 +version: 0.5.1 icon: https://github.com/ray-project/ray/raw/master/doc/source/images/ray_header_logo.png diff --git a/helm-chart/ray-cluster/README.md b/helm-chart/ray-cluster/README.md index b96acc8..b6b4b83 100644 --- a/helm-chart/ray-cluster/README.md +++ b/helm-chart/ray-cluster/README.md @@ -16,15 +16,15 @@ kind create cluster # Step 2: Register a Helm chart repo helm repo add kuberay https://ray-project.github.io/kuberay-helm/ -# Step 3: Install both CRDs and KubeRay operator v0.4.0. -helm install kuberay-operator kuberay/kuberay-operator --version 0.4.0 +# Step 3: Install both CRDs and KubeRay operator v0.5.0. +helm install kuberay-operator kuberay/kuberay-operator --version 0.5.0 # Step 4: Install a RayCluster custom resource # (For x86_64 users) -helm install raycluster kuberay/ray-cluster --version 0.4.0 +helm install raycluster kuberay/ray-cluster --version 0.5.0 # (For arm64 users, e.g. Mac M1) # See here for all available arm64 images: https://hub.docker.com/r/rayproject/ray/tags?page=1&name=aarch64 -helm install raycluster kuberay/ray-cluster --version 0.4.0 --set image.tag=nightly-aarch64 +helm install raycluster kuberay/ray-cluster --version 0.5.0 --set image.tag=nightly-aarch64 # Step 5: Verify the installation of KubeRay operator and RayCluster kubectl get pods diff --git a/helm-chart/ray-cluster/templates/raycluster-cluster.yaml b/helm-chart/ray-cluster/templates/raycluster-cluster.yaml index 90d81a6..3ca8817 100644 --- a/helm-chart/ray-cluster/templates/raycluster-cluster.yaml +++ b/helm-chart/ray-cluster/templates/raycluster-cluster.yaml @@ -97,12 +97,6 @@ spec: template: spec: imagePullSecrets: {{- toYaml $.Values.imagePullSecrets | nindent 10 }} - initContainers: - - name: init - image: {{ $values.initContainerImage | default "busybox:1.28" }} - command: ['sh', '-c', "until nslookup $FQ_RAY_IP; do echo waiting for K8s Service $FQ_RAY_IP; sleep 2; done"] - securityContext: - {{- toYaml $values.initContainerSecurityContext | nindent 14 }} {{- if $values.serviceAccountName }} serviceAccountName: {{ $values.serviceAccountName }} {{- end }} @@ -166,12 +160,6 @@ spec: template: spec: imagePullSecrets: {{- toYaml .Values.imagePullSecrets | nindent 10 }} - initContainers: - - name: init - image: {{ .Values.worker.initContainerImage | default "busybox:1.28" }} - command: ['sh', '-c', "until nslookup $FQ_RAY_IP; do echo waiting for K8s Service $FQ_RAY_IP; sleep 2; done"] - securityContext: - {{- toYaml .Values.worker.initContainerSecurityContext | nindent 14 }} {{- if .Values.worker.serviceAccountName }} serviceAccountName: {{ .Values.worker.serviceAccountName }} {{- end }} diff --git a/helm-chart/ray-cluster/values.yaml b/helm-chart/ray-cluster/values.yaml index 6d5e457..8dd7ce2 100644 --- a/helm-chart/ray-cluster/values.yaml +++ b/helm-chart/ray-cluster/values.yaml @@ -49,7 +49,6 @@ head: serviceAccountName: "" rayStartParams: dashboard-host: '0.0.0.0' - block: 'true' # containerEnv specifies environment variables for the Ray container, # Follows standard K8s container env schema. containerEnv: [] @@ -109,9 +108,6 @@ worker: serviceAccountName: "" rayStartParams: block: 'true' - initContainerImage: 'busybox:1.28' # Enable users to specify the image for init container. Users can pull the busybox image from their private repositories. - # Security context for the init container. - initContainerSecurityContext: {} # containerEnv specifies environment variables for the Ray container, # Follows standard K8s container env schema. containerEnv: [] @@ -173,9 +169,6 @@ additionalWorkerGroups: serviceAccountName: "" rayStartParams: block: 'true' - initContainerImage: 'busybox:1.28' # Enable users to specify the image for init container. Users can pull the busybox image from their private repositories. - # Security context for the init container. - initContainerSecurityContext: {} # containerEnv specifies environment variables for the Ray container, # Follows standard K8s container env schema. containerEnv: []