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
0cfb4bbe
Commit
0cfb4bbe
authored
Oct 16, 2018
by
Chris O'Haver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make coredns kubeup default, update manifest
parent
151830e4
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
47 additions
and
23 deletions
+47
-23
coredns.yaml.base
cluster/addons/dns/coredns/coredns.yaml.base
+7
-1
coredns.yaml.in
cluster/addons/dns/coredns/coredns.yaml.in
+7
-1
coredns.yaml.sed
cluster/addons/dns/coredns/coredns.yaml.sed
+7
-1
config-default.sh
cluster/gce/config-default.sh
+2
-2
config-test.sh
cluster/gce/config-test.sh
+2
-2
util.sh
cluster/gce/util.sh
+1
-1
constants.go
cmd/kubeadm/app/constants/constants.go
+1
-1
manifests.go
cmd/kubeadm/app/phases/addons/dns/manifests.go
+6
-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 @
0cfb4bbe
...
@@ -27,6 +27,12 @@ rules:
...
@@ -27,6 +27,12 @@ rules:
verbs:
verbs:
- list
- list
- watch
- watch
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
---
---
apiVersion: rbac.authorization.k8s.io/v1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
kind: ClusterRoleBinding
...
@@ -108,7 +114,7 @@ spec:
...
@@ -108,7 +114,7 @@ spec:
operator: "Exists"
operator: "Exists"
containers:
containers:
- name: coredns
- name: coredns
image: k8s.gcr.io/coredns:1.2.
2
image: k8s.gcr.io/coredns:1.2.
4
imagePullPolicy: IfNotPresent
imagePullPolicy: IfNotPresent
resources:
resources:
limits:
limits:
...
...
cluster/addons/dns/coredns/coredns.yaml.in
View file @
0cfb4bbe
...
@@ -27,6 +27,12 @@ rules:
...
@@ -27,6 +27,12 @@ rules:
verbs:
verbs:
- list
- list
- watch
- watch
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
---
---
apiVersion: rbac.authorization.k8s.io/v1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
kind: ClusterRoleBinding
...
@@ -108,7 +114,7 @@ spec:
...
@@ -108,7 +114,7 @@ spec:
operator: "Exists"
operator: "Exists"
containers:
containers:
- name: coredns
- name: coredns
image: k8s.gcr.io/coredns:1.2.
2
image: k8s.gcr.io/coredns:1.2.
4
imagePullPolicy: IfNotPresent
imagePullPolicy: IfNotPresent
resources:
resources:
limits:
limits:
...
...
cluster/addons/dns/coredns/coredns.yaml.sed
View file @
0cfb4bbe
...
@@ -27,6 +27,12 @@ rules:
...
@@ -27,6 +27,12 @@ rules:
verbs:
verbs:
- list
- list
- watch
- watch
- a
p
iGrou
p
s
:
- ""
resources
:
- nodes
verbs
:
-
g
e
t
---
---
a
piVersion: rbac.authorization.k8s.io/v1
a
piVersion: rbac.authorization.k8s.io/v1
k
i
nd: ClusterRoleBinding
k
i
nd: ClusterRoleBinding
...
@@ -108,7 +114,7 @@ spec:
...
@@ -108,7 +114,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.2.
2
i
mage: k8s.gcr.io/coredns:1.2.
4
i
magePullPolicy: IfNotPresent
i
magePullPolicy: IfNotPresent
re
s
o
urces:
re
s
o
urces:
limits:
limits:
...
...
cluster/gce/config-default.sh
View file @
0cfb4bbe
...
@@ -261,8 +261,8 @@ if [[ ! -z "${NODE_ACCELERATORS}" ]]; then
...
@@ -261,8 +261,8 @@ if [[ ! -z "${NODE_ACCELERATORS}" ]]; then
fi
fi
# Optional: Install cluster DNS.
# Optional: Install cluster DNS.
# Set CLUSTER_DNS_CORE_DNS to '
true' to install CoreDNS instead of kube-dns
.
# Set CLUSTER_DNS_CORE_DNS to '
false' to install kube-dns instead of CoreDNS
.
CLUSTER_DNS_CORE_DNS
=
"
${
CLUSTER_DNS_CORE_DNS
:-
fals
e
}
"
CLUSTER_DNS_CORE_DNS
=
"
${
CLUSTER_DNS_CORE_DNS
:-
tru
e
}
"
ENABLE_CLUSTER_DNS
=
"
${
KUBE_ENABLE_CLUSTER_DNS
:-
true
}
"
ENABLE_CLUSTER_DNS
=
"
${
KUBE_ENABLE_CLUSTER_DNS
:-
true
}
"
DNS_SERVER_IP
=
"
${
KUBE_DNS_SERVER_IP
:-
10
.0.0.10
}
"
DNS_SERVER_IP
=
"
${
KUBE_DNS_SERVER_IP
:-
10
.0.0.10
}
"
DNS_DOMAIN
=
"
${
KUBE_DNS_DOMAIN
:-
cluster
.local
}
"
DNS_DOMAIN
=
"
${
KUBE_DNS_DOMAIN
:-
cluster
.local
}
"
...
...
cluster/gce/config-test.sh
View file @
0cfb4bbe
...
@@ -268,8 +268,8 @@ if [[ ! -z "${NODE_ACCELERATORS}" ]]; then
...
@@ -268,8 +268,8 @@ if [[ ! -z "${NODE_ACCELERATORS}" ]]; then
fi
fi
# Optional: Install cluster DNS.
# Optional: Install cluster DNS.
# Set CLUSTER_DNS_CORE_DNS to '
true' to install CoreDNS instead of kube-dns
.
# Set CLUSTER_DNS_CORE_DNS to '
false' to install kube-dns instead of CoreDNS
.
CLUSTER_DNS_CORE_DNS
=
"
${
CLUSTER_DNS_CORE_DNS
:-
fals
e
}
"
CLUSTER_DNS_CORE_DNS
=
"
${
CLUSTER_DNS_CORE_DNS
:-
tru
e
}
"
ENABLE_CLUSTER_DNS
=
"
${
KUBE_ENABLE_CLUSTER_DNS
:-
true
}
"
ENABLE_CLUSTER_DNS
=
"
${
KUBE_ENABLE_CLUSTER_DNS
:-
true
}
"
DNS_SERVER_IP
=
"10.0.0.10"
DNS_SERVER_IP
=
"10.0.0.10"
DNS_DOMAIN
=
"cluster.local"
DNS_DOMAIN
=
"cluster.local"
...
...
cluster/gce/util.sh
View file @
0cfb4bbe
...
@@ -847,7 +847,7 @@ ENABLE_NODE_LOGGING: $(yaml-quote ${ENABLE_NODE_LOGGING:-false})
...
@@ -847,7 +847,7 @@ ENABLE_NODE_LOGGING: $(yaml-quote ${ENABLE_NODE_LOGGING:-false})
LOGGING_DESTINATION:
$(
yaml-quote
${
LOGGING_DESTINATION
:-})
LOGGING_DESTINATION:
$(
yaml-quote
${
LOGGING_DESTINATION
:-})
ELASTICSEARCH_LOGGING_REPLICAS:
$(
yaml-quote
${
ELASTICSEARCH_LOGGING_REPLICAS
:-})
ELASTICSEARCH_LOGGING_REPLICAS:
$(
yaml-quote
${
ELASTICSEARCH_LOGGING_REPLICAS
:-})
ENABLE_CLUSTER_DNS:
$(
yaml-quote
${
ENABLE_CLUSTER_DNS
:-
false
})
ENABLE_CLUSTER_DNS:
$(
yaml-quote
${
ENABLE_CLUSTER_DNS
:-
false
})
CLUSTER_DNS_CORE_DNS:
$(
yaml-quote
${
CLUSTER_DNS_CORE_DNS
:-
fals
e
})
CLUSTER_DNS_CORE_DNS:
$(
yaml-quote
${
CLUSTER_DNS_CORE_DNS
:-
tru
e
})
DNS_SERVER_IP:
$(
yaml-quote
${
DNS_SERVER_IP
:-})
DNS_SERVER_IP:
$(
yaml-quote
${
DNS_SERVER_IP
:-})
DNS_DOMAIN:
$(
yaml-quote
${
DNS_DOMAIN
:-})
DNS_DOMAIN:
$(
yaml-quote
${
DNS_DOMAIN
:-})
ENABLE_DNS_HORIZONTAL_AUTOSCALER:
$(
yaml-quote
${
ENABLE_DNS_HORIZONTAL_AUTOSCALER
:-
false
})
ENABLE_DNS_HORIZONTAL_AUTOSCALER:
$(
yaml-quote
${
ENABLE_DNS_HORIZONTAL_AUTOSCALER
:-
false
})
...
...
cmd/kubeadm/app/constants/constants.go
View file @
0cfb4bbe
...
@@ -306,7 +306,7 @@ const (
...
@@ -306,7 +306,7 @@ const (
KubeDNSVersion
=
"1.14.13"
KubeDNSVersion
=
"1.14.13"
// 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.2.
2
"
CoreDNSVersion
=
"1.2.
4
"
// 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/manifests.go
View file @
0cfb4bbe
...
@@ -331,6 +331,12 @@ rules:
...
@@ -331,6 +331,12 @@ rules:
verbs:
verbs:
- list
- list
- watch
- watch
- apiGroups:
- ""
resources:
- nodes
verbs:
- get
`
`
// CoreDNSClusterRoleBinding is the CoreDNS Clusterrolebinding manifest
// CoreDNSClusterRoleBinding is the CoreDNS Clusterrolebinding manifest
CoreDNSClusterRoleBinding
=
`
CoreDNSClusterRoleBinding
=
`
...
...
cmd/kubeadm/app/phases/upgrade/compute_test.go
View file @
0cfb4bbe
...
@@ -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.2.
2
"
,
DNSVersion
:
"1.2.
4
"
,
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.2.
2
"
,
DNSVersion
:
"1.2.
4
"
,
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.2.
2
"
,
DNSVersion
:
"1.2.
4
"
,
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.2.
2
"
,
DNSVersion
:
"1.2.
4
"
,
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.2.
2
"
,
DNSVersion
:
"1.2.
4
"
,
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.2.
2
"
,
DNSVersion
:
"1.2.
4
"
,
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.2.
2
"
,
DNSVersion
:
"1.2.
4
"
,
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.2.
2
"
,
DNSVersion
:
"1.2.
4
"
,
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.2.
2
"
,
DNSVersion
:
"1.2.
4
"
,
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.2.
2
"
,
DNSVersion
:
"1.2.
4
"
,
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.2.
2
"
,
DNSVersion
:
"1.2.
4
"
,
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.2.
2
"
,
DNSVersion
:
"1.2.
4
"
,
EtcdVersion
:
"3.2.24"
,
EtcdVersion
:
"3.2.24"
,
},
},
},
},
...
@@ -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.2.
2
"
,
DNSVersion
:
"1.2.
4
"
,
EtcdVersion
:
"3.2.24"
,
EtcdVersion
:
"3.2.24"
,
},
},
},
},
...
@@ -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.2.
2
"
,
DNSVersion
:
"1.2.
4
"
,
EtcdVersion
:
"3.2.24"
,
EtcdVersion
:
"3.2.24"
,
},
},
},
},
...
...
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