制作鏡像
docker pull ghcr.io/googlecloudplatform/spark-operator:v1beta2-1.3.8-3.1.1
docker images
docker save ImageID > ./spark.tar
將制作的鏡像上傳到目的機(jī)器中,加載鏡像
docker load < ./spark.tar
打標(biāo)簽其中xxxx.xxx/xx/為私有倉(cāng)庫(kù)的地址
docker tag imgaeID xxxx.xxx/xx/spark-operator:v1beta2-1.3.8-3.1.1
將制作好的鏡像推到私有倉(cāng)庫(kù)中
docker push xxxx.xxx/xx/spark-operator:v1beta2-1.3.8-3.1.1
下載spark-operator和部署
Github地址:
https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/releases/download/spark-operator-chart-1.1.27/spark-operator-1.1.27.tgz
下載上傳到機(jī)器中
解壓spark-operator-1.1.27.tgz,修改values.yaml內(nèi)容,修改副本數(shù)量為3、鏡像源、利用偽親和性使得三個(gè)副本在三臺(tái)機(jī)器上。
修改Chart.yaml文件
打包壓縮:
tar -zcvf spark.tgz spark-operator
使用helm部署spark
helm install 名稱 ./spark.tgz -n 命名空間
升級(jí)
helm upgrade 名稱 ./spark.tgz -f spark-operator/values.yaml -n 命名空間
卸載文章來源:http://www.zghlxwxcb.cn/news/detail-707778.html
helm uninstall 名稱 -n 命名空間
查看部署情況文章來源地址http://www.zghlxwxcb.cn/news/detail-707778.html
kubectl get pods -n 命名空間 | grep 名稱
到了這里,關(guān)于使用k8s helm離線部署spark-operator(私有倉(cāng)庫(kù))的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!