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
12d4eac0
Commit
12d4eac0
authored
Feb 07, 2018
by
Rohit Ramkumar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a new environment variable to the startup scripts called
KUBE_PROXY_MODE
parent
ffda1e22
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
1 deletion
+8
-1
common.sh
cluster/common.sh
+1
-0
config-test.sh
cluster/gce/config-test.sh
+3
-0
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+3
-0
local-up-cluster.sh
hack/local-up-cluster.sh
+1
-1
No files found.
cluster/common.sh
View file @
12d4eac0
...
@@ -523,6 +523,7 @@ DNS_DOMAIN: $(yaml-quote ${DNS_DOMAIN:-})
...
@@ -523,6 +523,7 @@ 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
})
KUBE_PROXY_DAEMONSET:
$(
yaml-quote
${
KUBE_PROXY_DAEMONSET
:-
false
})
KUBE_PROXY_DAEMONSET:
$(
yaml-quote
${
KUBE_PROXY_DAEMONSET
:-
false
})
KUBE_PROXY_TOKEN:
$(
yaml-quote
${
KUBE_PROXY_TOKEN
:-})
KUBE_PROXY_TOKEN:
$(
yaml-quote
${
KUBE_PROXY_TOKEN
:-})
KUBE_PROXY_MODE:
$(
yaml-quote
${
KUBE_PROXY_MODE
:-
iptables
})
NODE_PROBLEM_DETECTOR_TOKEN:
$(
yaml-quote
${
NODE_PROBLEM_DETECTOR_TOKEN
:-})
NODE_PROBLEM_DETECTOR_TOKEN:
$(
yaml-quote
${
NODE_PROBLEM_DETECTOR_TOKEN
:-})
ADMISSION_CONTROL:
$(
yaml-quote
${
ADMISSION_CONTROL
:-})
ADMISSION_CONTROL:
$(
yaml-quote
${
ADMISSION_CONTROL
:-})
ENABLE_POD_SECURITY_POLICY:
$(
yaml-quote
${
ENABLE_POD_SECURITY_POLICY
:-})
ENABLE_POD_SECURITY_POLICY:
$(
yaml-quote
${
ENABLE_POD_SECURITY_POLICY
:-})
...
...
cluster/gce/config-test.sh
View file @
12d4eac0
...
@@ -410,6 +410,9 @@ ENABLE_PROMETHEUS_TO_SD="${ENABLE_PROMETHEUS_TO_SD:-true}"
...
@@ -410,6 +410,9 @@ ENABLE_PROMETHEUS_TO_SD="${ENABLE_PROMETHEUS_TO_SD:-true}"
# Optional: [Experiment Only] Run kube-proxy as a DaemonSet if set to true, run as static pods otherwise.
# Optional: [Experiment Only] Run kube-proxy as a DaemonSet if set to true, run as static pods otherwise.
KUBE_PROXY_DAEMONSET
=
"
${
KUBE_PROXY_DAEMONSET
:-
false
}
"
# true, false
KUBE_PROXY_DAEMONSET
=
"
${
KUBE_PROXY_DAEMONSET
:-
false
}
"
# true, false
# Optional: Change the kube-proxy implementation. Choices are [iptables, ipvs].
KUBE_PROXY_MODE
=
"
${
KUBE_PROXY_MODE
:-
iptables
}
"
# Optional: duration of cluster signed certificates.
# Optional: duration of cluster signed certificates.
CLUSTER_SIGNING_DURATION
=
"
${
CLUSTER_SIGNING_DURATION
:-}
"
CLUSTER_SIGNING_DURATION
=
"
${
CLUSTER_SIGNING_DURATION
:-}
"
...
...
cluster/gce/gci/configure-helper.sh
View file @
12d4eac0
...
@@ -1298,6 +1298,9 @@ function prepare-kube-proxy-manifest-variables {
...
@@ -1298,6 +1298,9 @@ function prepare-kube-proxy-manifest-variables {
if
[[
-n
"
${
FEATURE_GATES
:-}
"
]]
;
then
if
[[
-n
"
${
FEATURE_GATES
:-}
"
]]
;
then
params+
=
" --feature-gates=
${
FEATURE_GATES
}
"
params+
=
" --feature-gates=
${
FEATURE_GATES
}
"
fi
fi
if
[[
"
${
KUBE_PROXY_MODE
:-}
"
==
"ipvs"
]]
;
then
params+
=
" --proxy-mode=ipvs --feature-gates=SupportIPVSProxyMode=true"
fi
params+
=
" --iptables-sync-period=1m --iptables-min-sync-period=10s --ipvs-sync-period=1m --ipvs-min-sync-period=10s"
params+
=
" --iptables-sync-period=1m --iptables-min-sync-period=10s --ipvs-sync-period=1m --ipvs-min-sync-period=10s"
if
[[
-n
"
${
KUBEPROXY_TEST_ARGS
:-}
"
]]
;
then
if
[[
-n
"
${
KUBEPROXY_TEST_ARGS
:-}
"
]]
;
then
params+
=
"
${
KUBEPROXY_TEST_ARGS
}
"
params+
=
"
${
KUBEPROXY_TEST_ARGS
}
"
...
...
hack/local-up-cluster.sh
View file @
12d4eac0
...
@@ -57,7 +57,7 @@ EVICTION_PRESSURE_TRANSITION_PERIOD=${EVICTION_PRESSURE_TRANSITION_PERIOD:-"1m"}
...
@@ -57,7 +57,7 @@ EVICTION_PRESSURE_TRANSITION_PERIOD=${EVICTION_PRESSURE_TRANSITION_PERIOD:-"1m"}
# and we don't know the IP of the DNS pod to pass in as --cluster-dns.
# and we don't know the IP of the DNS pod to pass in as --cluster-dns.
# To set this up by hand, set this flag and change DNS_SERVER_IP.
# To set this up by hand, set this flag and change DNS_SERVER_IP.
# Note also that you need API_HOST (defined above) for correct DNS.
# Note also that you need API_HOST (defined above) for correct DNS.
KUBE
PROXY_MODE
=
${
KUBE
PROXY_MODE
:-
""
}
KUBE
_PROXY_MODE
=
${
KUBE_
PROXY_MODE
:-
""
}
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_NAME
:-
"cluster.local"
}
DNS_DOMAIN
=
${
KUBE_DNS_NAME
:-
"cluster.local"
}
...
...
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