Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sbueringer/8b54f6bec5418c3739b490c65353eab3 to your computer and use it in GitHub Desktop.
Save sbueringer/8b54f6bec5418c3739b490c65353eab3 to your computer and use it in GitHub Desktop.
blog-opa-perf-mutating-webhook-optimized.yaml
kind: MutatingWebhookConfiguration
apiVersion: admissionregistration.k8s.io/v1beta1
metadata:
name: opa
webhooks:
- name: opa.k8s.io
rules:
- operations:
- CREATE
- UPDATE
apiVersions: ["*"]
apiGroups:
- ""
resources:
- pods
- services
- namespaces
- persistentvolumes
- operations:
- CREATE
- UPDATE
apiVersions: ["*"]
apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment