serviceaccount

1、快速创建模板
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

你可能感兴趣的:(serviceaccount)