ce7cb702218693d08ea6d83464d2457c9250027c

This commit is contained in:
ms2k 2026-11-12 20:46:28 +09:00
commit 34c5f8963c

View file

@ -0,0 +1,19 @@
resource "vault_policy" "smartctl" {
name = "smartctl"
policy = <<-EOT
path "secret/data/quay/robots/cluster_pull" {
capabilities = ["read"]
}
EOT
}
resource "vault_kubernetes_auth_backend_role" "smartctl" {
backend = vault_auth_backend.kubernetes.path
role_name = "smartctl"
bound_service_account_names = ["smartctl-vso"]
bound_service_account_namespaces = ["smartctl-exporter"]
token_policies = [vault_policy.smartctl.name]
token_ttl = 3600
token_max_ttl = 3600
}