Nincs leírás

Zhang Li 1e94c13899 add proxy-body-size 1 éve
aihub-dag-jupyter cadf98f49a 去掉jupyterlab pvc 1 éve
dag-jupyter 1e94c13899 add proxy-body-size 1 éve
.dockerignore 88bbd7f92e add dockerfile 2 éve
.gitignore 62e7bd65bb update .gitignore 2 éve
Dockerfile 936f7add35 add txprod 2 éve
Makefile 66b08d0d66 update makefile 1 éve
README.md e4dde496c9 修改readme.md helm命令 1 éve
config-example.yaml 88bbd7f92e add dockerfile 2 éve
config-idctest.yaml 62f0d77aa7 add idctest 2 éve
config-sxkj.yaml 88bbd7f92e add dockerfile 2 éve
config-txprod.yaml 936f7add35 add txprod 2 éve
config-txtest.yaml 97671d7ec7 add txtest 2 éve
docker-compose.yml a7815ae204 add status api 2 éve
helmwrapper 88bbd7f92e add dockerfile 2 éve
jupyter.api 5804b1c3c6 add ingress class 2 éve

README.md

aihub dag 平台启停 jupyterlab

生产项目脚手架

goctl api go -api jupyter.api --dir dag-jupyter

api

# 创建
curl --location --request POST 'http://192.168.199.109:18080/helm/ops/start' \
--header 'Content-Type: application/json' \
--data-raw '{
    "password": "argon2:$argon2id$v=19$m=10240,t=10,p=8$vSn0+TR0clV8kla6yqcZqQ$XgjDauBkBL5aY8C8668HKJjoTX7BUT/WccJ+BeANHq4",
    "namespace": "airflow",
    "workspace": "hello1",
    "base_url": "/nbss",
    "image": "SXKJ:32775/jupyterlab",
    "tag": "sxkj",
    "path": "/nbss",
    "host": "jupyterlab.sxkj.com",
    "release_name": "aihub-dag-jpt",
    "chart": "aihub-dag-jupyter.tgz",
    "path_type": "ImplementationSpecific"
}'

# 停止
curl --location --request POST 'http://192.168.199.109:18080/helm/ops/stop' \
--header 'Content-Type: application/json' \
--data-raw '{
    "namespace": "airflow",
    "release_name": "aihub-dag-jpt"
}'

# 更新
curl --location --request POST 'http://192.168.199.109:18080/helm/ops/upgrade' \
--header 'Content-Type: application/json' \
--data-raw '{
    "password": "argon2:$argon2id$v=19$m=10240,t=10,p=8$7XUU6rFtMFQl08bhGEry7g$tGEDIonDG93ZSXmOHYKnppoZJaBnT/x+ptB1SRPDIMI",
    "namespace": "airflow",
    "workspace": "hello1",
    "base_url": "/nbss",
    "image": "SXKJ:32775/jupyterlab",
    "tag": "sxkj",
    "path": "/nbss",
    "host": "jupyterlab.sxkj.com",
    "release_name": "aihub-dag-jpt",
    "chart": "aihub-dag-jupyter.tgz",
    "path_type": "ImplementationSpecific"
}'

# 获取password
curl --location --request GET 'http://192.168.199.109:18080/helm/password' \
--header 'Content-Type: application/json' \
--data-raw '{"password": "123456"}'

# 查看状态

curl --location --request POST 'http://192.168.199.109:18080/helm/ops/status' \
--header 'Content-Type: application/json' \
--data-raw '{
    "namespace": "airflow",
    "filter": "aihub-*"
}'

helm 启动命令

helm3  upgrade --install aihub-dag-jpt-12  ./aihub-dag-jupyter/  -f aihub-dag-jupyter/values.yaml -n airflow \
--set "ingress.jupyterlab.hosts[0].host=jupyterlab.sxkj.com,ingress.jupyterlab.hosts[0].paths[0].path=/nbsss" \
--set jupyterlab.image.repository=SXKJ:32775/jupyterlab \
--set jupyterlab.image.tag=sxkj --set jupyterlab.config.password="\"argon2:\$argon2id\$v=19\$m=10240\,t=10\,p=8\$vSn0+TR0clV8kla6yqcZqQ\$XgjDauBkBL5aY8C8668HKJjoTX7BUT/WccJ+BeANHq4\"" \
--set jupyterlab.config.baseUrl="/nbsss" \
--set jupyterlab.config.workspace="hello2" \
--kubeconfig=`pwd`/config-sxkj.yaml


helm wrapper

/app/helmwrapper --config /app/config-example.yaml --kubeconfig config.yaml --port 8081