Fix the problem in hostNetwork mode

If ClusterFirstWithHostNet does not exist, it will cause the communication between services to fail.

Change-Id: Iadac1d570e0aac1aee3361792319d825bcadc83c
This commit is contained in:
jinyuan 2021-04-15 16:07:32 +08:00
parent ba364c24b1
commit 3fee85324b
4 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Cinder
name: cinder
version: 0.1.14
version: 0.1.15
home: https://docs.openstack.org/cinder/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Cinder/OpenStack_Project_Cinder_vertical.png
sources:

View File

@ -55,6 +55,7 @@ spec:
{{ .Values.labels.backup.node_selector_key }}: {{ .Values.labels.backup.node_selector_value }}
{{- if .Values.pod.useHostNetwork.backup }}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
{{- if .Values.conf.enable_iscsi }}
hostIPC: true

View File

@ -55,6 +55,7 @@ spec:
{{ .Values.labels.volume.node_selector_key }}: {{ .Values.labels.volume.node_selector_value }}
{{- if .Values.pod.useHostNetwork.volume }}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
{{- if .Values.conf.enable_iscsi }}
hostIPC: true

View File

@ -15,3 +15,4 @@ cinder:
- 0.1.12 Update volume type creation bootstrap logic
- 0.1.13 Add NFS cinder backup override
- 0.1.14 Add Multipathd support for ISCSI backed volumes
- 0.1.15 Fix the problem in hostNetwork mode