Service Account
Tips and Tricks
For simulated Practice problems visit KillerCoda.
-
Solution
k create sa sacc
-
Solution
# generate required pod yaml k run pi --image=nginx --dry-run=client -o yaml > pod.yaml # add service account name apiVersion: v1 kind: Pod metadata: creationTimestamp: null labels: run: pi name: pi spec: serviceAccountName: sacc containers: - image: nginx name: pi resources: {} dnsPolicy: ClusterFirst restartPolicy: Always