k8s快速入门
1.快速创建k8s集群
点击教程菜单 1. Create a Cluster -> Interactive Tutorial - Creating a Cluster
note:通过 Kubernetes 的命令行工具 kubectl 远程管理集群
minikube start 创建集群
kubectl cluster-info 查看集群信息
Kubernetes master is running at https://172.17.0.15:8443
KubeDNS is running at https://172.17.0.15:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
kubectl get nodes 查看节点信息
NAME STATUS ROLES AGE VERSION
minikube Ready master 2m53s v1.13.3
2.部署应用
kubectl run kubernetes-bootcamp --image=docker.io/jocatalin/kubernetes-bootcamp:v1 --port=8080
显示信息
kubectl run --generator=deployment/apps.v1 is DEPRECATED and will be removed in a future version. Use kubectl run --generator=run-pod/v1 or kubectl create instead.
deployment.apps/kubernetes-bootcamp created
这里我们通过 kubectl run 部署了一个应用,命名为 kubernet