ovn: make gateway label configurable
Change-Id: I88ab77e61e9766e12eb3aff899e0d6dd24a8d3c0
This commit is contained in:
parent
aad6fc07d7
commit
5aed17d744
@ -15,7 +15,7 @@ apiVersion: v1
|
|||||||
appVersion: v23.3.0
|
appVersion: v23.3.0
|
||||||
description: OpenStack-Helm OVN
|
description: OpenStack-Helm OVN
|
||||||
name: ovn
|
name: ovn
|
||||||
version: 0.1.13
|
version: 0.1.14
|
||||||
home: https://www.ovn.org
|
home: https://www.ovn.org
|
||||||
icon: https://www.ovn.org/images/ovn-logo.png
|
icon: https://www.ovn.org/images/ovn-logo.png
|
||||||
sources:
|
sources:
|
||||||
|
@ -119,7 +119,7 @@ ovs-vsctl set open . external-ids:ovn-bridge="{{ .Values.conf.ovn_bridge }}"
|
|||||||
ovs-vsctl set open . external-ids:ovn-bridge-mappings="{{ .Values.conf.ovn_bridge_mappings }}"
|
ovs-vsctl set open . external-ids:ovn-bridge-mappings="{{ .Values.conf.ovn_bridge_mappings }}"
|
||||||
|
|
||||||
GW_ENABLED=$(cat /tmp/gw-enabled/gw-enabled)
|
GW_ENABLED=$(cat /tmp/gw-enabled/gw-enabled)
|
||||||
if [[ ${GW_ENABLED} == enabled ]]; then
|
if [[ ${GW_ENABLED} == {{ .Values.labels.ovn_controller_gw.node_selector_value }} ]]; then
|
||||||
ovs-vsctl set open . external-ids:ovn-cms-options={{ .Values.conf.ovn_cms_options_gw_enabled }}
|
ovs-vsctl set open . external-ids:ovn-cms-options={{ .Values.conf.ovn_cms_options_gw_enabled }}
|
||||||
else
|
else
|
||||||
ovs-vsctl set open . external-ids:ovn-cms-options={{ .Values.conf.ovn_cms_options }}
|
ovs-vsctl set open . external-ids:ovn-cms-options={{ .Values.conf.ovn_cms_options }}
|
||||||
|
@ -12,7 +12,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/}}
|
*/}}
|
||||||
|
|
||||||
{{- if .Values.manifests.daemonset_controller }}
|
{{- if .Values.manifests.daemonset_ovn_controller }}
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
|
|
||||||
{{- $configMapName := "ovn-etc" }}
|
{{- $configMapName := "ovn-etc" }}
|
||||||
@ -71,7 +71,7 @@ spec:
|
|||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
hostPID: true
|
hostPID: true
|
||||||
hostIPC: true
|
hostIPC: true
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: {{ .Values.pod.dns_policy }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ .Values.labels.ovn_controller.node_selector_key }}: {{ .Values.labels.ovn_controller.node_selector_value }}
|
{{ .Values.labels.ovn_controller.node_selector_key }}: {{ .Values.labels.ovn_controller.node_selector_value }}
|
||||||
initContainers:
|
initContainers:
|
||||||
@ -82,7 +82,7 @@ spec:
|
|||||||
- /bin/bash
|
- /bin/bash
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
kubectl get node ${NODENAME} -o jsonpath='{.metadata.labels.l3-agent}' > /tmp/gw-enabled/gw-enabled
|
kubectl get node ${NODENAME} -o jsonpath='{.metadata.labels.{{ .Values.labels.ovn_controller_gw.node_selector_key }}}' > /tmp/gw-enabled/gw-enabled
|
||||||
env:
|
env:
|
||||||
- name: NODENAME
|
- name: NODENAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
@ -58,7 +58,7 @@ spec:
|
|||||||
- name: OVS_DATABASE
|
- name: OVS_DATABASE
|
||||||
value: nb
|
value: nb
|
||||||
- name: OVS_PORT
|
- name: OVS_PORT
|
||||||
value: "{{ tuple "ovn-ovsdb-nb" "internal" "ovsdb" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}"
|
value: {{ tuple "ovn-ovsdb-nb" "internal" "ovsdb" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }}
|
||||||
command:
|
command:
|
||||||
- /tmp/ovsdb-server.sh
|
- /tmp/ovsdb-server.sh
|
||||||
- start
|
- start
|
||||||
|
@ -58,7 +58,7 @@ spec:
|
|||||||
- name: OVS_DATABASE
|
- name: OVS_DATABASE
|
||||||
value: sb
|
value: sb
|
||||||
- name: OVS_PORT
|
- name: OVS_PORT
|
||||||
value: "{{ tuple "ovn-ovsdb-sb" "internal" "ovsdb" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}"
|
value: {{ tuple "ovn-ovsdb-sb" "internal" "ovsdb" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }}
|
||||||
command:
|
command:
|
||||||
- /tmp/ovsdb-server.sh
|
- /tmp/ovsdb-server.sh
|
||||||
- start
|
- start
|
||||||
|
@ -47,6 +47,9 @@ labels:
|
|||||||
ovn_controller:
|
ovn_controller:
|
||||||
node_selector_key: openvswitch
|
node_selector_key: openvswitch
|
||||||
node_selector_value: enabled
|
node_selector_value: enabled
|
||||||
|
ovn_controller_gw:
|
||||||
|
node_selector_key: l3-agent
|
||||||
|
node_selector_value: enabled
|
||||||
|
|
||||||
volume:
|
volume:
|
||||||
ovn_ovsdb_nb:
|
ovn_ovsdb_nb:
|
||||||
@ -312,7 +315,6 @@ manifests:
|
|||||||
configmap_bin: true
|
configmap_bin: true
|
||||||
configmap_etc: true
|
configmap_etc: true
|
||||||
deployment_northd: true
|
deployment_northd: true
|
||||||
daemonset_controller: true
|
|
||||||
service_ovn_ovsdb_nb: true
|
service_ovn_ovsdb_nb: true
|
||||||
service_ovn_ovsdb_sb: true
|
service_ovn_ovsdb_sb: true
|
||||||
statefulset_ovn_ovsdb_nb: true
|
statefulset_ovn_ovsdb_nb: true
|
||||||
|
@ -14,4 +14,5 @@ ovn:
|
|||||||
- 0.1.11 Use quay.io/airshipit/kubernetes-entrypoint:latest-ubuntu_focal by default
|
- 0.1.11 Use quay.io/airshipit/kubernetes-entrypoint:latest-ubuntu_focal by default
|
||||||
- 0.1.12 Fix oci_image_registry secret name
|
- 0.1.12 Fix oci_image_registry secret name
|
||||||
- 0.1.13 Allow share OVN DB NB/SB socket
|
- 0.1.13 Allow share OVN DB NB/SB socket
|
||||||
|
- 0.1.14 Make the label for OVN controller gateway configurable
|
||||||
...
|
...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user