Complete the command to create a service account named 'my-service' in Kubernetes.
kubectl create serviceaccount [1]The command kubectl create serviceaccount my-service creates a new service account named 'my-service'.
Complete the command to list all service accounts in the 'dev' namespace.
kubectl get serviceaccounts -n [1]The -n dev flag specifies the 'dev' namespace to list service accounts there.
Fix the error in the command to delete the service account named 'test-account' in the 'test' namespace.
kubectl delete serviceaccount [1] -n testThe service account name must exactly match 'test-account' to delete it correctly.
Fill both blanks to create a service account named 'build-bot' in the 'ci' namespace and then get its details.
kubectl create serviceaccount [1] -n [2] kubectl get serviceaccount [1] -n [2] -o yaml
Use 'build-bot' as the service account name and 'ci' as the namespace in both commands.
Fill all three blanks to create a service account 'deploy-sa' in namespace 'staging', patch it to add an image pull secret 'reg-secret', and then describe it.
kubectl create serviceaccount [1] -n [2] kubectl patch serviceaccount [1] -n [2] -p '{"imagePullSecrets": [{"name": "[3]"}]}' kubectl describe serviceaccount [1] -n [2]
Use 'deploy-sa' as the service account name, 'staging' as the namespace, and 'reg-secret' as the image pull secret name.