K8ssandra Forum

Unknown field "probeSelector" in com.coreos.monitoring.v1.Prometheus.spec, ValidationError(Prometheus.spec): unknown field "shards" in com.coreos.monitoring.v1.Prometheus.spec]

helm install k8ssandra k8ssandra/k8ssandra -f prod_values.yaml -n k8ssandra

Error: unable to build kubernetes objects from release manifest: error validating “”: error validating data: [ValidationError(Prometheus.spec): unknown field “probeNamespaceSelector” in com.coreos.monitoring.v1.Prometheus.spec, ValidationError(Prometheus.spec): unknown field “probeSelector” in com.coreos.monitoring.v1.Prometheus.spec, ValidationError(Prometheus.spec): unknown field “shards” in com.coreos.monitoring.v1.Prometheus.spec]

Are you using a custom YAML? As the error suggests, you have an invalid probeNamespaceSelector field in it.

Do you have anything installed right now? Please post the output of:

$ helm list --all

It would also be ideal if you could post your YAML so we could review it. Cheers!

This is my custom YAML,

cassandra:
  version: "3.11.10"
  cassandraLibDirVolume:
    storageClass: gp2
    size: 10Gi
  heap:
   size: 1024M
   newGenSize: 256G
  resources:
    requests:
      cpu: 4000m
      memory: 3Gi
    limits:
      cpu: 1000m
      memory: 3Gi
  datacenters:
  - name: chong
    size: 2
    racks:
    - name: us-west-1a
      affinityLabels:
        topology.kubernetes.io/zone: us-west-1a
    - name: us-west-1b
      affinityLabels:
        topology.kubernetes.io/zone: us-west-1b

stargate:
  enabled: true
  replicas: 2
  heapMB: 1024
  cpuReqMillicores: 1000
  cpuLimMillicores: 1000

medusa:
  enabled: true
  storage: s3
  bucketName: cdstorage-cassandra

  storageSecret: cassandra-admin-secret

  storage_properties:
    region: us-west-1

helm ls

NAME

aws-alb-ingress-controller
backofficebobservice-prod
cassandra
cluster-autoscaler
external-dns
rabbitmq
kubeviz-agent
loggingservice
metrics-server
nginx-ingress-external-0-22-0
nginx-ingress-external-airport-0-22-0
nginx-ingress-external-meet-1-41-0
nginx-ingress-internal-0-22-0
passwordmanager
uapi