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
fe3a0d29
Commit
fe3a0d29
authored
Nov 09, 2016
by
Zihong Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed kube-dns-autoscaler's target to Deployment/kube-dns
parent
e8c66d4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
dns-horizontal-autoscaler.yaml
.../dns-horizontal-autoscaler/dns-horizontal-autoscaler.yaml
+1
-1
dns_autoscaling.go
test/e2e/dns_autoscaling.go
+4
-4
No files found.
cluster/addons/dns-horizontal-autoscaler/dns-horizontal-autoscaler.yaml
View file @
fe3a0d29
...
...
@@ -42,7 +42,7 @@ spec:
-
--configmap=kube-dns-autoscaler
-
--mode=linear
# Should keep target in sync with cluster/addons/dns/skydns-rc.yaml.base
-
--target=
ReplicationController/kube-dns-v20
-
--target=
Deployment/kube-dns
# When cluster is using large nodes(with more cores), "coresPerReplica" should dominate.
# If using small nodes, "nodesPerReplica" should dominate.
-
--default-params={"linear":{"coresPerReplica":256,"nodesPerReplica":16,"min":1}}
...
...
test/e2e/dns_autoscaling.go
View file @
fe3a0d29
...
...
@@ -180,14 +180,14 @@ func updateDNSScalingConfigMap(c clientset.Interface, configMap *api.ConfigMap)
func
getDNSReplicas
(
c
clientset
.
Interface
)
(
int
,
error
)
{
label
:=
labels
.
SelectorFromSet
(
labels
.
Set
(
map
[
string
]
string
{
ClusterAddonLabelKey
:
KubeDNSLabelName
}))
listOpts
:=
api
.
ListOptions
{
LabelSelector
:
label
}
rcs
,
err
:=
c
.
Core
()
.
ReplicationController
s
(
DNSNamespace
)
.
List
(
listOpts
)
deployments
,
err
:=
c
.
Extensions
()
.
Deployment
s
(
DNSNamespace
)
.
List
(
listOpts
)
if
err
!=
nil
{
return
0
,
err
}
Expect
(
len
(
rc
s
.
Items
))
.
Should
(
Equal
(
1
))
Expect
(
len
(
deployment
s
.
Items
))
.
Should
(
Equal
(
1
))
rc
:=
rc
s
.
Items
[
0
]
return
int
(
rc
.
Spec
.
Replicas
),
nil
deployment
:=
deployment
s
.
Items
[
0
]
return
int
(
deployment
.
Spec
.
Replicas
),
nil
}
func
deleteDNSAutoscalerPod
(
c
clientset
.
Interface
)
error
{
...
...
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