templates: add service account
Avoid using the default account, but use a dedicated one. This follows the guidelines from AppSRE and is what was done for image-builder. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
3c9b92b80b
commit
b0f36fccd3
1 changed files with 8 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ objects:
|
|||
labels:
|
||||
app: composer
|
||||
spec:
|
||||
serviceAccountName: image-builder
|
||||
containers:
|
||||
- image: "${IMAGE_NAME}:${IMAGE_TAG}"
|
||||
name: composer
|
||||
|
|
@ -125,6 +126,13 @@ objects:
|
|||
- name: PGSSLMODE
|
||||
value: "${PGSSLMODE}"
|
||||
|
||||
- apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: image-builder
|
||||
imagePullSecrets:
|
||||
- name: quay-cloudservices-pull
|
||||
|
||||
- apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue