集群容器部署和管理(Docker&K8S)

Docker

Docker Documentation | Docker Documentation

Docker 架构 | 菜鸟教程

工作机制: gitHub  or Maven类似

K8S

K8S 官网文档    Kubernetes 组件 | Kubernetes

Command line tool (kubectl) | Kubernetes

Kubernetes(K8S)简介 - K8S 教程

minikube start | minikube

解决minikube start拉取镜像慢的问题  https://blog.csdn.net/y_s_jun/article/details/117756650

 minikube start --driver=docker --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers  --kubernetes-version=v1.23.8

Welcome! | minikube

Basic controls | minikube

1 Installation:
     curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64
     sudo install minikube-darwin-amd64 /usr/local/bin/minikube


2 Start your cluster:
     minikube start --driver=docker --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers  --kubernetes-version=v1.23.8


3 Interact with your cluster
     kubectl get pods -A
     minikube dashboard


4  Deploy applications
     kubectl create deployment hello-minikube --image=neaxiy/echoserver:1.4
     kubectl run hello-minikube --image=sneaxiy/echoserver:1.4  --port=8080
     kubectl expose deployment hello-minikube --type=NodePort --port=8080


     kubectl create deployment hello-minikube-a --image=neaxiy/echoserver:1.4
     kubectl run hello-minikube-a --image=sneaxiy/echoserver:1.4  --port=8080
     kubectl expose deployment hello-minikube-a --type=NodePort --port=8080

     kubectl create deployment hello-minikube-c --image=sneaxiy/echoserver
     kubectl expose deployment hello-minikube-c --type=NodePort --port=8080

     kubectl run hello-minikube-c --image=sneaxiy/echoserver  --port=8080

     kubectl get services hello-minikube-c
     minikube service hello-minikube-c
     kubectl port-forward service/hello-minikube-c 7080:8080

     kubectl create deployment balanced --image=sneaxiy/echoserver
     kubectl expose deployment balanced --type=LoadBalancer --port=8080


     kubectl get services hello-node1-minikube
     kubectl get services hello-minikube1

     minikube service hello-minikube1


 5  Manage your cluster

 参考:
minkube 例子: https://minikube.sigs.k8s.io/docs/start/
minkube doc: https://minikube.sigs.k8s.io/docs/

Kubernetes 文档 | Kubernetes
解决minikube start拉取镜像慢的问题  https://blog.csdn.net/y_s_jun/article/details/117756650
MacOS下安装minikube并简单体验特性 https://segmentfault.com/a/1190000040132396
解决minikube start拉取镜像慢的问题  https://blog.csdn.net/y_s_jun/article/details/117756650

  

macOS安装minikube_测试生财的技术博客_51CTO博客

你可能感兴趣的:(1.1.1.2,OS-JVM及GC,1.1.1.1,操作系统OS,1.1.1.3,OS,虚拟化,kubernetes,docker,容器)