No Description

liweiquan b7d342798a 更新腾讯云生产k8凭证 7 months ago
aihub-dag-jupyter 66e333db81 feat: hostAliases 1 year ago
dag-jupyter 4760687574 fix: redirect /tree 1 year ago
deploy 279e26d56d origin 1 year ago
.dockerignore 88bbd7f92e add dockerfile 2 years ago
.gitignore 62e7bd65bb update .gitignore 2 years ago
Dockerfile 19ac395a7d add idcprod 1 year ago
Makefile 19ac395a7d add idcprod 1 year ago
README.md fe659029b4 测试CICD 1 year ago
config-example.yaml 88bbd7f92e add dockerfile 2 years ago
config-idcprod.yaml 19ac395a7d add idcprod 1 year ago
config-idctest.yaml 53d5746d6c update idctest config 1 year ago
config-sxkj.yaml 88bbd7f92e add dockerfile 2 years ago
config-txprod.yaml b7d342798a 更新腾讯云生产k8凭证 7 months ago
config-txtest.yaml 97671d7ec7 add txtest 2 years ago
docker-compose.yml a7815ae204 add status api 2 years ago
helmwrapper 88bbd7f92e add dockerfile 2 years ago
jupyter.api c00dd2be5a feat: cpu and memory 1 year ago

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