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
43285f87
Commit
43285f87
authored
Feb 10, 2016
by
Mike Spreitzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deploy dashboard instead of extiinct kube-ui
Updated cluster/ubuntu/deployAddons.sh to deploy the UI that exists rather than the old one that no longer exists. Resolves #20992
parent
9d776d99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
17 deletions
+15
-17
deployAddons.sh
cluster/ubuntu/deployAddons.sh
+15
-17
No files found.
cluster/ubuntu/deployAddons.sh
View file @
43285f87
...
@@ -59,22 +59,20 @@ function deploy_dns {
...
@@ -59,22 +59,20 @@ function deploy_dns {
echo
echo
}
}
function
deploy_ui
{
function
deploy_dashboard
{
echo
"Deploying Kubernetes UI..."
if
${
KUBECTL
}
get rc
-l
k8s-app
=
kubernetes-dashboard
--namespace
=
kube-system |
grep
kubernetes-dashboard-v &> /dev/null
;
then
echo
"Kubernetes Dashboard replicationController already exists"
KUBEUI
=
`
eval
"
${
KUBECTL
}
get services --namespace=kube-system | grep kube-ui | cat"
`
else
echo
"Creating Kubernetes Dashboard replicationController"
if
[
!
"
$KUBEUI
"
]
;
then
${
KUBECTL
}
create
-f
${
KUBE_ROOT
}
/cluster/addons/dashboard/dashboard-controller.yaml
# use kubectl to create kube-ui rc and service
fi
${
KUBECTL
}
--namespace
=
kube-system create
\
-f
${
KUBE_ROOT
}
/cluster/addons/kube-ui/kube-ui-rc.yaml
if
${
KUBECTL
}
get service/kubernetes-dashboard
--namespace
=
kube-system &> /dev/null
;
then
${
KUBECTL
}
--namespace
=
kube-system create
\
echo
"Kubernetes Dashboard service already exists"
-f
${
KUBE_ROOT
}
/cluster/addons/kube-ui/kube-ui-svc.yaml
else
echo
"Creating Kubernetes Dashboard service"
echo
"Kube-ui rc and service is successfully deployed."
${
KUBECTL
}
create
-f
${
KUBE_ROOT
}
/cluster/addons/dashboard/dashboard-service.yaml
else
fi
echo
"Kube-ui rc and service is already deployed. Skipping."
fi
echo
echo
}
}
...
@@ -86,6 +84,6 @@ if [ "${ENABLE_CLUSTER_DNS}" == true ]; then
...
@@ -86,6 +84,6 @@ if [ "${ENABLE_CLUSTER_DNS}" == true ]; then
fi
fi
if
[
"
${
ENABLE_CLUSTER_UI
}
"
==
true
]
;
then
if
[
"
${
ENABLE_CLUSTER_UI
}
"
==
true
]
;
then
deploy_
ui
deploy_
dashboard
fi
fi
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