Skip to content
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] Docker volumes are created but not mounted #1361

Open
Daemonslayer2048 opened this issue Oct 20, 2023 · 0 comments
Open

[BUG] Docker volumes are created but not mounted #1361

Daemonslayer2048 opened this issue Oct 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Daemonslayer2048
Copy link

What did you do

  • How was the cluster created?

    • k3d cluster create --volume 'gitops:/var/lib/rancher/k3s/storage@all' --config cluster.yaml
  • What did you do afterwards?

      1. I checked my docker volumes: docker volume ls
      1. I observed my gitops volume was created
      1. I exec'd into an agent node: docker exec -it 98933f827fe2 /bin/sh
      1. I ran df -h
      1. I observed there is no mount point available at /var/lib/rancher/k3s/storage

What did you expect to happen

I expected k3d to create the docker volume (it did), then mount said volume at the specified location (/var/lib/rancher/k3s/storage) on all nodes.

Screenshots or terminal output

  1. Cluster config:
---
apiVersion: k3d.io/v1alpha4
kind: Simple
metadata:
  name: gitops
servers: 1 
agents: 3
image: rancher/k3s:v1.25.14-k3s1
ports:
  - port: 8081:80
    nodeFilters:
      - loadbalancer
  - port: 8443:443
    nodeFilters:
      - loadbalancer
  1. Cluster creation:
    image

  2. Available docker volumes:
    image

  3. Available docker containers:
    image

  4. No mountpoint:
    image

Which OS & Architecture

arch: x86_64
cgroupdriver: systemd
cgroupversion: "2"
endpoint: /var/run/docker.sock
filesystem: UNKNOWN
name: docker
os: NixOS 23.05 (Stoat)
ostype: linux
version: 20.10.25

Which version of k3d

k3d version v5.4.4
k3s version v1.21.7-k3s1 (default)

Which version of docker

> docker version
Client:
 Version:           20.10.25
 API version:       1.41
 Go version:        go1.20.8
 Git commit:        v20.10.25
 Built:             Thu Jan  1 00:00:00 1970
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          20.10.25
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.20.8
  Git commit:       v20.10.25
  Built:            Tue Jan  1 00:00:00 1980
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.7.1
  GitCommit:        v1.7.1
 runc:
  Version:          1.1.5
  GitCommit:        
 docker-init:
  Version:          0.19.0
  GitCommit:        

> docker info   
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.10.4)
  compose: Docker Compose (Docker Inc., 2.18.1)

Server:
 Containers: 5
  Running: 5
  Paused: 0
  Stopped: 0
 Images: 3
 Server Version: 20.10.25
 Storage Driver: zfs
  Zpool: pool
  Zpool Health: ONLINE
  Parent Dataset: pool/docker
  Space Used By Parent: 808726512
  Space Available: 9273568617680
  Parent Quota: no
  Compression: zstd
 Logging Driver: journald
 Cgroup Driver: systemd
 Cgroup Version: 2
 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: v1.7.1
 runc version: 
 init version: 
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 6.1.57
 Operating System: NixOS 23.05 (Stoat)
 OSType: linux
 Architecture: x86_64
 CPUs: 24
 Total Memory: 62.73GiB
 Name: ncc-1701
 ID: O4GP:3SYH:N72O:37Y7:3RKE:3VWW:GFMR:KZRV:FT54:PD4C:A3ZM:CUTL
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Registry Mirrors:
  <redacted>
 Live Restore Enabled: true

@Daemonslayer2048 Daemonslayer2048 added the bug Something isn't working label Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant