Sin descripción

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

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