Last active
June 21, 2023 15:53
-
-
Save hustshawn/525745c5ce99d55111d7b64b6197a581 to your computer and use it in GitHub Desktop.
Revisions
-
hustshawn revised this gist
Jun 21, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ kind: ClusterPolicy metadata: name: add-daemonset-fargate-anti-affinity spec: validationFailureAction: Enforce background: false rules: - name: add-node-anti-affinity -
hustshawn revised this gist
Jun 14, 2023 . No changes.There are no files selected for viewing
-
hustshawn created this gist
Jun 14, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ apiVersion: kyverno.io/v1 kind: ClusterPolicy metadata: name: add-daemonset-fargate-anti-affinity spec: validationFailureAction: audit background: false rules: - name: add-node-anti-affinity match: resources: kinds: - DaemonSet mutate: patchStrategicMerge: spec: template: spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: eks.amazonaws.com/compute-type operator: NotIn values: - fargate