I created an admission webhook in Kubernetes including resources for deployments and StatefulSet.
The mutation webhook works on Deployments but not in StatefulSets.
I tried searching in documentations, but the example is only on deployments and ReplicaSets.
Are admission controllers supported in StatefulSets in Kubernetes? I am using the 1.16 version.
In the documentation:
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
...
webhooks:
- name: my-webhook.example.com
rules:
- operations: ["CREATE", "UPDATE"]
apiGroups: ["apps"]
apiVersions: ["v1", "v1beta1"]
resources: ["deployments", "replicasets"]
scope: "Namespaced"
Please advise.