liweiquan fa50ad0d2a 修改airflow apiIsStable 为true | 1 year ago | |
---|---|---|
aihub-dag-dev | 1 year ago | |
aihub-spark | 1 year ago | |
airflow | 1 year ago | |
dag | 1 year ago | |
nfs-client-provisioner | 1 year ago | |
.gitignore | 1 year ago | |
.helmignore | 2 years ago | |
Makefile | 1 year ago | |
README.md | 1 year ago | |
config-idcprod | 1 year ago | |
config-idctest | 1 year ago | |
config-sxkj | 2 years ago | |
config-txprod | 1 year ago | |
config-txtest | 2 years ago | |
git-secret.yaml | 1 year ago | |
helm | 1 year ago | |
pvc-test.yaml | 1 year ago | |
run.py | 1 year ago | |
run1.py | 1 year ago | |
submit.sh | 1 year ago |
kubectl get node --show-labels
# add label
kubectl label node 10.138.143.25 aihub-dag=aihub-dag
# txtest
kubectl get node --show-labels --kubeconfig config-txtest | grep -iv gpu | awk '{print $1}' | xargs -I {} kubectl label node {} aihub-dag=aihub-dag --kubeconfig config-txtest
# txprod
kubectl get node --show-labels --kubeconfig config-txprod | grep -iv gpu | awk '{print $1}' | xargs -I {} kubectl label node {} aihub-dag=aihub-dag --kubeconfig config-txprod
# delete label
kubectl label node 10.138.143.25 aihub-dag-
helm repo add azure http://mirror.azure.cn/kubernetes/charts/
helm search repo nfs-client-provisioner
# idctest
helm install nfs-storage azure/nfs-client-provisioner \
--set nfs.server=100.127.8.85 \
--set nfs.path=/mnt/sfs_perf/41b873b5385a483ab05fe166257f34d1_zwet4mbqr66f3f4c/test-aihub-nas/aihub-dag-idctest \
--set storageClass.name=nfs-storage \
--set storageClass.defaultClass=true
# idcprod
helm upgrade --install nfs-storage azure/nfs-client-provisioner \
--set nfs.server=100.127.8.85 \
--set nfs.path=/mnt/sfs_perf/41b873b5385a483ab05fe166257f34d1_mkv38c6gfkjiudmn/prod-aihub-nas/aihub-dag-prod \
--set storageClass.name=nfs-storage \
--set storageClass.defaultClass=true
主要用于调试大数据相关的环境和网络策略。
# sxkj
helm3 upgrade --install aihub-spark ./aihub-spark -f aihub-spark/values.yaml -n airflow --kubeconfig config-sxkj
# idctest
helm upgrade --install aihub-spark ./aihub-spark -f aihub-spark/values-idctest.yaml -n ns-aihub-dag --kubeconfig config-idctest
# idcprod
helm upgrade --install aihub-spark ./aihub-spark -f aihub-spark/values-idcprod.yaml -n ns-aihub-dag --kubeconfig config-idcprod
helm upgrade --install airflow ./chart -f ./values.yaml -n airflow --set defaultAirflowRepository=registry.cn-hangzhou.aliyuncs.com/sxtest/airflow \
--set images.airflow.pollPolicy=Always --set defaultAirflowTag=v1 --create-namespace
# sxkj
cd airflow/origin
helm upgrade --install airflow ./airflow -f values-sxkj.yaml -n airflow --set defaultAirflowRepository=registry.cn-hangzhou.aliyuncs.com/sxtest/airflow \
--set images.airflow.pollPolicy=Always --set defaultAirflowTag=v1 --kubeconfig ../../config-sxkj
# txtest
cd airflow/origin
helm upgrade --install airflow ./airflow -f values-txtest.yaml -n aihub-test --set defaultAirflowRepository=registry.cn-hangzhou.aliyuncs.com/sxtest/airflow --set images.airflow.pollPolicy=Always --set defaultAirflowTag=v1 --kubeconfig ../../config-txtest
# idctest
cd airflow/idctest
helm3 upgrade --install airflow ./chart -f values-idctest.yaml --set defaultAirflowRepository=registry.cn-hangzhou.aliyuncs.com/sxtest/airflow \
--set images.airflow.pollPolicy=Always --set defaultAirflowTag=v1 -n ns-aihub-dag --kubeconfig ../../config-idctest
# idcprod
cd airflow/idctest
helm upgrade --install airflow ./chart -f values-idcprod.yaml --set defaultAirflowRepository=registry.cn-hangzhou.aliyuncs.com/sxtest/airflow \
--set images.airflow.pollPolicy=Always --set defaultAirflowTag=v1 --kubeconfig ../../config-idcprod -n ns-aihub-dag
# txprod
cd airflow/idctest
helm upgrade --install airflow ./chart -f values-txprod.yaml --set defaultAirflowRepository=registry.cn-hangzhou.aliyuncs.com/sxtest/airflow --set defaultAirflowTag=v1 \
--kubeconfig ../../config-txprod -n aihub-prod
cd dag
# jupyterlab 的所有存储
kubectl apply -f jupyterlab-data-pv.yaml -n airflow
# 在namespace airflow 先部署 airflow
# helm >= 3.2
# 调试
helm template aihub-dag ./ --dry-run --debug -f values.yaml -n airflow
# idctest
helm upgrade --install aihub-dag ./dag -f dag/values-idctest.yaml -n ns-aihub-dag --kubeconfig config-idctest
# idcprod
helm upgrade --install aihub-dag ./dag -f dag/values-idcprod.yaml -n ns-aihub-dag --kubeconfig config-idcprod
# txtest
helm upgrade --install aihub-dag ./dag -f dag/values-txtest.yaml -n aihub-test --kubeconfig config-txtest
# txprod
helm upgrade --install aihub-dag ./dag -f dag/values-txprod.yaml -n aihub-prod --kubeconfig config-txprod
# sxkj
helm3 upgrade --install aihub-dag ./dag -f dag/values-sxkj.yaml -n airflow --kubeconfig config-sxkj
用于测试环境调试。
helm upgrade --install aihub-dag-dev ./aihub-dag-dev -f ./aihub-dag-dev/values-txtest.yaml -n aihub-test