Open brianpham opened 2 years ago
If I do this, the PV will be created properly. Not sure why the StorageClass above doesn't work though.
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: ssd-retain-us-central1-a
provisioner: kubernetes.io/gce-pd
reclaimPolicy: Retain
parameters:
type: pd-ssd
allowedTopologies:
- matchLabelExpressions:
- key: topology.kubernetes.io/zone
values:
- us-central1-a
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: ssd-retain-us-central1-b
provisioner: kubernetes.io/gce-pd
reclaimPolicy: Retain
parameters:
type: pd-ssd
allowedTopologies:
- matchLabelExpressions:
- key: topology.kubernetes.io/zone
values:
- us-central1-b
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: ssd-retain-us-central1-c
provisioner: kubernetes.io/gce-pd
reclaimPolicy: Retain
parameters:
type: pd-ssd
allowedTopologies:
- matchLabelExpressions:
- key: topology.kubernetes.io/zone
values:
- us-central1-c
What version of the operator are you running? v0.13.0
What version of Kubernetes are you running? Running on GKE v1.21.6-gke.1503
What are you trying to do? Get the m3db cluster up and running with a persistent volume
What did you expect to happen? All 3 nodes should come up properly using the correct PV.
What happened? Only 2 of the 3 nodes are coming up properly. 1 PV is being deployed in us-central1-a, and 2 PV is being deployed in us-central1-b. One PV should be deployed in each region. It seems like operator is ignoring this part of the config
name: zone-c numInstances: 1 storageClassName: ssd-retain nodeAffinityTerms:
This is the config for deploying the cluster