Created
February 2, 2019 13:32
-
-
Save gmaliar/831638b23d7f070dd36a39affd3b0c10 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
resource "kubernetes_service_account" "vault-tokenreview" { | |
metadata { | |
name = "vault-tokenreview" | |
} | |
} | |
resource "kubernetes_cluster_role_binding" "vault-tokenreview-clusterrolebinding" { | |
metadata { | |
name = "vault-tokenreviewer" | |
} | |
role_ref { | |
api_group = "rbac.authorization.k8s.io" | |
kind = "ClusterRole" | |
name = "system:auth-delegator" | |
} | |
subject { | |
api_group = "" | |
kind = "ServiceAccount" | |
name = "${kubernetes_service_account.vault-tokenreview.metadata.0.name}" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment