Skip to content

Commit

Permalink
add dnsPolicy feature to occm
Browse files Browse the repository at this point in the history
  • Loading branch information
sevensphereio committed May 14, 2024
1 parent 2f186d6 commit 154e50f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/openstack-cloud-controller-manager/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Openstack Cloud Controller Manager Helm Chart
icon: https://object-storage-ca-ymq-1.vexxhost.net/swift/v1/6e4619c416ff4bd19e1c087f27a43eea/www-images-prod/openstack-logo/OpenStack-Logo-Vertical.png
home: https://github.com/kubernetes/cloud-provider-openstack
name: openstack-cloud-controller-manager
version: 2.30.0
version: 2.30.1
maintainers:
- name: eumel8
email: [email protected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ spec:
{{- if .Values.extraInitContainers }}
initContainers: {{ toYaml .Values.extraInitContainers | nindent 6 }}
{{- end }}
dnsPolicy: {{ .Values.dnsPolicy }}
hostNetwork: true
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
Expand Down
2 changes: 2 additions & 0 deletions charts/openstack-cloud-controller-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ livenessProbe: {}
# Set readinessProbe in the same way like livenessProbe
readinessProbe: {}

dnsPolicy: ClusterFirstWithHostNet

# Set nodeSelector where the controller should run, i.e. controlplane nodes
nodeSelector:
node-role.kubernetes.io/control-plane: ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ spec:
value: /etc/config/cloud.conf
- name: CLUSTER_NAME
value: kubernetes
dnsPolicy: ClusterFirstWithHostNet
hostNetwork: true
volumes:
- hostPath:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ spec:
value: /etc/config/cloud.conf
- name: CLUSTER_NAME
value: kubernetes
dnsPolicy: ClusterFirstWithHostNet
hostNetwork: true
securityContext:
runAsUser: 1001
Expand Down

0 comments on commit 154e50f

Please sign in to comment.