Skip to content

Instantly share code, notes, and snippets.

@alexeldeib
Created August 16, 2023 14:50
Show Gist options
  • Save alexeldeib/4a441b79bc50740e1ce94143cd8cb819 to your computer and use it in GitHub Desktop.
Save alexeldeib/4a441b79bc50740e1ce94143cd8cb819 to your computer and use it in GitHub Desktop.
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: exclude-all-pods-http-proxy
spec:
mutateExistingOnPolicyUpdate: false
rules:
- name: pod-ns
match:
any:
- resources:
kinds:
- Pod
namespaces:
- default
mutate:
patchesJson6902: |-
- path: "/metadata/annotations/kubernetes.azure.com~1no-http-proxy-vars"
op: add
value: "true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment