mirror of
https://github.com/truenas/charts.git
synced 2024-04-21 15:21:45 +00:00
49 lines
812 B
Markdown
49 lines
812 B
Markdown
# Service Account
|
|
|
|
## Key: serviceAccount
|
|
|
|
Info:
|
|
|
|
- Type: `dict`
|
|
- Default:
|
|
|
|
```yaml
|
|
serviceAccount:
|
|
main:
|
|
enabled: false
|
|
primary: true
|
|
automountServiceAccountToken: true
|
|
```
|
|
|
|
- Helm Template: ❌
|
|
|
|
Can be defined in:
|
|
|
|
- `.Values`.serviceAccount
|
|
|
|
---
|
|
|
|
For every `serviceAccount.[NAME]` that is enabled it will
|
|
create a `ServiceAccount` object.
|
|
|
|
`primary` flag is used to decide what `serviceAccountName`
|
|
will be assigned to the pod. Without a `ServiceAccount`,
|
|
the `serviceAccountName` will be `default` .
|
|
|
|
Examples:
|
|
|
|
```yaml
|
|
serviceAccount:
|
|
main:
|
|
enabled: true
|
|
primary: true
|
|
labels:
|
|
key: value
|
|
annotations:
|
|
key: value
|
|
```
|
|
|
|
Kubernetes Documentation:
|
|
|
|
- [Service Account](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account)
|