-
-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] node-label not working #681
Comments
Hi @logileifs , thanks for opening this issue! -l, --label KEY[=VALUE][@NODEFILTER[;NODEFILTER...]] Add label to node container (Format: KEY[=VALUE][@NODEFILTER[;NODEFILTER...]]
- Example: `k3d cluster create --agents 2 -l "my.label@agent[0,1]" -l "other.label=somevalue@server[0]" However, what you want to achieve here is already implemented and will be dropped in the v5 release next month 👍 In the meantime, you can use |
@iwilltry42 Ahh, I see. Pardon my confusion, definitely looking forward to that release and thanks for a great product 👍 |
I saw you had a new dev release and I was trying out the example you have there: |
@logileifs I was just going to ask you to try https://github.com/rancher/k3d/releases/tag/v5.0.0-dev.0 😁 |
I tried it out and it didn't work out so well:
How can I remove the cluster now ? |
I managed to remove the cluster using my old k3d version and I managed to create a cluster with node-labels using this command: |
Hi again 👋
This however, is a bug that has since been resolved in #683 👍
Now this part makes like no sense to me 🤔
And then I guess when it goes into the restart loop, you'll run out of file handles at some point (I get the same |
I found this issue and if I am understanding it correctly it's not possible to set that label anymore when a node is created, only afterwards using kubectl |
#this part is for bug k3d-io/k3d#681 should be remove eventually
What did you do
How was the cluster created?
k3d cluster create test-cluster -a 1 --label 'foo=bar@agent[0]'
What did you do afterwards?
kubectl get node k3d-test-cluster-agent-0 --show-labels
What did you expect to happen
I expected label foo=bar to be there
Screenshots or terminal output
$ kubectl get node k3d-test-cluster-agent-0 --show-labels
NAME STATUS ROLES AGE VERSION LABELS
k3d-test-cluster-agent-0 Ready 20s v1.21.2+k3s1 beta.kubernetes.io/arch=amd64,beta.kubernetes.io/instance-type=k3s,beta.kubernetes.io/os=linux,kubernetes.io/arch=amd64,kubernetes.io/hostname=k3d-test-cluster-agent-0,kubernetes.io/os=linux,node.kubernetes.io/instance-type=k3s
Which OS & Architecture
Which version of
k3d
k3d version v4.4.7
k3s version v1.21.2-k3s1 (default)
Which version of docker
docker version
Client:
Cloud integration: 1.0.17
Version: 20.10.7
API version: 1.41
Go version: go1.16.4
Git commit: f0df350
Built: Wed Jun 2 11:56:22 2021
OS/Arch: darwin/amd64
Context: desktop-linux
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.7
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: b0f5bc3
Built: Wed Jun 2 11:54:58 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.6
GitCommit: d71fcd7d8303cbf684402823e425e9dd2e99285d
runc:
Version: 1.0.0-rc95
GitCommit: b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
docker-init:
Version: 0.19.0
GitCommit: de40ad0
docker info
Client:
Context: desktop-linux
Debug Mode: false
Plugins:
buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)
compose: Docker Compose (Docker Inc., 2.0.0-beta.4)
scan: Docker Scan (Docker Inc., v0.8.0)
Server:
Containers: 3
Running: 3
Paused: 0
Stopped: 0
Images: 14
Server Version: 20.10.7
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: d71fcd7d8303cbf684402823e425e9dd2e99285d
runc version: b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 5.10.25-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 6
Total Memory: 15.64GiB
Name: docker-desktop
ID: KRBC:JFMO:5JBX:DZZW:WCQU:NYET:WWGQ:U3CT:7IJS:DBZZ:LYNS:JZG7
Docker Root Dir: /var/lib/docker
Debug Mode: false
HTTP Proxy: http.docker.internal:3128
HTTPS Proxy: http.docker.internal:3128
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
The text was updated successfully, but these errors were encountered: