Skip to content

Commit 3e69176

Browse files
author
Your Name
committed
docker
1 parent a99924c commit 3e69176

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/ubuntu-kind-wf.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ jobs:
2727
mv ./kind /usr/local/bin/kind
2828
# Default cluster context name is `kind`.
2929
kind create cluster
30-
kind create cluster --name kind-2
31-
kind get clusters
30+
kind create cluster --name kind-3
31+
kind get clusters
32+
#kind is prefixed to the context and cluster names, for example: kind-istio-testing
33+
kubectl config get-contexts
3234
kubectl cluster-info --context kind-kind
33-
kubectl cluster-info --context kind-kind-2
35+
kubectl cluster-info --context kind-kind-3
3436
3537
kind-binary-cfg-ubuntu-latest-job:
3638
name: "Installing From Release Binaries with cfg yaml ubuntu-latest job"

scripts/deploy-kind.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,27 @@ kind create cluster --name kind-2
2222

2323
kind get clusters #see the list of kind clusters
2424

25+
#kind is prefixed to the context and cluster names, for example: kind-istio-testing
26+
kubectl config get-contexts
27+
2528
kubectl cluster-info --context kind-kind
2629
kubectl cluster-info --context kind-kind-2
2730

28-
kubectl config get-contexts #kind is prefixed to the context and cluster names, for example: kind-istio-testing
31+
# extract the detailed information about a cluster
32+
kubectl cluster-info dump --context kind-kind
33+
kubectl cluster-info dump --context kind-kind-2
34+
35+
2936

3037
# Deleting a Cluster
3138
# If the flag --name is not specified, kind will use the default cluster context name kind
3239
kind delete cluster --name kind-2
3340
kind get clusters #see the list of kind clusters
3441

42+
docker ps
43+
kubectl get nodes
44+
45+
kubectl get namespaces
46+
kubectl --namespace kube-system get pods
47+
3548
echo "=============================deploy kind============================================================="

0 commit comments

Comments
 (0)