AZDATA BDC CREATE stuck. Control containers pending. Scheduling error on NFS PVC

12/19/2019

I am very new to Linux, Docker and Kubernetes. I need to setup an on-premises POC to showcase BDC.

What I have installed. 1. Ubuntu 19.10 2. Kubernetes Cluster 3. Docker 4. NFS 5. Settings and prerequisites but obviously missing stuff.

This has been done with stitched together tutorials. I am stuck on "AZDATA BDC Create". Error below. Scheduling error on POD PVC.

Some more information.

NFS information

Storage class info

More Info 20191220: PV & PVcs bound NFS side

-- OomBoom
kubernetes
nfs

1 Answer

12/19/2019

Dynamic Volume Provisioning alongside with a StorageClass allows the cluster to provision PersistentVolumes on demand. In order to make that work, the given storage provider must support provisioning - this allows the cluster to request the provisioning of a "new" PersistentVolume when an unsatisfied PersistentVolumeClaim pops up.

First make sure you have defined StorageClass properly. You have defined nfs-dynamic class but it is not defined as default storage class, that's why your claims cannot bound volumes to it. You have two options: 1. Execute command below:

  $  kubectl patch storageclass <your-class-name> -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
  1. Another option is to define in pvc configuration file storageclass you have used:

Here is an example cofiguration of such file:

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: myclaim
spec:
  accessModes:
    - ReadWriteOnce
  volumeMode: Filesystem
  resources:
    requests:
      storage: 8Gi
  storageClassName: slow
  selector:
    matchLabels:
      release: "stable"
    matchExpressions:
      - {key: environment, operator: In, values: [dev]}'

Simple add line storageClassName: nfs-dynamic.

Then make sure you have followed steps from this instruction: nfs-kubernetes.

-- MaggieO
Source: StackOverflow