Kubernetes on podman wih kind without terraform.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
887 B

#!/usr/bin/env bash
ask()
{
argument=$*
USER_ANSWER="?";
while [ "${USER_ANSWER}" != "n" ] && [ "${USER_ANSWER}" != "y" ] && [ "${USER_ANSWER}" != "q" ]
do
echo -ne "\E[31;40m\033[1mExecute $* ?\033[0m [y/n/q]"
read -r -n 1 USER_ANSWER
echo "";
done
if [ "$USER_ANSWER" == "y" ]
then
eval "${argument}"
elif [ "$USER_ANSWER" == "n" ]
then
echo "disabled"
elif [ "$USER_ANSWER" == "q" ]
then
exit 0
else
echo "Response error"
exit 1
fi
}
# shellcheck source=/dev/null
source ./env.sh
ask systemctl --user status podman.service
ask podman ps
ask podman ps -a
ask podman images
ask podman network ls
ask kind get clusters
ask kubectl cluster-info --context kind-kubosm
ask kubectl get namespaces
ask kubectl get nodes
ask kubectl get deployments
ask kubectl get services