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

itsthenetwork/nfs-server-alpine:12でデプロイしたnfs serverに対してnfs-subdir-external-provisionerが起動できない #37

Open
n-guitar opened this issue Jul 14, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@n-guitar
Copy link
Owner

Describe the bug
A clear and concise description of what the bug is.
にて
itsthenetwork/nfs-server-alpine:12でデプロイしたnfs serverに対してnfs-subdir-external-provisionerが起動できない

To Reproduce
Steps to reproduce the behavior:
1.

docker run -d --name nfs --privileged -v /tmp:/nfsshare -e SHARED_DIRECTORY=/nfsshare --network=k3s_in_doccker_default itsthenetwork/nfs-server-alpine:12
docker exec -it nfs /bin/sh -c "mkdir /nfsshare/storageclass"
helm install nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner --set nfs.server=XXXXX --set nfs.path=/nfsshare/storageclass
  1. Check
k describe po nfs-subdir-external-provisioner-64c57f87b9-8z8sr
Name:           nfs-subdir-external-provisioner-64c57f87b9-8z8sr
Namespace:      default
Priority:       0
Node:           k3s-worker2/172.21.0.2
Start Time:     Thu, 14 Jul 2022 09:19:00 +0900
Labels:         app=nfs-subdir-external-provisioner
                pod-template-hash=64c57f87b9
                release=nfs-subdir-external-provisioner
Annotations:    <none>
Status:         Pending
IP:             
IPs:            <none>
Controlled By:  ReplicaSet/nfs-subdir-external-provisioner-64c57f87b9
Containers:
  nfs-subdir-external-provisioner:
    Container ID:   
    Image:          k8s.gcr.io/sig-storage/nfs-subdir-external-provisioner:v4.0.2
    Image ID:       
    Port:           <none>
    Host Port:      <none>
    State:          Waiting
      Reason:       ContainerCreating
    Ready:          False
    Restart Count:  0
    Environment:
      PROVISIONER_NAME:  cluster.local/nfs-subdir-external-provisioner
      NFS_SERVER:        172.21.0.5
      NFS_PATH:          /nfsshare/storageclass
    Mounts:
      /persistentvolumes from nfs-subdir-external-provisioner-root (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-j9l99 (ro)
Conditions:
  Type              Status
  Initialized       True 
  Ready             False 
  ContainersReady   False 
  PodScheduled      True 
Volumes:
  nfs-subdir-external-provisioner-root:
    Type:      NFS (an NFS mount that lasts the lifetime of a pod)
    Server:    172.21.0.5
    Path:      /nfsshare/storageclass
    ReadOnly:  false
  kube-api-access-j9l99:
    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    3m27s                default-scheduler  Successfully assigned default/nfs-subdir-external-provisioner-64c57f87b9-8z8sr to k3s-worker2
  Warning  FailedMount  84s                  kubelet            Unable to attach or mount volumes: unmounted volumes=[nfs-subdir-external-provisioner-root], unattached volumes=[nfs-subdir-external-provisioner-root kube-api-access-j9l99]: timed out waiting for the condition
  Warning  FailedMount  79s (x9 over 3m27s)  kubelet            MountVolume.SetUp failed for volume "nfs-subdir-external-provisioner-root" : mount failed: exit status 255
Mounting command: mount
Mounting arguments: -t nfs 172.21.0.5:/nfsshare/storageclass /var/lib/kubelet/pods/8d67e2d2-4075-43c8-a649-a2e5c72fe13e/volumes/kubernetes.io~nfs/nfs-subdir-external-provisioner-root
Output: mount: mounting 172.21.0.5:/nfsshare/storageclass on /var/lib/kubelet/pods/8d67e2d2-4075-43c8-a649-a2e5c72fe13e/volumes/kubernetes.io~nfs/nfs-subdir-external-provisioner-root failed: Not supported

Smartphone (please complete the following information):

k get node -o wide
NAME          STATUS   ROLES                  AGE   VERSION         INTERNAL-IP   EXTERNAL-IP   OS-IMAGE   KERNEL-VERSION      CONTAINER-RUNTIME
k3s-worker1   Ready    <none>                 35m   v1.22.10+k3s1   172.21.0.3    <none>        K3s dev    5.10.104-linuxkit   containerd://1.5.13-k3s1
k3s-worker2   Ready    <none>                 35m   v1.22.10+k3s1   172.21.0.2    <none>        K3s dev    5.10.104-linuxkit   containerd://1.5.13-k3s1
k3s-master    Ready    control-plane,master   35m   v1.22.10+k3s1   172.21.0.4    <none>        K3s dev    5.10.104-linuxkit   containerd://1.5.13-k3s1
helm list
NAME                            NAMESPACE       REVISION        UPDATED                                 STATUS          CHART                                   APP VERSION
nfs-subdir-external-provisioner default         1               2022-07-14 09:18:59.814037 +0900 JST    deployed        nfs-subdir-external-provisioner-4.0.16  4.0.2      
@n-guitar n-guitar self-assigned this Jul 14, 2022
@n-guitar n-guitar added the bug Something isn't working label Jul 14, 2022
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