mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Add Fedora Cockpit to vagrant setup to administer/introspect kubernetes
This commit is contained in:
parent
a92c8b6886
commit
b59441f8c4
@ -253,6 +253,19 @@ pushd /kube-install
|
|||||||
./kubernetes/saltbase/install.sh "${server_binary_tar##*/}"
|
./kubernetes/saltbase/install.sh "${server_binary_tar##*/}"
|
||||||
popd
|
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
|
# 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
|
if ! which salt-master &>/dev/null; then
|
||||||
|
|
||||||
|
@ -260,13 +260,21 @@ function verify-cluster {
|
|||||||
# ensures KUBECONFIG is set
|
# ensures KUBECONFIG is set
|
||||||
get-kubeconfig-basicauth
|
get-kubeconfig-basicauth
|
||||||
echo
|
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
|
||||||
echo " https://${MASTER_IP}"
|
echo " https://${MASTER_IP}"
|
||||||
echo
|
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 "The user name and password to use is located in ${KUBECONFIG}"
|
||||||
echo
|
echo
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Instantiate a kubernetes cluster
|
# Instantiate a kubernetes cluster
|
||||||
|
Loading…
Reference in New Issue
Block a user