markdown 通过Kubernetes运行Docker容器(正在进行中)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 通过Kubernetes运行Docker容器(正在进行中)相关的知识,希望对你有一定的参考价值。
Kubernetes
-----------------
Install Virtualbox - https://www.virtualbox.org/wiki/Linux_Downloads
Install Kubectl - https://kubernetes.io/docs/tasks/tools/install-kubectl/
Install Minikube - https://kubernetes.io/docs/tasks/tools/install-minikube/
Set ENV - https://stackoverflow.com/questions/42564058/how-to-use-local-docker-images-with-minikube
`kubectl get pods`
`kubectl logs skeleton-server-6597748cc5-fxzhl -p`
`kubectl describe po skeleton-server-6597748cc5-fxzhl`
`kubectl get nodes`
`kubectl get svc`
# delete all pods
`kubectl delete --all pods --namespace=default`
# delete all deployments
`kubectl delete --all deployments --namespace=default`
# delete all services
`kubectl delete --all services --namespace=default`
Get minikube ip - `minikube ip`
Build compose image - `docker-compose build`
`kubectl run skeleton-server --image=skeletonserver_app-server:latest --image-pull-policy=Never --port=8085 --env="NODEJS_PORT=8085" --env="NODE_ENV=development" --env="NODEJS_IP=0.0.0.0"`
`kubectl expose deployment skeleton-server --type=LoadBalancer --name=skeleton-service --port=9100 --target-port=8085`
`kubectl describe services skeleton-service`
`kubectl get service skeleton-service`
`curl 192.168.99.100:31731`
# Port Forwarding (optional)
`kubectl port-forward skeleton-server-7ddcd8449c-fdtx6 9100:9000`
# User Interface
`kubectl proxy`
`http://localhost:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy`
# Docker Registry
https://docs.docker.com/registry/deploying/
以上是关于markdown 通过Kubernetes运行Docker容器(正在进行中)的主要内容,如果未能解决你的问题,请参考以下文章
云原生之kubernetes实战使用docker作为运行时部署Kubernetes集群
Kubernetes设计架构(K8S)
云原生之kubernetes实战使用docker作为运行时部署Kubernetes集群
markdown kubernetes + ml
markdown Kubernetes:从私人仓库中提取图片
markdown Kubernetes命令行工具