Do not set service link env variables

Kubernetes set environment variables in pods to help with service
discovery. This is a problem when we have thousands of builds.
And we don't need them (since there is no service communication,
and we have DNS in the cluster anyway).
This commit is contained in:
Stéphane Bidoul 2021-12-29 14:47:06 +01:00
parent c8fc6dbcbd
commit 8ac3486d51
No known key found for this signature in database
GPG key ID: BCAB2555446B5B92
3 changed files with 3 additions and 0 deletions

View file

@ -10,6 +10,7 @@ spec:
labels:
runboat/job-kind: cleanup
spec:
enableServiceLinks: false
containers:
- name: cleanup
image: postgres

View file

@ -18,6 +18,7 @@ spec:
spec:
# let Odoo stop gracefully to disconnect from postgres
terminationGracePeriodSeconds: 10
enableServiceLinks: false
containers:
- name: odoo
image: odoo

View file

@ -10,6 +10,7 @@ spec:
labels:
runboat/job-kind: initialize
spec:
enableServiceLinks: false
containers:
- name: initalize
image: odoo