Add tolerations to mariadb-controller pod
Recently a new pod was added to the MariaDB Helm chart[1]. This pod works as an auxiliary to the deployment of the MariaDB servers. It was found that if the Controller node had the taint "node-role.kubernetes.io/control-plane:NoSchedule", the mariadb-controller pod would be stuck in pending state. This review aims to update the patch that was added creating this new pod, where it adds the tolerations section to the pod definition. [1] - https://review.opendev.org/c/starlingx/openstack-armada-app/+/944245 Test Plan: PASS - Build OSH and STX-O tarball PASS - Apply STX-O in a standard system PASS - mariadb-controller pod is running PASS - MariaDB Helmrelease succesfully deployed PASS - STX-O applied Closes-Bug: #2104035 Change-Id: I05b8dfbaeebd247cf72340881428aece78197df5 Signed-off-by: Daniel Caires <DanielMarques.Caires@windriver.com>
This commit is contained in:
parent
2f7492a0b1
commit
a942ffbf3a
@ -13,18 +13,20 @@ https://opendev.org/openstack/openstack-helm-infra/commit/954e338d17e2dc8394dcd0
|
||||
https://opendev.org/openstack/openstack-helm-infra/commit/475a0c4b44b9c815fbbafaf1b1d485c9d2973878
|
||||
https://opendev.org/openstack/openstack-helm-infra/commit/d27ea2474504653383d005adcbc043b34d62eccd
|
||||
|
||||
[ Add tolerations to mariadb-controller pod definition ]
|
||||
Signed-off-by: Daniel Caires <DanielMarques.Caires@windriver.com>
|
||||
---
|
||||
.../templates/snippets/_service_params.tpl | 61 ++++++++
|
||||
.../templates/bin/_mariadb_controller.py.tpl | 112 ++++++++++++++
|
||||
mariadb/templates/bin/_start.py.tpl | 143 +-----------------
|
||||
mariadb/templates/configmap-bin.yaml | 4 +
|
||||
mariadb/templates/deployment-controller.yaml | 119 +++++++++++++++
|
||||
mariadb/templates/deployment-controller.yaml | 122 +++++++++++++++
|
||||
mariadb/templates/service-discovery.yaml | 5 +
|
||||
mariadb/templates/service-master.yaml | 33 ++++
|
||||
mariadb/templates/service.yaml | 1 +
|
||||
mariadb/templates/statefulset.yaml | 37 +----
|
||||
mariadb/values.yaml | 34 ++++-
|
||||
10 files changed, 376 insertions(+), 173 deletions(-)
|
||||
10 files changed, 379 insertions(+), 173 deletions(-)
|
||||
create mode 100644 helm-toolkit/templates/snippets/_service_params.tpl
|
||||
create mode 100644 mariadb/templates/bin/_mariadb_controller.py.tpl
|
||||
create mode 100644 mariadb/templates/deployment-controller.yaml
|
||||
@ -426,10 +428,10 @@ index cc92eb69..7b6e18ab 100644
|
||||
{{- end }}
|
||||
diff --git a/mariadb/templates/deployment-controller.yaml b/mariadb/templates/deployment-controller.yaml
|
||||
new file mode 100644
|
||||
index 00000000..598d084a
|
||||
index 00000000..39ec8627
|
||||
--- /dev/null
|
||||
+++ b/mariadb/templates/deployment-controller.yaml
|
||||
@@ -0,0 +1,119 @@
|
||||
@@ -0,0 +1,122 @@
|
||||
+{{/*
|
||||
+Licensed under the Apache License, Version 2.0 (the "License");
|
||||
+you may not use this file except in compliance with the License.
|
||||
@ -517,6 +519,9 @@ index 00000000..598d084a
|
||||
+{{ dict "envAll" $envAll "application" "controller" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
|
||||
+ affinity:
|
||||
+{{ tuple $envAll "mariadb" "controller" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }}
|
||||
+{{ if $envAll.Values.pod.tolerations.mariadb.enabled }}
|
||||
+{{ tuple $envAll "mariadb" | include "helm-toolkit.snippets.kubernetes_tolerations" | indent 6 }}
|
||||
+{{ end }}
|
||||
+ nodeSelector:
|
||||
+ {{ .Values.labels.controller.node_selector_key }}: {{ .Values.labels.controller.node_selector_value }}
|
||||
+ initContainers:
|
||||
|
Loading…
x
Reference in New Issue
Block a user