Kubernetes deployment with Service Account

(Gidon) #1

I would like to be able to define the service account name in the Deploy Kubernetes Containers step
https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/

Certainly now that AWS added IAM Roles for Service Accounts (https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html) I assume that people will want to define the Service Account per pod.

Thanks,
Gidon

Kubernetes Deployment Startup probe
(Michael Richardson) #3

Hey Gidon,

I apologize for the delayed reply.

If we were to add a field to the Deploy Kubernetes Containers step: Service Account Name, which would result in YAML like

apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-deployment
spec:
  template:
    metadata:
      name: ...
    spec:
      serviceAccountName: my-iam-service-account
      ...

Would that give the result you are hoping for?

(Gidon) #4

That would be great!

Thank you for your effort!