This shows you the differences between two versions of the page.
| — |
linux:k8sdocker [2021/06/01 15:29] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== kubectl ====== | ||
| + | - kubectl config view | ||
| + | - kubectl config use-context xxxxx | ||
| + | - kubectl get/describe pods/nodes/services | ||
| + | - kubectl cluster-info | ||
| + | - kubectl get pods --all-namespaces | ||
| + | - kubectl apply -f shopfront-service.yaml | ||
| + | - kubectl rolling-update uddplatform --image=shaoxp/upplatform:v2 | ||
| + | - kubectl rolling-update uddplatform --image=shaoxp/uddplatform:0.2 --image-pull-policy Always | ||
| + | - kubectl rolling-update my-nginx --rollback | ||
| + | - kubectl exec -it shell-demo -- /bin/bash | ||
| + | - kubectl exec -it ubuntu -- bash -il | ||
| + | - kubectl get secret --namespace default angry-butterfly-mysql -o jsonpath="{.data.mysql-root-password}" | base64 --decode; echo | ||
| + | - kubectl port-forward svc/angry-butterfly-mysql 3306 | ||
| + | |||
| + | ====== docker ====== | ||
| + | - docker build --build-arg JAR_FILE=./build/libs/ydsjfileservice-0.0.1.jar -t registry.cn-shanghai.aliyuncs.com/ydsjtest/ydsjfileservice:0.1 . | ||
| + | - docker login --username=shaoxp@1069047797104995 registry.cn-shanghai.aliyuncs.com | ||
| + | - docker push registry.cn-shanghai.aliyuncs.com/ydsjtest/ydsjfileservice:0.1 | ||
| + | - docker run registry.cn-shanghai.aliyuncs.com/ydsjtest/ydsjfileservice:0.1 | ||
| + | |||
| + | ====== helm ====== | ||
| + | - helm init --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.11.0 --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts --force-upgrade | ||
| + | - helm install --name helm-mongodb-ydsjtest stable/mongodb | ||
| + | - helm list | ||
| + | - helm search | ||
| + | - helm inspect stable/mongodb | ||
| + | ====== choco ====== | ||
| + | - choco uninstall kubernetes-helm | ||
| + | - choco install kubernetes-helm --version 2.11.0 | ||