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:
parent
c8fc6dbcbd
commit
8ac3486d51
3 changed files with 3 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ spec:
|
|||
labels:
|
||||
runboat/job-kind: cleanup
|
||||
spec:
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: cleanup
|
||||
image: postgres
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ spec:
|
|||
spec:
|
||||
# let Odoo stop gracefully to disconnect from postgres
|
||||
terminationGracePeriodSeconds: 10
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: odoo
|
||||
image: odoo
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ spec:
|
|||
labels:
|
||||
runboat/job-kind: initialize
|
||||
spec:
|
||||
enableServiceLinks: false
|
||||
containers:
|
||||
- name: initalize
|
||||
image: odoo
|
||||
|
|
|
|||
Loading…
Reference in a new issue