Skip to content

Commit

Permalink
add dnsPolicy feature to occm
Browse files Browse the repository at this point in the history
the dnsPolicy forces occm to use coredns configuration instead of direct internet connection
added dnsPolicy to pod
add dnsPolicy in values.yaml
added dnsPolicy value in daemonset.yaml
charts version bump
  • Loading branch information
sevensphereio committed May 14, 2024
1 parent 2f186d6 commit 5ccc55b
Show file tree
Hide file tree
Showing 5 changed files with 7 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: f.kloeker@telekom.de
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ 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: {}

# set dnsPolicy to 'ClusterFirstWithHostNet' if the cluster is deployed behind a corporate reverse proxy
dnsPolicy: default
# 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 5ccc55b

Please sign in to comment.