You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apiserver/DEVELOPMENT.md
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,9 @@ make docker-image
159
159
160
160
#### Start Kubernetes Deployment
161
161
162
-
Note that you should make your KubeRay API server image available by either pushing it to an image registry, such as DockerHub or Quay, or by loading the image into the Kubernetes cluster. If you are using a Kind cluster for development, you can run `make load-image` to load the newly built API server image into the Kind cluster. The operator image will also be needed to be loaded on your cluster. You can use `make operator-image` to build a fresh image from sources, and, if you are using a Kind cluster for development, you can run `make load-operator-image`.
162
+
Note that you should make your KubeRay API server image available by either pushing it to an image registry, such as DockerHub or Quay, or by loading the image into the Kubernetes cluster. If you are using a Kind cluster for development, you can run `make load-image` to load the newly built API server image into the Kind cluster. The operator image will also be needed to be loaded on your cluster. If you want run secure API server, you can build security proxy using `make security-proxy-image` and load it to the cluster using `make load-security-proxy-image`
163
+
164
+
You can use `make operator-image` to build a fresh image from sources, and, if you are using a Kind cluster for development, you can run `make load-operator-image`.
163
165
164
166
```bash
165
167
#Optionally, to load the api server image into the local kind cluster created with make cluster
@@ -168,8 +170,11 @@ make load-image
168
170
#To use the helm charts
169
171
make deploy
170
172
171
-
#To use the configuration from deploy/base
173
+
#To use the configuration from deploy/base for insecure API server
172
174
make install
175
+
176
+
#To use the configuration from deploy/base for secure API server
177
+
make install-secure
173
178
```
174
179
175
180
#### Stop Kubernetes Deployment
@@ -178,8 +183,11 @@ make install
178
183
#To use the helm charts
179
184
make undeploy
180
185
181
-
#To use the configuration
186
+
#To use the configuration insecure
182
187
make uninstall
188
+
189
+
#To use the configuration secure
190
+
make uninstall-secure
183
191
```
184
192
185
193
#### Local Kind Cluster Deployment
@@ -190,7 +198,9 @@ As a convenience for local development the following `make` targets are provided
190
198
*`make clean-cluster`-- deletes the local kind cluster created with`make cluster`
191
199
*`load-image`-- loads the docker image defined by the `IMG` make variable into the kind cluster. The default value for variable is:`kuberay/apiserver:latest`. The name of the image can be changed by using `make load-image -e IMG=<your image name and tag>`
192
200
*`operator-image`-- Build the operator image to be loaded in your kind cluster. The operator image build is `kuberay/operator:latest`. The image tag can be overridden from the command line: ( example:`make operator-image -e OPERATOR_IMAGE_TAG=foo`)
193
-
*`load-operator-image`-- Load the operator image to the kind cluster created with`make cluster`. It should be used in conjunction with the `deploy-operator targe`
201
+
*`load-operator-image`-- Load the operator image to the kind cluster created with`make cluster`. It should be used in conjunction with the `deploy-operator target`
202
+
*`security-proxy-image`-- Build the security proxy image to be loaded in your kind cluster. The security proxy image build is `kuberay/security-proxy:latest`. The image tag can be overridden from the command line: ( example:`make security-proxy-image -e SECURITY_IMAGE_TAG=foo`)
203
+
*`load-security-proxy-image`-- Load the security proxy image to the kind cluster created with`make cluster`. It should be used in conjunction with the `install-secure`
194
204
*`deploy-operator`-- Deploy operator into your cluster. The tag for the operator image is `kuberay/operator:latest`.
195
205
*`undeploy-operator`-- Undeploy operator from your cluster
196
206
*`load-ray-test-image`-- Load the ray test images into the cluster.
install-secure: kustomize docker-image security-proxy-image load-image load-security-proxy-image ## Install the kuberay api server to the K8s cluster specified in ~/.kube/config.
177
+
install-secure: kustomize docker-image security-proxy-image load-image load-security-proxy-image ## Install the kuberay api server with security to the K8s cluster specified in ~/.kube/config.
178
178
cd deploy/local/secure &&$(KUSTOMIZE) edit set image kuberay/apiserver=$(IMG)&&$(KUSTOMIZE) edit set image kuberay/security-proxy=kuberay/security-proxy:latest
0 commit comments