kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch17/user-groups/service-accounts/test-sa.yaml

21 lines
393 B
YAML

apiVersion: v1
kind: Namespace
metadata:
name: kiamol-authn-test
labels:
kiamol: ch17
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: tester2
namespace: kiamol-authn-test
---
apiVersion: v1
kind: Secret
metadata:
name: tester2-sa-token
namespace: kiamol-authn-test
annotations:
kubernetes.io/service-account.name: tester2
type: kubernetes.io/service-account-token