We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have config file k3d.yaml containing following section:
apiVersion: k3d.io/v1alpha5 kind: Simple metadata: name: combo servers: 1 agents: 3 files: - source: | Hello World destination: /etc/message nodeFilters: - agent:* - server:* ...
Cluster was created using command k3d cluster create -c k3d.yaml --verbose --trace
k3d cluster create -c k3d.yaml --verbose --trace
I expected the file /etc/message will be created on both server and agent nodes. However I found that file only on the server node.
I see from the logs the server node is provisioned correctly:
TRAC[0001] Node k3d-amonacs-combo-server-0: Executing preStartAction 'WriteFileAction': [WriteFileAction] Writing 12 bytes to /etc/message (mode -rw-r--r--): <no description> TRAC[0001] Node k3d-amonacs-combo-server-0: Executing preStartAction 'WriteFileAction': [WriteFileAction] Writing 943 bytes to /bin/k3d-entrypoint.sh (mode -rwxr--r--): Write custom k3d entrypoint script (that powers the magic fixes)
but not the agent node:
DEBU[0004] Node k3d-combo-agent-2 Start Time: 2024-11-21 10:27:18.511432314 +0100 CET m=+4.148769776 TRAC[0004] Node k3d-combo-agent-2: Executing preStartAction 'WriteFileAction': [WriteFileAction] Writing 943 bytes to /bin/k3d-entrypoint.sh (mode -rwxr--r--): Write custom k3d entrypoint script (that powers the magic fixes)
arch: x86_64 cgroupdriver: systemd cgroupversion: "2" endpoint: /var/run/docker.sock filesystem: extfs infoname: nb-1050 name: docker os: Fedora Linux 40 (Workstation Edition) ostype: linux version: 27.3.1group
k3d
k3d version v5.7.4 k3s version v1.30.4-k3s1 (default)
Client: Docker Engine - Community Version: 27.3.1 API version: 1.47 Go version: go1.22.7 Git commit: ce12230 Built: Fri Sep 20 11:42:43 2024 OS/Arch: linux/amd64 Context: default
Server: Docker Engine - Community Engine: Version: 27.3.1 API version: 1.47 (minimum version 1.24) Go version: go1.22.7 Git commit: 41ca978 Built: Fri Sep 20 11:41:01 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.7.23 GitCommit: 57f17b0a6295a39009d861b89e3b3b87b005ca27 runc: Version: 1.1.14 GitCommit: v1.1.14-0-g2c9f560 docker-init: Version: 0.19.0 GitCommit: de40ad0
The text was updated successfully, but these errors were encountered:
+1, with k3d version v5.7.5
k3d version v5.7.5
$ k3d version k3d version v5.7.5 k3s version v1.30.6-k3s1 (default)
Sorry, something went wrong.
resolved, with PR #1537:
#conf - description: 'registry.local-ca.pem' source: certs/registry/registry.local-ca.pem destination: /etc/ssl/certs/registry.local-ca.pem nodeFilters: - "agent:0-1" - "server:*" #traceLog TRAC[0000] Filtered 1 nodes (filter: [server:*]) TRAC[0000] Filtered 1 nodes (filter: [server:*]) TRAC[0000] Filtered 3 nodes (filter: [agent:0-1 server:*]) #validate root @ deb1013 in ~ |11:27:14 $ docker exec -it k3d-mycluster-agent-1 sh ~ # find /etc/ssl/certs/ /etc/ssl/certs/ /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/registry.local-ca.pem
Successfully merging a pull request may close this issue.
What did you do
I have config file k3d.yaml containing following section:
Cluster was created using command
k3d cluster create -c k3d.yaml --verbose --trace
What did you expect to happen
I expected the file /etc/message will be created on both server and agent nodes.
However I found that file only on the server node.
I see from the logs the server node is provisioned correctly:
but not the agent node:
Which OS & Architecture
arch: x86_64
cgroupdriver: systemd
cgroupversion: "2"
endpoint: /var/run/docker.sock
filesystem: extfs
infoname: nb-1050
name: docker
os: Fedora Linux 40 (Workstation Edition)
ostype: linux
version: 27.3.1group
Which version of
k3d
k3d version v5.7.4
k3s version v1.30.4-k3s1 (default)
Which version of docker
Client: Docker Engine - Community
Version: 27.3.1
API version: 1.47
Go version: go1.22.7
Git commit: ce12230
Built: Fri Sep 20 11:42:43 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 27.3.1
API version: 1.47 (minimum version 1.24)
Go version: go1.22.7
Git commit: 41ca978
Built: Fri Sep 20 11:41:01 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.23
GitCommit: 57f17b0a6295a39009d861b89e3b3b87b005ca27
runc:
Version: 1.1.14
GitCommit: v1.1.14-0-g2c9f560
docker-init:
Version: 0.19.0
GitCommit: de40ad0
The text was updated successfully, but these errors were encountered: