I am developing a Kubernetes Operator and I would like to enforce some particular Pod settings whenever a Pod is referencing some custom ressource (according to a CRD - Custom Resource Definition - specified by me).

Is this somehow possible, either by directly altering the Pod's settings or by at least validating that a user has made them before applying the CRD?

  • 1
    Pods don't "use" CRDs, a CRD is a Kubernetes object just like a Pod. Your operator probably watches for CRDs and then manages Pods or other objects based on the CRD. Pods are (mostly) immutable so you change their "settings" after creation. Please elaborate on what you want to achieve.
    – vaizki
    Jan 13 at 15:47
  • I rephrased the question @vaizki, I hope it is more precise now.
    – mat
    Jan 17 at 11:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.