• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


29 Nov, 2024

Updated at 12 Dec, 2024

clusterServiceDNSMode nok (non sharding setup)

Hello

Managed to upgrade to 1.15, when trying to apply cr.yaml with

expose:
  enabled: true
  exposeType: NodePort
  clusterServiceDNSMode: External

I get the the following error

kubectl -n abc apply -f cr.yaml --dry-run=server

Error from server (BadRequest): error when creating “cr.yaml”: PerconaServerMongoDB in version “v1” cannot be handled as a PerconaServerMongoDB: strict decoding error: unknown field “spec.replsets[0].expose.clusterServiceDNSMode”

Funny thing is if I run

kubectl -n abc apply -f cr.yaml --dry-run=server –validate=false

it works ?!

→ But I would really like to know how to apply correctly.

1 post - 1 participant

Read full topic