Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
989f6667
Commit
989f6667
authored
Aug 28, 2018
by
Sandeep Rajan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prep for 1.12
parent
965df074
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
35 additions
and
18 deletions
+35
-18
coredns.yaml.base
cluster/addons/dns/coredns/coredns.yaml.base
+3
-1
coredns.yaml.in
cluster/addons/dns/coredns/coredns.yaml.in
+3
-1
coredns.yaml.sed
cluster/addons/dns/coredns/coredns.yaml.sed
+3
-1
constants.go
cmd/kubeadm/app/constants/constants.go
+1
-1
dns.go
cmd/kubeadm/app/phases/addons/dns/dns.go
+1
-0
dns_test.go
cmd/kubeadm/app/phases/addons/dns/dns_test.go
+8
-0
manifests.go
cmd/kubeadm/app/phases/addons/dns/manifests.go
+2
-0
compute_test.go
cmd/kubeadm/app/phases/upgrade/compute_test.go
+14
-14
No files found.
cluster/addons/dns/coredns/coredns.yaml.base
View file @
989f6667
...
@@ -66,7 +66,9 @@ data:
...
@@ -66,7 +66,9 @@ data:
prometheus :9153
prometheus :9153
proxy . /etc/resolv.conf
proxy . /etc/resolv.conf
cache 30
cache 30
loop
reload
reload
loadbalance
}
}
---
---
apiVersion: extensions/v1beta1
apiVersion: extensions/v1beta1
...
@@ -106,7 +108,7 @@ spec:
...
@@ -106,7 +108,7 @@ spec:
operator: "Exists"
operator: "Exists"
containers:
containers:
- name: coredns
- name: coredns
image: k8s.gcr.io/coredns:1.
1.3
image: k8s.gcr.io/coredns:1.
2.2
imagePullPolicy: IfNotPresent
imagePullPolicy: IfNotPresent
resources:
resources:
limits:
limits:
...
...
cluster/addons/dns/coredns/coredns.yaml.in
View file @
989f6667
...
@@ -66,7 +66,9 @@ data:
...
@@ -66,7 +66,9 @@ data:
prometheus :9153
prometheus :9153
proxy . /etc/resolv.conf
proxy . /etc/resolv.conf
cache 30
cache 30
loop
reload
reload
loadbalance
}
}
---
---
apiVersion: extensions/v1beta1
apiVersion: extensions/v1beta1
...
@@ -106,7 +108,7 @@ spec:
...
@@ -106,7 +108,7 @@ spec:
operator: "Exists"
operator: "Exists"
containers:
containers:
- name: coredns
- name: coredns
image: k8s.gcr.io/coredns:1.
1.3
image: k8s.gcr.io/coredns:1.
2.2
imagePullPolicy: IfNotPresent
imagePullPolicy: IfNotPresent
resources:
resources:
limits:
limits:
...
...
cluster/addons/dns/coredns/coredns.yaml.sed
View file @
989f6667
...
@@ -66,7 +66,9 @@ data:
...
@@ -66,7 +66,9 @@ data:
prometheus :9153
prometheus :9153
prox
y
.
/et
c
/resolv.conf
prox
y
.
/et
c
/resolv.conf
c
ache 30
c
ache 30
l
oo
p
re
l
o
a
d
re
l
o
a
d
l
o
a
dbalance
}
}
---
---
a
piVersion: extensions/v1beta1
a
piVersion: extensions/v1beta1
...
@@ -106,7 +108,7 @@ spec:
...
@@ -106,7 +108,7 @@ spec:
o
p
er
a
tor: "Exists"
o
p
er
a
tor: "Exists"
c
ontainers:
c
ontainers:
-
na
me: coredns
-
na
me: coredns
i
mage: k8s.gcr.io/coredns:1.
1.3
i
mage: k8s.gcr.io/coredns:1.
2.2
i
magePullPolicy: IfNotPresent
i
magePullPolicy: IfNotPresent
re
s
o
urces:
re
s
o
urces:
limits:
limits:
...
...
cmd/kubeadm/app/constants/constants.go
View file @
989f6667
...
@@ -289,7 +289,7 @@ const (
...
@@ -289,7 +289,7 @@ const (
KubeDNSVersion
=
"1.14.10"
KubeDNSVersion
=
"1.14.10"
// CoreDNSVersion is the version of CoreDNS to be deployed if it is used
// CoreDNSVersion is the version of CoreDNS to be deployed if it is used
CoreDNSVersion
=
"1.
1.3
"
CoreDNSVersion
=
"1.
2.2
"
// ClusterConfigurationKind is the string kind value for the ClusterConfiguration struct
// ClusterConfigurationKind is the string kind value for the ClusterConfiguration struct
ClusterConfigurationKind
=
"ClusterConfiguration"
ClusterConfigurationKind
=
"ClusterConfiguration"
...
...
cmd/kubeadm/app/phases/addons/dns/dns.go
View file @
989f6667
...
@@ -310,6 +310,7 @@ func translateStubDomainOfKubeDNSToProxyCoreDNS(dataField string, kubeDNSConfigM
...
@@ -310,6 +310,7 @@ func translateStubDomainOfKubeDNSToProxyCoreDNS(dataField string, kubeDNSConfigM
pStanza
[
"body"
]
=
[][]
string
{
pStanza
[
"body"
]
=
[][]
string
{
{
"errors"
},
{
"errors"
},
{
"cache"
,
"30"
},
{
"cache"
,
"30"
},
{
"loop"
},
append
([]
string
{
"proxy"
,
"."
},
proxyIP
...
),
append
([]
string
{
"proxy"
,
"."
},
proxyIP
...
),
}
}
proxyStanza
=
append
(
proxyStanza
,
pStanza
)
proxyStanza
=
append
(
proxyStanza
,
pStanza
)
...
...
cmd/kubeadm/app/phases/addons/dns/dns_test.go
View file @
989f6667
...
@@ -204,24 +204,28 @@ func TestTranslateStubDomainKubeDNSToCoreDNS(t *testing.T) {
...
@@ -204,24 +204,28 @@ func TestTranslateStubDomainKubeDNSToCoreDNS(t *testing.T) {
foo.com:53 {
foo.com:53 {
errors
errors
cache 30
cache 30
loop
proxy . 1.2.3.4:5300 3.3.3.3
proxy . 1.2.3.4:5300 3.3.3.3
}
}
my.cluster.local:53 {
my.cluster.local:53 {
errors
errors
cache 30
cache 30
loop
proxy . 2.3.4.5
proxy . 2.3.4.5
}`
,
}`
,
expectTwo
:
`
expectTwo
:
`
my.cluster.local:53 {
my.cluster.local:53 {
errors
errors
cache 30
cache 30
loop
proxy . 2.3.4.5
proxy . 2.3.4.5
}
}
foo.com:53 {
foo.com:53 {
errors
errors
cache 30
cache 30
loop
proxy . 1.2.3.4:5300 3.3.3.3
proxy . 1.2.3.4:5300 3.3.3.3
}`
,
}`
,
},
},
...
@@ -251,24 +255,28 @@ func TestTranslateStubDomainKubeDNSToCoreDNS(t *testing.T) {
...
@@ -251,24 +255,28 @@ func TestTranslateStubDomainKubeDNSToCoreDNS(t *testing.T) {
foo.com:53 {
foo.com:53 {
errors
errors
cache 30
cache 30
loop
proxy . 1.2.3.4:5300
proxy . 1.2.3.4:5300
}
}
my.cluster.local:53 {
my.cluster.local:53 {
errors
errors
cache 30
cache 30
loop
proxy . 2.3.4.5
proxy . 2.3.4.5
}`
,
}`
,
expectTwo
:
`
expectTwo
:
`
my.cluster.local:53 {
my.cluster.local:53 {
errors
errors
cache 30
cache 30
loop
proxy . 2.3.4.5
proxy . 2.3.4.5
}
}
foo.com:53 {
foo.com:53 {
errors
errors
cache 30
cache 30
loop
proxy . 1.2.3.4:5300
proxy . 1.2.3.4:5300
}`
,
}`
,
},
},
...
...
cmd/kubeadm/app/phases/addons/dns/manifests.go
View file @
989f6667
...
@@ -311,7 +311,9 @@ data:
...
@@ -311,7 +311,9 @@ data:
prometheus :9153
prometheus :9153
proxy . {{ .UpstreamNameserver }}
proxy . {{ .UpstreamNameserver }}
cache 30
cache 30
loop
reload
reload
loadbalance
}{{ .StubDomain }}
}{{ .StubDomain }}
`
`
// CoreDNSClusterRole is the CoreDNS ClusterRole manifest
// CoreDNSClusterRole is the CoreDNS ClusterRole manifest
...
...
cmd/kubeadm/app/phases/upgrade/compute_test.go
View file @
989f6667
...
@@ -168,7 +168,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
...
@@ -168,7 +168,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeVersion
:
"v1.10.3"
,
KubeVersion
:
"v1.10.3"
,
KubeadmVersion
:
"v1.10.3"
,
KubeadmVersion
:
"v1.10.3"
,
DNSType
:
"coredns"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.
1.3
"
,
DNSVersion
:
"1.
2.2
"
,
EtcdVersion
:
"3.1.12"
,
EtcdVersion
:
"3.1.12"
,
},
},
},
},
...
@@ -207,7 +207,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
...
@@ -207,7 +207,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeVersion
:
"v1.10.3"
,
KubeVersion
:
"v1.10.3"
,
KubeadmVersion
:
"v1.10.3"
,
KubeadmVersion
:
"v1.10.3"
,
DNSType
:
"coredns"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.
1.3
"
,
DNSVersion
:
"1.
2.2
"
,
EtcdVersion
:
"3.1.12"
,
EtcdVersion
:
"3.1.12"
,
},
},
},
},
...
@@ -246,7 +246,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
...
@@ -246,7 +246,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeVersion
:
"v1.11.0"
,
KubeVersion
:
"v1.11.0"
,
KubeadmVersion
:
"v1.11.0"
,
KubeadmVersion
:
"v1.11.0"
,
DNSType
:
"coredns"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.
1.3
"
,
DNSVersion
:
"1.
2.2
"
,
EtcdVersion
:
"3.2.18"
,
EtcdVersion
:
"3.2.18"
,
},
},
},
},
...
@@ -285,7 +285,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
...
@@ -285,7 +285,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeVersion
:
"v1.10.5"
,
KubeVersion
:
"v1.10.5"
,
KubeadmVersion
:
"v1.10.5"
,
// Note: The kubeadm version mustn't be "downgraded" here
KubeadmVersion
:
"v1.10.5"
,
// Note: The kubeadm version mustn't be "downgraded" here
DNSType
:
"coredns"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.
1.3
"
,
DNSVersion
:
"1.
2.2
"
,
EtcdVersion
:
"3.1.12"
,
EtcdVersion
:
"3.1.12"
,
},
},
},
},
...
@@ -305,7 +305,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
...
@@ -305,7 +305,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeVersion
:
"v1.11.1"
,
KubeVersion
:
"v1.11.1"
,
KubeadmVersion
:
"v1.11.1"
,
KubeadmVersion
:
"v1.11.1"
,
DNSType
:
"coredns"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.
1.3
"
,
DNSVersion
:
"1.
2.2
"
,
EtcdVersion
:
"3.2.18"
,
EtcdVersion
:
"3.2.18"
,
},
},
},
},
...
@@ -364,7 +364,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
...
@@ -364,7 +364,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeVersion
:
"v1.11.0-alpha.2"
,
KubeVersion
:
"v1.11.0-alpha.2"
,
KubeadmVersion
:
"v1.11.0-alpha.2"
,
KubeadmVersion
:
"v1.11.0-alpha.2"
,
DNSType
:
"coredns"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.
1.3
"
,
DNSVersion
:
"1.
2.2
"
,
EtcdVersion
:
"3.2.18"
,
EtcdVersion
:
"3.2.18"
,
},
},
},
},
...
@@ -404,7 +404,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
...
@@ -404,7 +404,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeVersion
:
"v1.11.0-alpha.2"
,
KubeVersion
:
"v1.11.0-alpha.2"
,
KubeadmVersion
:
"v1.11.0-alpha.2"
,
KubeadmVersion
:
"v1.11.0-alpha.2"
,
DNSType
:
"coredns"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.
1.3
"
,
DNSVersion
:
"1.
2.2
"
,
EtcdVersion
:
"3.2.18"
,
EtcdVersion
:
"3.2.18"
,
},
},
},
},
...
@@ -445,7 +445,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
...
@@ -445,7 +445,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeVersion
:
"v1.11.0-beta.1"
,
KubeVersion
:
"v1.11.0-beta.1"
,
KubeadmVersion
:
"v1.11.0-beta.1"
,
KubeadmVersion
:
"v1.11.0-beta.1"
,
DNSType
:
"coredns"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.
1.3
"
,
DNSVersion
:
"1.
2.2
"
,
EtcdVersion
:
"3.2.18"
,
EtcdVersion
:
"3.2.18"
,
},
},
},
},
...
@@ -486,7 +486,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
...
@@ -486,7 +486,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeVersion
:
"v1.11.0-rc.1"
,
KubeVersion
:
"v1.11.0-rc.1"
,
KubeadmVersion
:
"v1.11.0-rc.1"
,
KubeadmVersion
:
"v1.11.0-rc.1"
,
DNSType
:
"coredns"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.
1.3
"
,
DNSVersion
:
"1.
2.2
"
,
EtcdVersion
:
"3.2.18"
,
EtcdVersion
:
"3.2.18"
,
},
},
},
},
...
@@ -527,7 +527,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
...
@@ -527,7 +527,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeVersion
:
"v1.11.6-rc.1"
,
KubeVersion
:
"v1.11.6-rc.1"
,
KubeadmVersion
:
"v1.11.6-rc.1"
,
KubeadmVersion
:
"v1.11.6-rc.1"
,
DNSType
:
"coredns"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.
1.3
"
,
DNSVersion
:
"1.
2.2
"
,
EtcdVersion
:
"3.2.18"
,
EtcdVersion
:
"3.2.18"
,
},
},
},
},
...
@@ -568,7 +568,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
...
@@ -568,7 +568,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeVersion
:
"v1.11.0-rc.1"
,
KubeVersion
:
"v1.11.0-rc.1"
,
KubeadmVersion
:
"v1.11.0-rc.1"
,
KubeadmVersion
:
"v1.11.0-rc.1"
,
DNSType
:
"coredns"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.
1.3
"
,
DNSVersion
:
"1.
2.2
"
,
EtcdVersion
:
"3.2.18"
,
EtcdVersion
:
"3.2.18"
,
},
},
},
},
...
@@ -588,7 +588,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
...
@@ -588,7 +588,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeVersion
:
"v1.12.0-alpha.2"
,
KubeVersion
:
"v1.12.0-alpha.2"
,
KubeadmVersion
:
"v1.12.0-alpha.2"
,
KubeadmVersion
:
"v1.12.0-alpha.2"
,
DNSType
:
"coredns"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.
1.3
"
,
DNSVersion
:
"1.
2.2
"
,
EtcdVersion
:
"3.2.18"
,
EtcdVersion
:
"3.2.18"
,
},
},
},
},
...
@@ -641,7 +641,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
...
@@ -641,7 +641,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeVersion
:
"v1.12.1"
,
KubeVersion
:
"v1.12.1"
,
KubeadmVersion
:
"v1.12.1"
,
KubeadmVersion
:
"v1.12.1"
,
DNSType
:
"coredns"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.
1.3
"
,
DNSVersion
:
"1.
2.2
"
,
EtcdVersion
:
"3.2.18"
,
EtcdVersion
:
"3.2.18"
,
},
},
},
},
...
@@ -678,7 +678,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
...
@@ -678,7 +678,7 @@ func TestGetAvailableUpgrades(t *testing.T) {
KubeVersion
:
"v1.12.0"
,
KubeVersion
:
"v1.12.0"
,
KubeadmVersion
:
"v1.12.0"
,
KubeadmVersion
:
"v1.12.0"
,
DNSType
:
"coredns"
,
DNSType
:
"coredns"
,
DNSVersion
:
"1.
1.3
"
,
DNSVersion
:
"1.
2.2
"
,
EtcdVersion
:
"3.2.18"
,
EtcdVersion
:
"3.2.18"
,
},
},
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment