ServiceAccount

Example

Here’s an example of a ServiceAccount.

.kubes/resources/shared/service_account.rb

name "demo"

Produces:

.kubes/output/shared/service_account.yaml

apiVersion: v1
kind: ServiceAccount
metadata:
  name: demo

DSL Methods

Here’s a list of more common methods:

Top-level methods:

  • automountServiceAccountToken
  • imagePullSecrets
  • secrets

For a full list of the available methods, refer to the source itself syntax/service_account.rb.