From 5ff0afcb0d87468c61249fb86e83e0d47826302a Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Sat, 29 May 2021 21:35:40 -0400 Subject: [PATCH] Fix dnsPolicy for housekeeping service The dnsPolicy not being set to "ClusterFirstWithHostNet" results in the housekeeping service failing to connect to the database. Change-Id: I23c9f0c561ea61695fbc7ce333a3f331cf31a7a4 --- octavia/Chart.yaml | 2 +- octavia/templates/deployment-housekeeping.yaml | 1 + releasenotes/notes/octavia.yaml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/octavia/Chart.yaml b/octavia/Chart.yaml index 999e34fa08..acfb6939d7 100644 --- a/octavia/Chart.yaml +++ b/octavia/Chart.yaml @@ -16,7 +16,7 @@ apiVersion: v1 appVersion: v1.0.0 description: OpenStack-Helm Octavia name: octavia -version: 0.2.0 +version: 0.2.1 home: https://docs.openstack.org/octavia/latest/ icon: https://www.openstack.org/themes/openstack/images/project-mascots/Octavia/OpenStack_Project_Octavia_vertical.png sources: diff --git a/octavia/templates/deployment-housekeeping.yaml b/octavia/templates/deployment-housekeeping.yaml index 3cba2f046e..fe713b5da7 100644 --- a/octavia/templates/deployment-housekeeping.yaml +++ b/octavia/templates/deployment-housekeeping.yaml @@ -46,6 +46,7 @@ spec: configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }} spec: serviceAccountName: {{ $serviceAccountName }} + dnsPolicy: ClusterFirstWithHostNet hostNetwork: true affinity: {{ tuple $envAll "octavia" "housekeeping" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }} diff --git a/releasenotes/notes/octavia.yaml b/releasenotes/notes/octavia.yaml index e1b89fcadd..2b368f6132 100644 --- a/releasenotes/notes/octavia.yaml +++ b/releasenotes/notes/octavia.yaml @@ -4,3 +4,4 @@ octavia: - 0.1.1 Change helm-toolkit dependency version to ">= 0.1.0" - 0.1.2 Added post-install and post-upgrade hook for Jobs - 0.2.0 Remove support for releases before T + - 0.2.1 Fix dnsPolicy for housekeeping service