Created
April 18, 2019 09:27
-
-
Save yurenju/2a414aded009c99b58c01fa2da2c0a33 to your computer and use it in GitHub Desktop.
vault k8s auth
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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: tx | |
namespace: default | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
... | |
spec: | |
template: | |
metadata: | |
labels: | |
... | |
spec: | |
serviceAccountName: tx | |
... |
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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: vault-auth-service-account | |
namespace: default | |
--- | |
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: vault-auth-role-binding | |
namespace: default | |
subjects: | |
- kind: ServiceAccount | |
name: vault-auth-service-account | |
namespace: default | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: system:auth-delegator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment