Created
April 21, 2022 06:12
-
-
Save gengwg/d2da1791fe91ea459627c81d76d22be5 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
# v1.22.9 | |
## build image | |
gengwg@gengwg-mbp:~$ cd go/src/k8s.io/kubernetes/ | |
gengwg@gengwg-mbp:~/go/src/k8s.io/kubernetes$ git checkout v1.22.9 | |
Updating files: 100% (6336/6336), done. | |
Previous HEAD position was ad3338546da Release commit for Kubernetes v1.23.6 | |
HEAD is now at 6df4433e288 Release commit for Kubernetes v1.22.9 | |
#5 ERROR: failed to register layer: Error processing tar file(exit status 1): write /usr/local/go/pkg/linux_ppc64le/encoding/gob.a: no space left on device | |
------ | |
> [ 1/13] FROM k8s.gcr.io/build-image/kube-cross:v1.22.0-go1.16.15-buster.0@sha256:e675861e6d2637f8b41bf5de65981305d15f074e94382a69c7366aa5336315d4: | |
------ | |
error: failed to solve: failed to register layer: Error processing tar file(exit status 1): write /usr/local/go/pkg/linux_ppc64le/encoding/gob.a: no space left on device | |
To retry manually, run: | |
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --load -t kube-build:build-da50957ed9-5-v1.22.0-go1.16.15-buster.0 --pull=false --build-arg=KUBE_BUILD_IMAGE_CROSS_TAG=v1.22.0-go1.16.15-buster.0 --build-arg=KUBE_BASE_IMAGE_REGISTRY=k8s.gcr.io/build-image /Users/gengwg/go/src/k8s.io/kubernetes/_output/images/kube-build:build-da50957ed9-5-v1.22.0-go1.16.15-buster.0 | |
!!! [0420 22:54:34] Call tree: | |
!!! [0420 22:54:34] 1: build/release-images.sh:39 kube::build::build_image(...) | |
make: *** [quick-release-images] Error 1 | |
gengwg@gengwg-mbp:~/go/src/k8s.io/kubernetes$ docker image prune | |
Total reclaimed space: 12.5GB | |
gengwg@gengwg-mbp:~/go/src/k8s.io/kubernetes$ kind build node-image --image kindest/node:v1.22.9 | |
Starting to build Kubernetes | |
+++ [0420 22:56:36] Verifying Prerequisites.... | |
+++ [0420 22:56:36] Using Docker for MacOS | |
+++ [0420 22:56:38] Building Docker image kube-build:build-da50957ed9-5-v1.22.0-go1.16.15-buster.0 | |
+++ [0420 22:58:50] Creating data container kube-build-data-da50957ed9-5-v1.22.0-go1.16.15-buster.0 | |
+++ [0420 22:58:55] Syncing sources to container | |
Object "-Version" is unknown, try "ip help". | |
+++ [0420 22:59:53] Running build command... | |
+++ [0420 23:00:02] Building go targets for linux/amd64: | |
./vendor/k8s.io/code-generator/cmd/prerelease-lifecycle-gen | |
Generating prerelease lifecycle code for 27 targets | |
+++ [0420 23:00:06] Building go targets for linux/amd64: | |
./vendor/k8s.io/code-generator/cmd/deepcopy-gen | |
Generating deepcopy code for 234 targets | |
+++ [0420 23:00:12] Building go targets for linux/amd64: | |
./vendor/k8s.io/code-generator/cmd/defaulter-gen | |
Generating defaulter code for 93 targets | |
+++ [0420 23:00:20] Building go targets for linux/amd64: | |
./vendor/k8s.io/code-generator/cmd/conversion-gen | |
Generating conversion code for 128 targets | |
+++ [0420 23:00:35] Building go targets for linux/amd64: | |
./vendor/k8s.io/kube-openapi/cmd/openapi-gen | |
Generating openapi code for KUBE | |
Generating openapi code for AGGREGATOR | |
Generating openapi code for APIEXTENSIONS | |
Generating openapi code for CODEGEN | |
Generating openapi code for SAMPLEAPISERVER | |
+++ [0420 23:00:45] Building go targets for linux/amd64: | |
cmd/kube-apiserver | |
cmd/kube-controller-manager | |
cmd/kube-scheduler | |
cmd/kube-proxy | |
cmd/kubeadm | |
cmd/kubectl | |
cmd/kubelet | |
+++ [0420 23:04:45] Syncing out of container | |
Object "-Version" is unknown, try "ip help". | |
+++ [0420 23:05:00] Building images: linux-amd64 | |
+++ [0420 23:05:01] Starting docker build for image: kube-apiserver-amd64 | |
+++ [0420 23:05:01] Starting docker build for image: kube-controller-manager-amd64 | |
+++ [0420 23:05:01] Starting docker build for image: kube-scheduler-amd64 | |
+++ [0420 23:05:01] Starting docker build for image: kube-proxy-amd64 | |
+++ [0420 23:05:09] Deleting docker image k8s.gcr.io/kube-scheduler-amd64:v1.22.9 | |
+++ [0420 23:05:13] Deleting docker image k8s.gcr.io/kube-proxy-amd64:v1.22.9 | |
+++ [0420 23:05:13] Deleting docker image k8s.gcr.io/kube-controller-manager-amd64:v1.22.9 | |
+++ [0420 23:05:16] Deleting docker image k8s.gcr.io/kube-apiserver-amd64:v1.22.9 | |
+++ [0420 23:05:16] Docker builds done | |
Finished building Kubernetes | |
Building node image ... | |
Building in kind-build-1650521119-1371439494 | |
sha256:6b34bb1946cd71efd88c756d1e1e93bc444e113175922aadaf52bf2fdb8beea1 | |
Image build completed. | |
gengwg@gengwg-mbp:~/go/src/k8s.io/kubernetes$ docker image ls | grep v1.22.9 | |
kindest/node v1.22.9 6b34bb1946cd 11 seconds ago 1.33GB | |
## test | |
gengwg@gengwg-mbp:~$ kind delete cluster | |
Deleting cluster "kind" ... | |
gengwg@gengwg-mbp:~$ kind create cluster --image kindest/node:v1.22.9 | |
Creating cluster "kind" ... | |
β Ensuring node image (kindest/node:v1.22.9) πΌ | |
β 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 po | |
No resources found in default namespace. | |
gengwg@gengwg-mbp:~$ k get po | |
NAME READY STATUS RESTARTS AGE | |
example-27508689--1-x2lrt 0/1 Completed 0 108s | |
example-27508690--1-z5qmm 0/1 Completed 0 48s | |
gengwg@gengwg-mbp:~$ k describe po example-27508689--1-x2lrt | |
Name: example-27508689--1-x2lrt | |
Namespace: default | |
Priority: 0 | |
Node: kind-control-plane/172.18.0.2 | |
Start Time: Wed, 20 Apr 2022 23:09:00 -0700 | |
Labels: controller-uid=8db718da-cb1f-406c-9e85-3d5795e88fb0 | |
job-name=example-27508689 | |
Annotations: <none> | |
Status: Succeeded | |
IP: 10.244.0.5 | |
IPs: | |
IP: 10.244.0.5 | |
Controlled By: Job/example-27508689 | |
Containers: | |
mycontainer: | |
Container ID: containerd://7bef3c47f29adf0d11d1c25533ce8a0d2f0e0ac4ad20756ecc4a20f36e913459 | |
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 23:09:04 -0700 | |
Finished: Wed, 20 Apr 2022 23:09:14 -0700 | |
Ready: False | |
Restart Count: 0 | |
Environment: <none> | |
Mounts: | |
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-vjwqp (ro) | |
Conditions: | |
Type Status | |
Initialized True | |
Ready False | |
ContainersReady False | |
PodScheduled True | |
Volumes: | |
kube-api-access-vjwqp: | |
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 115s default-scheduler Successfully assigned default/example-27508689--1-x2lrt to kind-control-plane | |
Normal Pulling 115s kubelet Pulling image "busybox:1.31.1" | |
Normal Pulled 111s kubelet Successfully pulled image "busybox:1.31.1" in 3.9352743s | |
Normal Created 111s kubelet Created container mycontainer | |
Normal Started 111s kubelet Started container mycontainer | |
gengwg@gengwg-mbp:~$ k describe po example-27508690--1-z5qmm | |
Name: example-27508690--1-z5qmm | |
Namespace: default | |
Priority: 0 | |
Node: kind-control-plane/172.18.0.2 | |
Start Time: Wed, 20 Apr 2022 23:10:00 -0700 | |
Labels: controller-uid=32012096-ca65-4591-a69f-c2452f19155a | |
job-name=example-27508690 | |
Annotations: <none> | |
Status: Succeeded | |
IP: 10.244.0.6 | |
IPs: | |
IP: 10.244.0.6 | |
Controlled By: Job/example-27508690 | |
Containers: | |
mycontainer: | |
Container ID: containerd://5ba37f399c4eee1b8e59cbb4c3cd7dd459ce08f6798a98c169929ea0ce7be8aa | |
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 23:10:01 -0700 | |
Finished: Wed, 20 Apr 2022 23:10:11 -0700 | |
Ready: False | |
Restart Count: 0 | |
Environment: <none> | |
Mounts: | |
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-klxg5 (ro) | |
Conditions: | |
Type Status | |
Initialized True | |
Ready False | |
ContainersReady False | |
PodScheduled True | |
Volumes: | |
kube-api-access-klxg5: | |
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 71s default-scheduler Successfully assigned default/example-27508690--1-z5qmm to kind-control-plane | |
Normal Pulling 71s kubelet Pulling image "busybox:1.31.1" | |
Normal Pulled 70s kubelet Successfully pulled image "busybox:1.31.1" in 969.0915ms | |
Normal Created 70s kubelet Created container mycontainer | |
Normal Started 70s kubelet Started container mycontainer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment