title: How to configure a non-default serviceAccount on a deployment
body: <p>My Understanding of this <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/" rel="noreferrer">doc page</a> is, that I can configure service accounts with Pods and hopefully also deployments, so I can access the k8s API in Kubernetes 1.6+. In order not to alter or use the default one I want to create service account and mount certificate into the pods of a deployment.</p>
  
  <p>How do I achieve something similar like in this example for a deployment?</p>
  
  <pre><code>apiVersion: v1
  kind: Pod
  metadata:
     name: my-pod
  spec:
    serviceAccountName: build-robot
    automountServiceAccountToken: false
  </code></pre>