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
e3207bf8
Commit
e3207bf8
authored
Oct 16, 2016
by
Lucas Käldström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: Remove --configure-cbr0 from kube-up
parent
0800df74
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1 addition
and
17 deletions
+1
-17
common.sh
cluster/common.sh
+0
-1
master-docker.yaml
cluster/gce/coreos/master-docker.yaml
+0
-1
master-rkt.yaml
cluster/gce/coreos/master-rkt.yaml
+0
-1
node-docker.yaml
cluster/gce/coreos/node-docker.yaml
+0
-1
node-rkt.yaml
cluster/gce/coreos/node-rkt.yaml
+0
-1
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+0
-3
configure-helper.sh
cluster/gce/trusty/configure-helper.sh
+0
-3
default
cluster/saltbase/salt/kubelet/default
+1
-6
No files found.
cluster/common.sh
View file @
e3207bf8
...
@@ -770,7 +770,6 @@ KUBERNETES_CONTAINER_RUNTIME: $(yaml-quote ${CONTAINER_RUNTIME:-rkt})
...
@@ -770,7 +770,6 @@ KUBERNETES_CONTAINER_RUNTIME: $(yaml-quote ${CONTAINER_RUNTIME:-rkt})
RKT_VERSION:
$(
yaml-quote
${
RKT_VERSION
:-})
RKT_VERSION:
$(
yaml-quote
${
RKT_VERSION
:-})
RKT_PATH:
$(
yaml-quote
${
RKT_PATH
:-})
RKT_PATH:
$(
yaml-quote
${
RKT_PATH
:-})
RKT_STAGE1_IMAGE:
$(
yaml-quote
${
RKT_STAGE1_IMAGE
:-})
RKT_STAGE1_IMAGE:
$(
yaml-quote
${
RKT_STAGE1_IMAGE
:-})
KUBERNETES_CONFIGURE_CBR0:
$(
yaml-quote
${
KUBERNETES_CONFIGURE_CBR0
:-
true
})
EOF
EOF
fi
fi
if
[[
"
${
ENABLE_CLUSTER_AUTOSCALER
}
"
==
"true"
]]
;
then
if
[[
"
${
ENABLE_CLUSTER_AUTOSCALER
}
"
==
"true"
]]
;
then
...
...
cluster/gce/coreos/master-docker.yaml
View file @
e3207bf8
...
@@ -122,7 +122,6 @@ coreos:
...
@@ -122,7 +122,6 @@ coreos:
--cluster-domain=${DNS_DOMAIN} \
--cluster-domain=${DNS_DOMAIN} \
--logtostderr=true \
--logtostderr=true \
--container-runtime=docker \
--container-runtime=docker \
--configure-cbr0=${KUBERNETES_CONFIGURE_CBR0} \
--pod-cidr=${MASTER_IP_RANGE} \
--pod-cidr=${MASTER_IP_RANGE} \
--register-schedulable=false \
--register-schedulable=false \
--reconcile-cidr=false
--reconcile-cidr=false
...
...
cluster/gce/coreos/master-rkt.yaml
View file @
e3207bf8
...
@@ -182,7 +182,6 @@ coreos:
...
@@ -182,7 +182,6 @@ coreos:
--container-runtime=rkt \
--container-runtime=rkt \
--rkt-path=/opt/rkt/rkt \
--rkt-path=/opt/rkt/rkt \
--rkt-stage1-image=${RKT_STAGE_IMAGE} \
--rkt-stage1-image=${RKT_STAGE_IMAGE} \
--configure-cbr0=${KUBERNETES_CONFIGURE_CBR0} \
--pod-cidr=${MASTER_IP_RANGE} \
--pod-cidr=${MASTER_IP_RANGE} \
--register-schedulable=false \
--register-schedulable=false \
--reconcile-cidr=false
--reconcile-cidr=false
...
...
cluster/gce/coreos/node-docker.yaml
View file @
e3207bf8
...
@@ -102,7 +102,6 @@ coreos:
...
@@ -102,7 +102,6 @@ coreos:
--cluster-domain=${DNS_DOMAIN} \
--cluster-domain=${DNS_DOMAIN} \
--logtostderr=true \
--logtostderr=true \
--container-runtime=docker \
--container-runtime=docker \
--configure-cbr0=${KUBERNETES_CONFIGURE_CBR0} \
--network-plugin=${NETWORK_PROVIDER} \
--network-plugin=${NETWORK_PROVIDER} \
--reconcile-cidr=true
--reconcile-cidr=true
Restart=always
Restart=always
...
...
cluster/gce/coreos/node-rkt.yaml
View file @
e3207bf8
...
@@ -148,7 +148,6 @@ coreos:
...
@@ -148,7 +148,6 @@ coreos:
--container-runtime=rkt \
--container-runtime=rkt \
--rkt-path=/opt/rkt/rkt \
--rkt-path=/opt/rkt/rkt \
--rkt-stage1-image=${RKT_STAGE1_IMAGE} \
--rkt-stage1-image=${RKT_STAGE1_IMAGE} \
--configure-cbr0=${KUBERNETES_CONFIGURE_CBR0} \
--network-plugin=kubenet \
--network-plugin=kubenet \
--reconcile-cidr=true
--reconcile-cidr=true
Restart=always
Restart=always
...
...
cluster/gce/gci/configure-helper.sh
View file @
e3207bf8
...
@@ -529,9 +529,6 @@ function start-kubelet {
...
@@ -529,9 +529,6 @@ function start-kubelet {
if
[[
-n
"
${
EVICTION_HARD
:-}
"
]]
;
then
if
[[
-n
"
${
EVICTION_HARD
:-}
"
]]
;
then
flags+
=
" --eviction-hard=
${
EVICTION_HARD
}
"
flags+
=
" --eviction-hard=
${
EVICTION_HARD
}
"
fi
fi
if
[[
"
${
ALLOCATE_NODE_CIDRS
:-}
"
==
"true"
]]
;
then
flags+
=
" --configure-cbr0=
${
ALLOCATE_NODE_CIDRS
}
"
fi
if
[[
-n
"
${
FEATURE_GATES
:-}
"
]]
;
then
if
[[
-n
"
${
FEATURE_GATES
:-}
"
]]
;
then
flags+
=
" --feature-gates=
${
FEATURE_GATES
}
"
flags+
=
" --feature-gates=
${
FEATURE_GATES
}
"
fi
fi
...
...
cluster/gce/trusty/configure-helper.sh
View file @
e3207bf8
...
@@ -176,9 +176,6 @@ assemble_kubelet_flags() {
...
@@ -176,9 +176,6 @@ assemble_kubelet_flags() {
if
[
-n
"
${
NODE_LABELS
:-}
"
]
;
then
if
[
-n
"
${
NODE_LABELS
:-}
"
]
;
then
KUBELET_CMD_FLAGS
=
"
${
KUBELET_CMD_FLAGS
}
--node-labels=
${
NODE_LABELS
}
"
KUBELET_CMD_FLAGS
=
"
${
KUBELET_CMD_FLAGS
}
--node-labels=
${
NODE_LABELS
}
"
fi
fi
if
[
"
${
ALLOCATE_NODE_CIDRS
:-}
"
=
"true"
]
;
then
KUBELET_CMD_FLAGS
=
"
${
KUBELET_CMD_FLAGS
}
--configure-cbr0=
${
ALLOCATE_NODE_CIDRS
}
"
fi
# Add the unconditional flags
# Add the unconditional flags
KUBELET_CMD_FLAGS
=
"
${
KUBELET_CMD_FLAGS
}
--cloud-provider=gce --allow-privileged=true --cgroup-root=/ --system-cgroups=/system --kubelet-cgroups=/kubelet --babysit-daemons=true --config=/etc/kubernetes/manifests --cluster-dns=
${
DNS_SERVER_IP
}
--cluster-domain=
${
DNS_DOMAIN
}
"
KUBELET_CMD_FLAGS
=
"
${
KUBELET_CMD_FLAGS
}
--cloud-provider=gce --allow-privileged=true --cgroup-root=/ --system-cgroups=/system --kubelet-cgroups=/kubelet --babysit-daemons=true --config=/etc/kubernetes/manifests --cluster-dns=
${
DNS_SERVER_IP
}
--cluster-domain=
${
DNS_DOMAIN
}
"
echo
"KUBELET_OPTS=
\"
${
KUBELET_CMD_FLAGS
}
\"
"
>
/etc/default/kubelet
echo
"KUBELET_OPTS=
\"
${
KUBELET_CMD_FLAGS
}
\"
"
>
/etc/default/kubelet
...
...
cluster/saltbase/salt/kubelet/default
View file @
e3207bf8
...
@@ -87,11 +87,6 @@
...
@@ -87,11 +87,6 @@
{% set kubelet_root = " --root-dir=" + grains.kubelet_root -%}
{% set kubelet_root = " --root-dir=" + grains.kubelet_root -%}
{% endif -%}
{% endif -%}
{% set configure_cbr0 = "" -%}
{% if pillar['allocate_node_cidrs'] is defined -%}
{% set configure_cbr0 = "--configure-cbr0=" + pillar['allocate_node_cidrs'] -%}
{% endif -%}
{% set non_masquerade_cidr = "" -%}
{% set non_masquerade_cidr = "" -%}
{% if pillar.get('non_masquerade_cidr','') -%}
{% if pillar.get('non_masquerade_cidr','') -%}
{% set non_masquerade_cidr = "--non-masquerade-cidr=" + pillar.non_masquerade_cidr -%}
{% set non_masquerade_cidr = "--non-masquerade-cidr=" + pillar.non_masquerade_cidr -%}
...
@@ -199,4 +194,4 @@
...
@@ -199,4 +194,4 @@
{% endif -%}
{% endif -%}
# test_args has to be kept at the end, so they'll overwrite any prior configuration
# test_args has to be kept at the end, so they'll overwrite any prior configuration
DAEMON_ARGS="{{daemon_args}} {{api_servers_with_port}} {{debugging_handlers}} {{hostname_override}} {{cloud_provider}} {{cloud_config}} {{config}} {{manifest_url}} --allow-privileged={{pillar['allow_privileged']}} {{log_level}} {{cluster_dns}} {{cluster_domain}} {{docker_root}} {{kubelet_root}}
{{configure_cbr0}}
{{non_masquerade_cidr}} {{cgroup_root}} {{system_container}} {{pod_cidr}} {{ master_kubelet_args }} {{cpu_cfs_quota}} {{network_plugin}} {{kubelet_port}} {{ reconcile_cidr_args }} {{ hairpin_mode }} {{enable_custom_metrics}} {{runtime_container}} {{kubelet_container}} {{node_labels}} {{babysit_daemons}} {{eviction_hard}} {{feature_gates}} {{test_args}}"
DAEMON_ARGS="{{daemon_args}} {{api_servers_with_port}} {{debugging_handlers}} {{hostname_override}} {{cloud_provider}} {{cloud_config}} {{config}} {{manifest_url}} --allow-privileged={{pillar['allow_privileged']}} {{log_level}} {{cluster_dns}} {{cluster_domain}} {{docker_root}} {{kubelet_root}} {{non_masquerade_cidr}} {{cgroup_root}} {{system_container}} {{pod_cidr}} {{ master_kubelet_args }} {{cpu_cfs_quota}} {{network_plugin}} {{kubelet_port}} {{ reconcile_cidr_args }} {{ hairpin_mode }} {{enable_custom_metrics}} {{runtime_container}} {{kubelet_container}} {{node_labels}} {{babysit_daemons}} {{eviction_hard}} {{feature_gates}} {{test_args}}"
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