Created
April 21, 2022 05:45
-
-
Save gengwg/f62ab900c59921fc27f0d61290050d0b to your computer and use it in GitHub Desktop.
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
engwg@gengwg-mbp:~$ kind create cluster --image kindest/node:v1.23.6 | |
Creating cluster "kind" ... | |
β Ensuring node image (kindest/node:v1.23.6) πΌ | |
β Preparing nodes π¦ | |
β Writing configuration π | |
β Starting control-plane πΉοΈ | |
β Installing CNI π | |
β Installing StorageClass πΎ | |
Set kubectl context to "kind-kind" | |
You can now use your cluster with: | |
kubectl cluster-info --context kind-kind | |
Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community π | |
gengwg@gengwg-mbp:~$ k apply -f test-mount-volume.yaml | |
cronjob.batch/example created | |
gengwg@gengwg-mbp:~$ k get cj | |
NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE | |
example */1 * * * * False 0 <none> 3s | |
gengwg@gengwg-mbp:~$ k get po | |
NAME READY STATUS RESTARTS AGE | |
example-27508663-qvpbw 1/1 Running 0 4s | |
gengwg@gengwg-mbp:~$ k describe po example-27508663-qvpbw | |
Name: example-27508663-qvpbw | |
Namespace: default | |
Priority: 0 | |
Node: kind-control-plane/172.18.0.2 | |
Start Time: Wed, 20 Apr 2022 22:43:00 -0700 | |
Labels: controller-uid=06aeb8a3-ce38-41cf-98df-37d31aa2acfc | |
job-name=example-27508663 | |
Annotations: <none> | |
Status: Running | |
IP: 10.244.0.5 | |
IPs: | |
IP: 10.244.0.5 | |
Controlled By: Job/example-27508663 | |
Containers: | |
mycontainer: | |
Container ID: containerd://37c787014cadc5f901045f8b18d11fefc85baf8c675b39328b912e1f2eaba761 | |
Image: busybox:1.31.1 | |
Image ID: docker.io/library/busybox@sha256:95cf004f559831017cdf4628aaf1bb30133677be8702a8c5f2994629f637a209 | |
Port: <none> | |
Host Port: <none> | |
Command: | |
sleep | |
10 | |
State: Running | |
Started: Wed, 20 Apr 2022 22:43:04 -0700 | |
Ready: True | |
Restart Count: 0 | |
Environment: <none> | |
Mounts: | |
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-4prnv (ro) | |
Conditions: | |
Type Status | |
Initialized True | |
Ready True | |
ContainersReady True | |
PodScheduled True | |
Volumes: | |
kube-api-access-4prnv: | |
Type: Projected (a volume that contains injected data from multiple sources) | |
TokenExpirationSeconds: 3607 | |
ConfigMapName: kube-root-ca.crt | |
ConfigMapOptional: <nil> | |
DownwardAPI: true | |
QoS Class: BestEffort | |
Node-Selectors: <none> | |
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s | |
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s | |
Events: | |
Type Reason Age From Message | |
---- ------ ---- ---- ------- | |
Normal Scheduled 11s default-scheduler Successfully assigned default/example-27508663-qvpbw to kind-control-plane | |
Normal Pulling 11s kubelet Pulling image "busybox:1.31.1" | |
Normal Pulled 7s kubelet Successfully pulled image "busybox:1.31.1" in 3.6904514s | |
Normal Created 7s kubelet Created container mycontainer | |
Normal Started 7s kubelet Started container mycontainer | |
gengwg@gengwg-mbp:~$ k get po | |
NAME READY STATUS RESTARTS AGE | |
example-27508663-qvpbw 0/1 Completed 0 17s | |
gengwg@gengwg-mbp:~$ k describe po example-27508663-qvpbw | |
Name: example-27508663-qvpbw | |
Namespace: default | |
Priority: 0 | |
Node: kind-control-plane/172.18.0.2 | |
Start Time: Wed, 20 Apr 2022 22:43:00 -0700 | |
Labels: controller-uid=06aeb8a3-ce38-41cf-98df-37d31aa2acfc | |
job-name=example-27508663 | |
Annotations: <none> | |
Status: Succeeded | |
IP: 10.244.0.5 | |
IPs: | |
IP: 10.244.0.5 | |
Controlled By: Job/example-27508663 | |
Containers: | |
mycontainer: | |
Container ID: containerd://37c787014cadc5f901045f8b18d11fefc85baf8c675b39328b912e1f2eaba761 | |
Image: busybox:1.31.1 | |
Image ID: docker.io/library/busybox@sha256:95cf004f559831017cdf4628aaf1bb30133677be8702a8c5f2994629f637a209 | |
Port: <none> | |
Host Port: <none> | |
Command: | |
sleep | |
10 | |
State: Terminated | |
Reason: Completed | |
Exit Code: 0 | |
Started: Wed, 20 Apr 2022 22:43:04 -0700 | |
Finished: Wed, 20 Apr 2022 22:43:14 -0700 | |
Ready: False | |
Restart Count: 0 | |
Environment: <none> | |
Mounts: | |
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-4prnv (ro) | |
Conditions: | |
Type Status | |
Initialized True | |
Ready False | |
ContainersReady False | |
PodScheduled True | |
Volumes: | |
kube-api-access-4prnv: | |
Type: Projected (a volume that contains injected data from multiple sources) | |
TokenExpirationSeconds: 3607 | |
ConfigMapName: kube-root-ca.crt | |
ConfigMapOptional: <nil> | |
DownwardAPI: true | |
QoS Class: BestEffort | |
Node-Selectors: <none> | |
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s | |
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s | |
Events: | |
Type Reason Age From Message | |
---- ------ ---- ---- ------- | |
Normal Scheduled 19s default-scheduler Successfully assigned default/example-27508663-qvpbw to kind-control-plane | |
Normal Pulling 19s kubelet Pulling image "busybox:1.31.1" | |
Normal Pulled 15s kubelet Successfully pulled image "busybox:1.31.1" in 3.6904514s | |
Normal Created 15s kubelet Created container mycontainer | |
Normal Started 15s kubelet Started container mycontainer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment