Created
August 16, 2023 14:50
-
-
Save alexeldeib/4a441b79bc50740e1ce94143cd8cb819 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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