Asking for help? Comment out what you need so we can get more information to help you!
Cluster information:
Kubernetes version: 1.21
Cloud being used: (put bare-metal if not on a public cloud) Bare-metal
Installation method: Bright Cluster Manager
Host OS: Rocky Linux 8.6
CNI and version: Calico & 0.3.1
CRI and version: containerd & 1.5.14
You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.
Below is my Yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: lustre-sc
provisioner: kubernetes.io/lustre
parameters:
fsName: lustre
mgs: mgs-0.example.com@tcp
mountPath: /mnt/lustre
lnetConfig: "/etc/modprobe.d/lnet.conf"
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- node1
- node2
When applying , getting the below error.
Error from server (BadRequest): error when creating "lustre-sc.yaml": StorageClass in version "v1" cannot be handled as a StorageClass: v1.StorageClass.Parameters: ReadString: expects " or n, but found {, error found in #10 byte of ...|ffinity":{"required"|..., bigger context ...|ds@tcp","mountPath":"/mnt/lustre","nodeAffinity":{"required":{"nodeSelectorTerms":[{"matchExpression|...