1,安装方式
采用helm安装方式,首先下载对应的helm chart,这里采用v1.2.2版本,下载地址:
https://github.com/ray-project/kuberay-helm/releases/tag/kuberay-operator-1.2.2
2,解压并修改镜像源
由于是在内网环境下搭建,因此需要将对应的镜像下载下来,并导入到本地镜像仓库,并修改values.yaml的镜像仓库地址
image:
repository: xxx/kuberay/operator
tag: v1.2.2
pullPolicy: IfNotPresent
3,上传到服务器,并执行安装命令
helm安装char有六种方式:
- 1,通过chart引用: helm install mymaria example/mariadb
- 2,通过chart包: helm install mynginx ./nginx-1.2.3.tgz
- 3,通过未打包chart目录的路径: helm install mynginx ./nginx
- 4,通过URL绝对路径: helm install mynginx https://example.com/charts/nginx-1.2.3.tgz
- 5,通过chart引用和仓库url: helm install --repo https://example.com/charts/ mynginx nginx
- 6,通过OCI注册中心: helm install mynginx --version 1.2.3 oci://example.com/charts/nginx
这里采用第3种方式安装:
helm install kuberay-operator ./kuberay-operator
通过命令kubectl get pods
查看operator已经处于运行状态,安装成功