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

update coredns for security best practice #8550

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ spec:
mountPath: /etc/coredns
readOnly: true
ports:
- containerPort: 53
- containerPort: 5353
name: dns
protocol: UDP
- containerPort: 53
- containerPort: 5353
name: dns-tcp
protocol: TCP
- containerPort: 9153
Expand All @@ -194,10 +194,9 @@ spec:
securityContext:
allowPrivilegeEscalation: false
capabilities:
add:
- NET_BIND_SERVICE
drop:
- all
runAsUser: 1000
readOnlyRootFilesystem: true
livenessProbe:
httpGet:
Expand Down Expand Up @@ -246,12 +245,15 @@ spec:
- name: dns
port: 53
protocol: UDP
targetPort: dns
- name: dns-tcp
port: 53
protocol: TCP
targetPort: dns-tcp
- name: metrics
port: 9153
protocol: TCP
targetPort: metrics

---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,11 @@ spec:
- name: dns
port: 53
protocol: UDP
targetPort: dns
- name: dns-tcp
port: 53
protocol: TCP
targetPort: dns-tcp

---

Expand Down
4 changes: 2 additions & 2 deletions upup/pkg/fi/cloudup/bootstrapchannelbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (b *BootstrapChannelBuilder) buildAddons() *channelsapi.Addons {

{
key := "kube-dns.addons.k8s.io"
version := "1.14.13-kops.2"
version := "1.14.13-kops.3"

{
location := key + "/k8s-1.6.yaml"
Expand Down Expand Up @@ -294,7 +294,7 @@ func (b *BootstrapChannelBuilder) buildAddons() *channelsapi.Addons {

{
key := "coredns.addons.k8s.io"
version := "1.6.7-kops.1"
version := "1.6.7-kops.2"

{
location := key + "/k8s-1.12.yaml"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ spec:
name: kube-dns.addons.k8s.io
selector:
k8s-addon: kube-dns.addons.k8s.io
version: 1.14.13-kops.2
version: 1.14.13-kops.3
- id: k8s-1.12
kubernetesVersion: '>=1.12.0'
manifest: kube-dns.addons.k8s.io/k8s-1.12.yaml
manifestHash: 15ade04df128488a534141bd5b8593d078f4953f
manifestHash: dee9c0b6910a239611448bce2389cfe1de5ea487
name: kube-dns.addons.k8s.io
selector:
k8s-addon: kube-dns.addons.k8s.io
version: 1.14.13-kops.2
version: 1.14.13-kops.3
- id: k8s-1.8
manifest: rbac.addons.k8s.io/k8s-1.8.yaml
manifestHash: 5d53ce7b920cd1e8d65d2306d80a041420711914
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ spec:
name: kube-dns.addons.k8s.io
selector:
k8s-addon: kube-dns.addons.k8s.io
version: 1.14.13-kops.2
version: 1.14.13-kops.3
- id: k8s-1.12
kubernetesVersion: '>=1.12.0'
manifest: kube-dns.addons.k8s.io/k8s-1.12.yaml
manifestHash: 15ade04df128488a534141bd5b8593d078f4953f
manifestHash: dee9c0b6910a239611448bce2389cfe1de5ea487
name: kube-dns.addons.k8s.io
selector:
k8s-addon: kube-dns.addons.k8s.io
version: 1.14.13-kops.2
version: 1.14.13-kops.3
- id: k8s-1.8
manifest: rbac.addons.k8s.io/k8s-1.8.yaml
manifestHash: 5d53ce7b920cd1e8d65d2306d80a041420711914
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ spec:
name: kube-dns.addons.k8s.io
selector:
k8s-addon: kube-dns.addons.k8s.io
version: 1.14.13-kops.2
version: 1.14.13-kops.3
- id: k8s-1.12
kubernetesVersion: '>=1.12.0'
manifest: kube-dns.addons.k8s.io/k8s-1.12.yaml
manifestHash: 15ade04df128488a534141bd5b8593d078f4953f
manifestHash: dee9c0b6910a239611448bce2389cfe1de5ea487
name: kube-dns.addons.k8s.io
selector:
k8s-addon: kube-dns.addons.k8s.io
version: 1.14.13-kops.2
version: 1.14.13-kops.3
- id: k8s-1.8
manifest: rbac.addons.k8s.io/k8s-1.8.yaml
manifestHash: 5d53ce7b920cd1e8d65d2306d80a041420711914
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ spec:
name: kube-dns.addons.k8s.io
selector:
k8s-addon: kube-dns.addons.k8s.io
version: 1.14.13-kops.2
version: 1.14.13-kops.3
- id: k8s-1.12
kubernetesVersion: '>=1.12.0'
manifest: kube-dns.addons.k8s.io/k8s-1.12.yaml
manifestHash: 15ade04df128488a534141bd5b8593d078f4953f
manifestHash: dee9c0b6910a239611448bce2389cfe1de5ea487
name: kube-dns.addons.k8s.io
selector:
k8s-addon: kube-dns.addons.k8s.io
version: 1.14.13-kops.2
version: 1.14.13-kops.3
- id: k8s-1.8
manifest: rbac.addons.k8s.io/k8s-1.8.yaml
manifestHash: 5d53ce7b920cd1e8d65d2306d80a041420711914
Expand Down