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
ab681232
Commit
ab681232
authored
Apr 10, 2017
by
Derek Carr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optionally deploy kubernetes dashboard in local-up cluster
parent
3f941ac1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
local-up-cluster.sh
hack/local-up-cluster.sh
+14
-0
No files found.
hack/local-up-cluster.sh
View file @
ab681232
...
@@ -66,6 +66,9 @@ STORAGE_BACKEND=${STORAGE_BACKEND:-"etcd3"}
...
@@ -66,6 +66,9 @@ STORAGE_BACKEND=${STORAGE_BACKEND:-"etcd3"}
# enable swagger ui
# enable swagger ui
ENABLE_SWAGGER_UI
=
${
ENABLE_SWAGGER_UI
:-
false
}
ENABLE_SWAGGER_UI
=
${
ENABLE_SWAGGER_UI
:-
false
}
# enable kubernetes dashboard
ENABLE_CLUSTER_DASHBOARD
=
${
KUBE_ENABLE_CLUSTER_DASHBOARD
:-
false
}
# enable audit log
# enable audit log
ENABLE_APISERVER_BASIC_AUDIT
=
${
ENABLE_APISERVER_BASIC_AUDIT
:-
false
}
ENABLE_APISERVER_BASIC_AUDIT
=
${
ENABLE_APISERVER_BASIC_AUDIT
:-
false
}
...
@@ -714,6 +717,16 @@ function start_kubedns {
...
@@ -714,6 +717,16 @@ function start_kubedns {
fi
fi
}
}
function
start_kubedashboard
{
if
[[
"
${
ENABLE_CLUSTER_DASHBOARD
}
"
=
true
]]
;
then
echo
"Creating kubernetes-dashboard"
# use kubectl to create the dashboard
${
KUBECTL
}
--kubeconfig
=
"
${
CERT_DIR
}
/admin.kubeconfig"
create
-f
${
KUBE_ROOT
}
/cluster/addons/dashboard/dashboard-controller.yaml
${
KUBECTL
}
--kubeconfig
=
"
${
CERT_DIR
}
/admin.kubeconfig"
create
-f
${
KUBE_ROOT
}
/cluster/addons/dashboard/dashboard-service.yaml
echo
"kubernetes-dashboard deployment and service successfully deployed."
fi
}
function
create_psp_policy
{
function
create_psp_policy
{
echo
"Create podsecuritypolicy policies for RBAC."
echo
"Create podsecuritypolicy policies for RBAC."
${
KUBECTL
}
--kubeconfig
=
"
${
CERT_DIR
}
/admin.kubeconfig"
create
-f
${
KUBE_ROOT
}
/examples/podsecuritypolicy/rbac/policies.yaml
${
KUBECTL
}
--kubeconfig
=
"
${
CERT_DIR
}
/admin.kubeconfig"
create
-f
${
KUBE_ROOT
}
/examples/podsecuritypolicy/rbac/policies.yaml
...
@@ -826,6 +839,7 @@ if [[ "${START_MODE}" != "kubeletonly" ]]; then
...
@@ -826,6 +839,7 @@ if [[ "${START_MODE}" != "kubeletonly" ]]; then
start_controller_manager
start_controller_manager
start_kubeproxy
start_kubeproxy
start_kubedns
start_kubedns
start_kubedashboard
fi
fi
if
[[
"
${
START_MODE
}
"
!=
"nokubelet"
]]
;
then
if
[[
"
${
START_MODE
}
"
!=
"nokubelet"
]]
;
then
...
...
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