From 8ac3486d5164ceb1c4e20d52e9ca6d6724961a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Wed, 29 Dec 2021 14:47:06 +0100 Subject: [PATCH] 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). --- src/runboat/kubefiles/cleanup.yaml | 1 + src/runboat/kubefiles/deployment.yaml | 1 + src/runboat/kubefiles/initialize.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/src/runboat/kubefiles/cleanup.yaml b/src/runboat/kubefiles/cleanup.yaml index 0e31bb8..e68efe3 100644 --- a/src/runboat/kubefiles/cleanup.yaml +++ b/src/runboat/kubefiles/cleanup.yaml @@ -10,6 +10,7 @@ spec: labels: runboat/job-kind: cleanup spec: + enableServiceLinks: false containers: - name: cleanup image: postgres diff --git a/src/runboat/kubefiles/deployment.yaml b/src/runboat/kubefiles/deployment.yaml index 2057d50..2539f05 100644 --- a/src/runboat/kubefiles/deployment.yaml +++ b/src/runboat/kubefiles/deployment.yaml @@ -18,6 +18,7 @@ spec: spec: # let Odoo stop gracefully to disconnect from postgres terminationGracePeriodSeconds: 10 + enableServiceLinks: false containers: - name: odoo image: odoo diff --git a/src/runboat/kubefiles/initialize.yaml b/src/runboat/kubefiles/initialize.yaml index 125662d..a237329 100644 --- a/src/runboat/kubefiles/initialize.yaml +++ b/src/runboat/kubefiles/initialize.yaml @@ -10,6 +10,7 @@ spec: labels: runboat/job-kind: initialize spec: + enableServiceLinks: false containers: - name: initalize image: odoo