Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove ports & bind-address 127.0.0.1 #1236

Merged
merged 1 commit into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 0 additions & 10 deletions charts/eks/templates/coredns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,6 @@ data:
- name: custom-config-volume
mountPath: /etc/coredns/custom
readOnly: true
ports:
- containerPort: 1053
name: dns
protocol: UDP
- containerPort: 1053
name: dns-tcp
protocol: TCP
- containerPort: 9153
name: metrics
protocol: TCP
securityContext:
runAsNonRoot: true
runAsUser: {{`{{.RUN_AS_USER}}`}}
Expand Down
10 changes: 0 additions & 10 deletions charts/k0s/templates/coredns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,6 @@ data:
- name: custom-config-volume
mountPath: /etc/coredns/custom
readOnly: true
ports:
- containerPort: 1053
name: dns
protocol: UDP
- containerPort: 1053
name: dns-tcp
protocol: TCP
- containerPort: 9153
name: metrics
protocol: TCP
securityContext:
runAsNonRoot: true
runAsUser: {{`{{.RUN_AS_USER}}`}}
Expand Down
7 changes: 4 additions & 3 deletions charts/k0s/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
heritage: "{{ .Release.Service }}"
{{- if .Values.globalAnnotations}}
annotations:
{{ toYaml .Values.globalAnnotations | indent 4 }}
{{ toYaml .Values.globalAnnotations | indent 4 }}
{{- end }}
type: Opaque
stringData:
Expand All @@ -31,13 +31,14 @@ stringData:
port: 6443
k0sApiPort: 9443
extraArgs:
bind-address: 127.0.0.1
enable-admission-plugins: NodeRestriction
endpoint-reconciler-type: none
network:
{{- if .Values.serviceCIDR }}
serviceCIDR: {{ .Values.serviceCIDR }}
{{- else }}
# Will be replaced automatically by the syncer container on first
# Will be replaced automatically by the syncer container on first startup
serviceCIDR: CIDR_PLACEHOLDER
{{- end }}
provider: custom
Expand All @@ -54,4 +55,4 @@ stringData:
node-monitor-period: 1h
{{- end }}
{{- end }}
{{- end }}
{{- end }}
10 changes: 0 additions & 10 deletions charts/k3s/templates/coredns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,6 @@ data:
- name: custom-config-volume
mountPath: /etc/coredns/custom
readOnly: true
ports:
- containerPort: 1053
name: dns
protocol: UDP
- containerPort: 1053
name: dns-tcp
protocol: TCP
- containerPort: 9153
name: metrics
protocol: TCP
securityContext:
runAsNonRoot: true
runAsUser: {{`{{.RUN_AS_USER}}`}}
Expand Down
1 change: 1 addition & 0 deletions charts/k3s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ vcluster:
- --disable-agent
- --disable-cloud-controller
- --flannel-backend=none
- --kube-apiserver-arg=bind-address=127.0.0.1
extraArgs: []
volumeMounts:
- mountPath: /data
Expand Down
10 changes: 0 additions & 10 deletions charts/k8s/templates/coredns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,6 @@ data:
- name: custom-config-volume
mountPath: /etc/coredns/custom
readOnly: true
ports:
- containerPort: 1053
name: dns
protocol: UDP
- containerPort: 1053
name: dns-tcp
protocol: TCP
- containerPort: 9153
name: metrics
protocol: TCP
securityContext:
runAsNonRoot: true
runAsUser: {{`{{.RUN_AS_USER}}`}}
Expand Down