Kubernetes deployment with Service Account

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

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?

That would be great!

Thank you for your effort!

This change was implemented in Octopus version 2019.10.8

1 Like