Compare commits
3 Commits
a92b9cda21
...
b6b17c5ced
| Author | SHA1 | Date | |
|---|---|---|---|
| b6b17c5ced | |||
| 733b933a00 | |||
| 933cc9dadd |
4
Untitled
Normal file
4
Untitled
Normal file
@@ -0,0 +1,4 @@
|
||||
VAULT_HELM_SECRET_NAME=$(kubectl get secrets -n vault --output=json | jq -r '.items[].metadata | select(.name|startswith("vault-token-")).name')
|
||||
TOKEN_REVIEW_JWT=$(kubectl get secret $VAULT_HELM_SECRET_NAME -n vault --output='go-template={{ .data.token }}' | base64 --decode)
|
||||
KUBE_CA_CERT=$(kubectl config view --raw --minify --flatten --output='jsonpath={.clusters[].cluster.certificate-authority-data}' | base64 --decode)
|
||||
KUBE_HOST=$(kubectl config view --raw --minify --flatten --output='jsonpath={.clusters[].cluster.server}')
|
||||
File diff suppressed because one or more lines are too long
@@ -5,3 +5,17 @@ metadata:
|
||||
annotations:
|
||||
kubernetes.io/service-account.name: vault-dmz
|
||||
type: kubernetes.io/service-account-token
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: role-tokenreview-binding
|
||||
namespace: vault
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: system:auth-delegator
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: vault-auth
|
||||
namespace: vault
|
||||
|
||||
Reference in New Issue
Block a user