1桃笙、快速創(chuàng)建模板
kubectl create serviceaccount my-sa -o yaml --dry-run
[root@kubem1 k8s-yaml]$ kubectl create sa my-sa -o yaml --dry-run
apiVersion: v1
kind: ServiceAccount
metadata:
creationTimestamp: null
name: my-sa
1桃笙、快速創(chuàng)建模板
kubectl create serviceaccount my-sa -o yaml --dry-run
[root@kubem1 k8s-yaml]$ kubectl create sa my-sa -o yaml --dry-run
apiVersion: v1
kind: ServiceAccount
metadata:
creationTimestamp: null
name: my-sa