This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: cluster.x-k8s.io/v1alpha2 | |
kind: Machine | |
metadata: | |
name: capi-quickstart-controlplane-0 | |
labels: | |
cluster.x-k8s.io/control-plane: "true" | |
cluster.x-k8s.io/cluster-name: "capi-quickstart" | |
spec: | |
version: v1.15.3 | |
bootstrap: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
38d5a9338e3d nginx:1.15.12-alpine "nginx -g 'daemon of…" 48 seconds ago Up 47 seconds 80/tcp, 40319/tcp, 0.0.0.0:40319->6443/tcp capi-quickstart-lb | |
68d711500e26 kindest/node:v1.17.0 "/usr/local/bin/entr…" 14 minutes ago Up 14 minutes 127.0.0.1:32775->6443/tcp clusterapi-control-plane |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get dockercluster | |
NAME AGE | |
capi-quickstart 11s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl create -f cluster.yaml | |
cluster.cluster.x-k8s.io/capi-quickstart created | |
dockercluster.infrastructure.cluster.x-k8s.io/capi-quickstart created |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: cluster.x-k8s.io/v1alpha2 | |
kind: Cluster | |
metadata: | |
name: capi-quickstart | |
spec: | |
clusterNetwork: | |
pods: | |
cidrBlocks: ["192.168.0.0/16"] | |
infrastructureRef: | |
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
68d711500e26 kindest/node:v1.17.0 "/usr/local/bin/entr…" 11 minutes ago Up 11 minutes 127.0.0.1:32775->6443/tcp clusterapi-control-plane |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl create -f https://github.com/kubernetes-sigs/cluster-api-provider-docker/releases/download/v0.2.1/provider-components.yaml | |
namespace/capd-system created | |
customresourcedefinition.apiextensions.k8s.io/dockerclusters.infrastructure.cluster.x-k8s.io created | |
customresourcedefinition.apiextensions.k8s.io/dockermachines.infrastructure.cluster.x-k8s.io created | |
customresourcedefinition.apiextensions.k8s.io/dockermachinetemplates.infrastructure.cluster.x-k8s.io created | |
role.rbac.authorization.k8s.io/capd-leader-election-role created | |
clusterrole.rbac.authorization.k8s.io/capd-manager-role created | |
clusterrole.rbac.authorization.k8s.io/capd-proxy-role created | |
rolebinding.rbac.authorization.k8s.io/capd-leader-election-rolebinding created |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl create -f https://github.com/kubernetes-sigs/cluster-api-bootstrap-provider-kubeadm/releases/download/v0.1.5/bootstrap-components.yaml | |
namespace/cabpk-system created | |
customresourcedefinition.apiextensions.k8s.io/kubeadmconfigs.bootstrap.cluster.x-k8s.io created | |
customresourcedefinition.apiextensions.k8s.io/kubeadmconfigtemplates.bootstrap.cluster.x-k8s.io created | |
role.rbac.authorization.k8s.io/cabpk-leader-election-role created | |
clusterrole.rbac.authorization.k8s.io/cabpk-manager-role created | |
clusterrole.rbac.authorization.k8s.io/cabpk-proxy-role created | |
rolebinding.rbac.authorization.k8s.io/cabpk-leader-election-rolebinding created | |
clusterrolebinding.rbac.authorization.k8s.io/cabpk-manager-rolebinding created |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl create -f https://github.com/kubernetes-sigs/cluster-api/releases/download/v0.2.9/cluster-api-components.yaml | |
namespace/capi-system created | |
customresourcedefinition.apiextensions.k8s.io/clusters.cluster.x-k8s.io created | |
customresourcedefinition.apiextensions.k8s.io/machinedeployments.cluster.x-k8s.io created | |
customresourcedefinition.apiextensions.k8s.io/machines.cluster.x-k8s.io created | |
customresourcedefinition.apiextensions.k8s.io/machinesets.cluster.x-k8s.io created | |
role.rbac.authorization.k8s.io/capi-leader-election-role created | |
clusterrole.rbac.authorization.k8s.io/capi-manager-role created | |
rolebinding.rbac.authorization.k8s.io/capi-leader-election-rolebinding created |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat > kind-cluster-with-extramounts.yaml <<EOF | |
kind: Cluster | |
apiVersion: kind.sigs.k8s.io/v1alpha3 | |
nodes: | |
- role: control-plane | |
extraMounts: | |
- hostPath: /var/run/docker.sock | |
containerPath: /var/run/docker.sock | |
EOF | |
kind create cluster --config ./kind-cluster-with-extramounts.yaml --name clusterapi |