【文件属性】:
文件名称:Kubernetes_by_Kind
文件大小:6KB
文件格式:ZIP
更新时间:2021-04-24 16:02:44
Shell
Kubernetes的种类
实物安装
可以brew install kind !
如何制作集群
可以使用种类创建群集来创建。但是,此命令仅具有控制平面节点,因此要创建工作节点,请在本地文件中创建yml文件,如下所示。
kind.yml kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: apiVersion: kind.x-k8s.io/v1alpha4 - role: control-plane apiVersion: kind.x-k8s.io/v1alpha4 - role: worker
然后执行以下命令。 kind create cluster --config kind.yml
用kubectl操作
上下文显示kubectl cluster-info --context kind-kind
上下文切换(实物) 可以使
【文件预览】:
Kubernetes_by_Kind-master
----db-server-image()
--------.dockerignore(39B)
--------docker-entrypoint.sh(1KB)
--------Dockerfile(501B)
----kind.yml(97B)
----sample1.txt(31B)
----pod.yml(360B)
----weblog-db-storage.yml(546B)
----weblog-db-pod.yml(971B)
----pods.yml(460B)
----debug()
--------Dockerfile(352B)
--------mongodb-org-4.0.repo(200B)
--------debug-pod.yml(335B)
----sample2.txt(43B)
----README.md(1KB)