Add ServiceAccountName

The label `kompose.service.accountname` defines the service account name
to provide the credential info of the pod.
This commit is contained in:
tk42
2021-07-24 08:44:07 +09:00
parent bc7d9f4fb0
commit f7f987de49
7 changed files with 116 additions and 1 deletions
+13
View File
@@ -244,6 +244,19 @@ services:
- "6379"
```
- `kompose.service.accountname` defines the service account name to provide the credential info of the pod.
For example:
```yaml
version: '3.4'
services:
app:
image: python
labels:
kompose.service.accountname: "my-service"
```
- `kompose.image-pull-secret` defines a kubernetes secret name for imagePullSecrets podspec field.
This secret will be used for pulling private images.
For example: