Skip to content

Instantly share code, notes, and snippets.

@YurgenUA
Created January 17, 2024 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YurgenUA/29beab2a074ce74fac6a8b56c33cb02a to your computer and use it in GitHub Desktop.
Save YurgenUA/29beab2a074ce74fac6a8b56c33cb02a to your computer and use it in GitHub Desktop.
resource "kubernetes_service_account" "secret_privileged" {
metadata {
name = "secret-privileged-sa"
namespace = kubernetes_namespace.playground.id
annotations = {
"kubernetes.io/enforce-mountable-secrets" = "true"
}
}
secret {
name = kubernetes_secret.top_secret.metadata[0].name
}
automount_service_account_token = false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment