Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions shpod.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/sh
# For more information about shpod, check it out on GitHub:
# https://github.com/bretfisher/shpod
if [ -f shpod.yaml ]; then
YAML=shpod.yaml
else
YAML=https://k8smastery.com/shpod.yaml
fi
YAML=https://k8smastery.com/shpod.yaml
for location in "/etc" "$HOME/.shpod" `pwd` ; do
if [ -f "$location/shpod.yaml" ]; then
YAML="$location/shpod.yaml"
fi
done
if [ "$(kubectl get pod --namespace=shpod shpod --ignore-not-found -o jsonpath={.status.phase})" = "Running" ]; then
echo "Shpod is already running. Starting a new shell with 'kubectl exec'."
echo "(Note: if the main invocation of shpod exits, all others will be terminated.)"
Expand Down