Configuring Pods to use a Kubernetes service account
Jump to navigation
Jump to search
apiVersion: apps/v1 kind: Deployment metadata: name: my-app spec: selector: matchLabels: app: my-app template: metadata: labels: app: my-app spec: serviceAccountName: my-service-account containers: - name: my-app image: public.ecr.aws/nginx/nginx:X.XX
Related
- Granting access to an IAM principal to view Kubernetes resources on a cluster
- Kubernetes service account
See also
Advertising: