Last active
July 7, 2020 13:01
-
-
Save superbrothers/e993a82f94c6e914e721c8596a2c662c 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
# This issues was fixed on v1.18.3 and later. | |
$ kind create cluster --image kindest/node:v1.18.2 | |
$ kubectl version | |
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.4", GitCommit:"c96aede7b5205121079932896c4ad89bb93260af", GitTreeState:"clean", BuildDate:"2020-06-17T11:41:22Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"darwin/amd64"} | |
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.2", GitCommit:"52c56ce7a8272c798dbc29846288d7cd9fbae032", GitTreeState:"clean", BuildDate:"2020-04-30T20:19:45Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"} | |
$ cat <<EOL | kubectl apply -f- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
run: debian | |
name: debian | |
spec: | |
selector: | |
matchLabels: | |
run: debian | |
template: | |
metadata: | |
labels: | |
run: debian | |
spec: | |
initContainers: | |
- image: debian | |
name: debian2 | |
command: ["echo"] | |
resources: | |
requests: | |
cpu: 3000m | |
containers: | |
- image: debian | |
name: debian | |
command: ["tail", "-f", "/dev/null"] | |
EOL | |
$ kubectl describe node kind-control-plane | grep -A 8 "Allocated resources" | |
Allocated resources: | |
(Total limits may be over 100 percent, i.e., overcommitted.) | |
Resource Requests Limits | |
-------- -------- ------ | |
cpu 3850m (48%) 100m (1%) | |
memory 190Mi (9%) 390Mi (19%) | |
ephemeral-storage 0 (0%) 0 (0%) | |
hugepages-1Gi 0 (0%) 0 (0%) | |
hugepages-2Mi 0 (0%) 0 (0%) | |
$ kubectl scale deploy debian --replicas=10 | |
$ kubectl describe node kind-control-plane | grep -A 8 "Allocated resources" | |
Allocated resources: | |
(Total limits may be over 100 percent, i.e., overcommitted.) | |
Resource Requests Limits | |
-------- -------- ------ | |
cpu 30850m (385%) 100m (1%) | |
memory 190Mi (9%) 390Mi (19%) | |
ephemeral-storage 0 (0%) 0 (0%) | |
hugepages-1Gi 0 (0%) 0 (0%) | |
hugepages-2Mi 0 (0%) 0 (0%) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment