Skip to content

Instantly share code, notes, and snippets.

@jaimegag
Created November 3, 2021 20:38
Show Gist options
  • Save jaimegag/8ec6978ca1985c8f925c9d7ed1b773c8 to your computer and use it in GitHub Desktop.
Save jaimegag/8ec6978ca1985c8f925c9d7ed1b773c8 to your computer and use it in GitHub Desktop.
TKGm Enable PodSecurityPolicy Admission Controller
#@ load("@ytt:overlay", "overlay")
#@ load("@ytt:data", "data")
#! Enable PodSecurityPolicy Admission Controller.
#@overlay/match missing_ok=True,by=overlay.subset({"kind":"KubeadmControlPlane"})
---
spec:
kubeadmConfigSpec:
#@overlay/match missing_ok=True
clusterConfiguration:
apiServer:
extraArgs:
#@overlay/match missing_ok=True
enable-admission-plugins: "AlwaysPullImages,NodeRestriction,EventRateLimit,PodSecurityPolicy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment