Created
April 20, 2022 22:48
-
-
Save gengwg/6da29b1542dcc11709de6d0f4b6b8202 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
gengwg@gengwg-mbp:~$ kind create cluster --image kindest/node:v1.23.5 | |
Creating cluster "kind" ... | |
β Ensuring node image (kindest/node:v1.23.5) πΌ | |
β 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> 5s | |
# wait a minute | |
gengwg@gengwg-mbp:~$ k get po | |
NAME READY STATUS RESTARTS AGE | |
example-27508246-jt6q7 0/1 Completed 0 61s | |
example-27508247-dpnlw 0/1 ContainerCreating 0 1s | |
gengwg@gengwg-mbp:~$ k describe po example-27508246-jt6q7 | |
Name: example-27508246-jt6q7 | |
Namespace: default | |
Priority: 0 | |
Node: kind-control-plane/172.18.0.2 | |
Start Time: Wed, 20 Apr 2022 15:46:00 -0700 | |
Labels: controller-uid=4948bf83-77a7-424f-b21d-d01141d7327d | |
job-name=example-27508246 | |
Annotations: <none> | |
Status: Succeeded | |
IP: 10.244.0.5 | |
IPs: | |
IP: 10.244.0.5 | |
Controlled By: Job/example-27508246 | |
Containers: | |
mycontainer: | |
Container ID: containerd://a77f9b28410238fdf218af86ba6282830424fd2b0aa87cc59d37ee3f203a40ea | |
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 15:46:04 -0700 | |
Finished: Wed, 20 Apr 2022 15:46:14 -0700 | |
Ready: False | |
Restart Count: 0 | |
Environment: <none> | |
Mounts: | |
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-tgv5l (ro) | |
Conditions: | |
Type Status | |
Initialized True | |
Ready False | |
ContainersReady False | |
PodScheduled True | |
Volumes: | |
kube-api-access-tgv5l: | |
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 85s default-scheduler Successfully assigned default/example-27508246-jt6q7 to kind-control-plane | |
Normal Pulling 85s kubelet Pulling image "busybox:1.31.1" | |
Normal Pulled 81s kubelet Successfully pulled image "busybox:1.31.1" in 3.5953085s | |
Normal Created 81s kubelet Created container mycontainer | |
Normal Started 81s kubelet Started container mycontainer | |
Warning FailedMount 70s (x2 over 70s) kubelet MountVolume.SetUp failed for volume "kube-api-access-tgv5l" : object "default"/"kube-root-ca.crt" not registered | |
gengwg@gengwg-mbp:~$ k describe po example-27508247-dpnlw | |
Name: example-27508247-dpnlw | |
Namespace: default | |
Priority: 0 | |
Node: kind-control-plane/172.18.0.2 | |
Start Time: Wed, 20 Apr 2022 15:47:00 -0700 | |
Labels: controller-uid=9fd27ced-a2bd-4004-a6bb-163763e4464d | |
job-name=example-27508247 | |
Annotations: <none> | |
Status: Succeeded | |
IP: 10.244.0.6 | |
IPs: | |
IP: 10.244.0.6 | |
Controlled By: Job/example-27508247 | |
Containers: | |
mycontainer: | |
Container ID: containerd://347447a4e136e6da201eaf8b3264ec8d481266eb5bdd6d53ed586db386ca2958 | |
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 15:47:01 -0700 | |
Finished: Wed, 20 Apr 2022 15:47:11 -0700 | |
Ready: False | |
Restart Count: 0 | |
Environment: <none> | |
Mounts: | |
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-fdjfv (ro) | |
Conditions: | |
Type Status | |
Initialized True | |
Ready False | |
ContainersReady False | |
PodScheduled True | |
Volumes: | |
kube-api-access-fdjfv: | |
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 35s default-scheduler Successfully assigned default/example-27508247-dpnlw to kind-control-plane | |
Normal Pulling 35s kubelet Pulling image "busybox:1.31.1" | |
Normal Pulled 34s kubelet Successfully pulled image "busybox:1.31.1" in 1.074575s | |
Normal Created 34s kubelet Created container mycontainer | |
Normal Started 34s kubelet Started container mycontainer | |
Warning FailedMount 23s (x2 over 23s) kubelet MountVolume.SetUp failed for volume "kube-api-access-fdjfv" : object "default"/"kube-root-ca.crt" not registered |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment