cat >>csi-node-driver-sa.yaml<<EOF
apiVersion: v1
kind: ServiceAccount
metadata:
  name: csi-node-driver
  namespace: calico-system
secrets:
  - name: csi-node-driver
---
apiVersion: v1
kind: Secret
type: kubernetes.io/service-account-token
metadata:
  name: csi-node-driver
  namespace: calico-system
  annotations:
    kubernetes.io/service-account.name: csi-node-driver
EOF
kubectl apply -f csi-node-driver-sa.yaml
文档更新时间: 2023-03-09 09:31   作者:admin