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
d6e0aede
Commit
d6e0aede
authored
May 22, 2015
by
CJ Cullen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-add the cluster_name flag that the ServiceController and RouteController need.
parent
4cad3b56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
kube-controller-manager.manifest
.../kube-controller-manager/kube-controller-manager.manifest
+4
-1
controllermanager.go
cmd/kube-controller-manager/app/controllermanager.go
+1
-0
No files found.
cluster/saltbase/salt/kube-controller-manager/kube-controller-manager.manifest
View file @
d6e0aede
...
...
@@ -8,6 +8,9 @@
{% if pillar['node_instance_prefix'] is defined -%}
{% set minion_regexp = "--minion_regexp='" + pillar['node_instance_prefix'] + ".*'" -%}
{% endif -%}
{% if pillar['instance_prefix'] is defined -%}
{% set cluster_name = "--cluster_name=" + pillar['instance_prefix'] -%}
{% endif -%}
{% if pillar['cluster_cidr'] is defined and pillar['cluster_cidr'] != "" -%}
{% set cluster_cidr = "--cluster-cidr=" + pillar['cluster_cidr'] -%}
{% endif -%}
...
...
@@ -54,7 +57,7 @@
{% endif -%}
{% endif -%}
{% set params = "--master=127.0.0.1:8080" + " " + machines + " " + " " + cluster_cidr + " " + allocate_node_cidrs + " " + minion_regexp + " " + cloud_provider + " " + sync_nodes + " " + cloud_config + service_account_key + pillar['log_level'] -%}
{% set params = "--master=127.0.0.1:8080" + " " + machines + " " +
cluster_name +
" " + cluster_cidr + " " + allocate_node_cidrs + " " + minion_regexp + " " + cloud_provider + " " + sync_nodes + " " + cloud_config + service_account_key + pillar['log_level'] -%}
{
"apiVersion": "v1beta3",
...
...
cmd/kube-controller-manager/app/controllermanager.go
View file @
d6e0aede
...
...
@@ -148,6 +148,7 @@ func (s *CMServer) AddFlags(fs *pflag.FlagSet) {
fs
.
Int64Var
(
&
s
.
NodeMilliCPU
,
"node-milli-cpu"
,
s
.
NodeMilliCPU
,
"The amount of MilliCPU provisioned on each node"
)
fs
.
Var
(
resource
.
NewQuantityFlagValue
(
&
s
.
NodeMemory
),
"node-memory"
,
"The amount of memory (in bytes) provisioned on each node"
)
fs
.
BoolVar
(
&
s
.
EnableProfiling
,
"profiling"
,
true
,
"Enable profiling via web interface host:port/debug/pprof/"
)
fs
.
StringVar
(
&
s
.
ClusterName
,
"cluster-name"
,
s
.
ClusterName
,
"The instance prefix for the cluster"
)
fs
.
Var
(
&
s
.
ClusterCIDR
,
"cluster-cidr"
,
"CIDR Range for Pods in cluster."
)
fs
.
BoolVar
(
&
s
.
AllocateNodeCIDRs
,
"allocate-node-cidrs"
,
false
,
"Should CIDRs for Pods be allocated and set on the cloud provider."
)
fs
.
StringVar
(
&
s
.
Master
,
"master"
,
s
.
Master
,
"The address of the Kubernetes API server (overrides any value in kubeconfig)"
)
...
...
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