Rev: 2.1.17
Require: 3.9.0+
Pod deploy application name ➠ ares-g2-fastapi (namespace: kube-ops)
- {+ Production +}
- {- Staging -}
- Cluster Internal Access
- Access servie using app name → http://ares-g2-fastapi:8787
-
Build Image
$ docker build --no-cache -t registry.ipt-gitlab:8081/ta-web/sit-web-fastapi:${VERSION} . $ docker push registry.ipt-gitlab:8081/ta-web/sit-web-fastapi:${VERSION}
-
Docker Container Deployment
$ docker run -tid \ --add-host ipt-gitlab.ies.inventec:10.99.104.242 \ --add-host mailrelay-b.ies.inventec:10.99.2.61 \ -p 8787:8787 \ -p 8788:22 \ --volume /etc/localtime:/etc/localtime:ro \ --privileged=true \ --restart=always \ --name ipt-fastapi \ registry.ipt-gitlab:8081/ta-web/sit-web-fastapi:${VERSION} \ bash service.sh --stag -
Kubernetes Cluster Deployment
$ kubectl delete -f deployments/deploy-server.yml $ sleep 1m $ kubectl apply -f deployments/deploy-server.yml --record
點我顯示/關閉更多驗證資訊。
- None.
- Latest script has been validated by Liu.AllenJH on K8S-Cluster at 2021-05-30.
- Flask x Vue - https://learnku.com/python/t/24985