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
dffac87c
Commit
dffac87c
authored
Oct 03, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Oct 03, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #33501 from bprashanth/feature_gate
Automatic merge from submit-queue Enable alpha features in local-up-cluster because why not
parents
a241daf3
076e283b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
local-up-cluster.sh
hack/local-up-cluster.sh
+10
-4
No files found.
hack/local-up-cluster.sh
View file @
dffac87c
...
...
@@ -42,6 +42,8 @@ ENABLE_DAEMON=${ENABLE_DAEMON:-false}
HOSTNAME_OVERRIDE
=
${
HOSTNAME_OVERRIDE
:-
"127.0.0.1"
}
CLOUD_PROVIDER
=
${
CLOUD_PROVIDER
:-
""
}
CLOUD_CONFIG
=
${
CLOUD_CONFIG
:-
""
}
FEATURE_GATES
=
${
FEATURE_GATES
:-
"AllAlpha=true"
}
# START_MODE can be 'all', 'kubeletonly', or 'nokubelet'
START_MODE
=
${
START_MODE
:-
"all"
}
...
...
@@ -313,6 +315,7 @@ function start_apiserver {
--insecure-port
=
"
${
API_PORT
}
"
\
--etcd-servers
=
"http://
${
ETCD_HOST
}
:
${
ETCD_PORT
}
"
\
--service-cluster-ip-range
=
"
${
SERVICE_CLUSTER_IP_RANGE
}
"
\
--feature-gates
=
"
${
FEATURE_GATES
}
"
\
--cloud-provider
=
"
${
CLOUD_PROVIDER
}
"
\
--cloud-config
=
"
${
CLOUD_CONFIG
}
"
\
--cors-allowed-origins
=
"
${
API_CORS_ALLOWED_ORIGINS
}
"
>
"
${
APISERVER_LOG
}
"
2>&1 &
...
...
@@ -337,6 +340,7 @@ function start_controller_manager {
--enable-hostpath-provisioner
=
"
${
ENABLE_HOSTPATH_PROVISIONER
}
"
\
${
node_cidr_args
}
\
--pvclaimbinder-sync-period
=
"
${
CLAIM_BINDER_SYNC_PERIOD
}
"
\
--feature-gates
=
"
${
FEATURE_GATES
}
"
\
--cloud-provider
=
"
${
CLOUD_PROVIDER
}
"
\
--cloud-config
=
"
${
CLOUD_CONFIG
}
"
\
--master
=
"
${
API_HOST
}
:
${
API_PORT
}
"
>
"
${
CTLRMGR_LOG
}
"
2>&1 &
...
...
@@ -379,7 +383,7 @@ function start_kubelet {
if
[[
-n
"
${
NET_PLUGIN
}
"
]]
;
then
net_plugin_args
=
"--network-plugin=
${
NET_PLUGIN
}
"
fi
net_plugin_dir_args
=
""
if
[[
-n
"
${
NET_PLUGIN_DIR
}
"
]]
;
then
net_plugin_dir_args
=
"--network-plugin-dir=
${
NET_PLUGIN_DIR
}
"
...
...
@@ -411,6 +415,7 @@ function start_kubelet {
--cloud-config
=
"
${
CLOUD_CONFIG
}
"
\
--address
=
"
${
KUBELET_HOST
}
"
\
--api-servers
=
"
${
API_HOST
}
:
${
API_PORT
}
"
\
--feature-gates
=
"
${
FEATURE_GATES
}
"
\
--cpu-cfs-quota
=
${
CPU_CFS_QUOTA
}
\
--enable-controller-attach-detach
=
"
${
ENABLE_CONTROLLER_ATTACH_DETACH
}
"
\
${
dns_args
}
\
...
...
@@ -427,7 +432,7 @@ function start_kubelet {
# dockerized kubelet that might be running.
cleanup_dockerized_kubelet
cred_bind
=
""
# path to cloud credentails.
# path to cloud credentails.
cloud_cred
=
""
if
[
"
${
CLOUD_PROVIDER
}
"
==
"aws"
]
;
then
cloud_cred
=
"
${
HOME
}
/.aws/credentials"
...
...
@@ -464,6 +469,7 @@ function start_kubeproxy {
sudo
-E
"
${
GO_OUT
}
/hyperkube"
proxy
\
--v
=
${
LOG_LEVEL
}
\
--hostname-override
=
"
${
HOSTNAME_OVERRIDE
}
"
\
--feature-gates
=
"
${
FEATURE_GATES
}
"
\
--master
=
"http://
${
API_HOST
}
:
${
API_PORT
}
"
>
"
${
PROXY_LOG
}
"
2>&1 &
PROXY_PID
=
$!
...
...
@@ -545,7 +551,7 @@ To start using your cluster, open up another terminal/tab and run:
cluster/kubectl.sh config use-context local
cluster/kubectl.sh
EOF
else
else
cat
<<
EOF
The kubelet was started.
...
...
@@ -586,7 +592,7 @@ fi
if
[[
"
${
START_MODE
}
"
!=
"nokubelet"
]]
;
then
start_kubelet
fi
fi
print_success
...
...
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