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
b59441f8
Commit
b59441f8
authored
Sep 10, 2015
by
derekwaynecarr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Fedora Cockpit to vagrant setup to administer/introspect kubernetes
parent
a92c8b68
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
provision-master.sh
cluster/vagrant/provision-master.sh
+13
-0
util.sh
cluster/vagrant/util.sh
+10
-2
No files found.
cluster/vagrant/provision-master.sh
View file @
b59441f8
...
...
@@ -253,6 +253,19 @@ pushd /kube-install
./kubernetes/saltbase/install.sh
"
${
server_binary_tar
##*/
}
"
popd
# Enable Fedora Cockpit on host to support Kubernetes administration
# Access it by going to <master-ip>:9090 and login as vagrant/vagrant
if
!
which /usr/libexec/cockpit-ws &>/dev/null
;
then
pushd
/etc/yum.repos.d
wget https://copr.fedoraproject.org/coprs/sgallagh/cockpit-preview/repo/fedora-21/sgallagh-cockpit-preview-fedora-21.repo
yum
install
-y
cockpit cockpit-kubernetes
popd
systemctl
enable
cockpit.socket
systemctl start cockpit.socket
fi
# we will run provision to update code each time we test, so we do not want to do salt installs each time
if
!
which salt-master &>/dev/null
;
then
...
...
cluster/vagrant/util.sh
View file @
b59441f8
...
...
@@ -260,13 +260,21 @@ function verify-cluster {
# ensures KUBECONFIG is set
get-kubeconfig-basicauth
echo
echo
"Kubernetes cluster is running. The master is running at:"
echo
"Kubernetes cluster is running."
echo
echo
"The master is running at:"
echo
echo
" https://
${
MASTER_IP
}
"
echo
echo
"Administer and visualize its resources using Cockpit:"
echo
echo
" https://
${
MASTER_IP
}
:9090"
echo
echo
"For more information on Cockpit, visit http://cockpit-project.org"
echo
echo
"The user name and password to use is located in
${
KUBECONFIG
}
"
echo
)
)
}
# Instantiate a kubernetes cluster
...
...
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