If you don't know anything about JSON, please, spend some time on learning JSON structure.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Receives your Windows username as only parameter. | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/linux/amd64/kubectl | |
chmod +x ./kubectl | |
sudo mv ./kubectl /usr/local/bin/kubectl | |
windowsUser=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# shellcheck disable=SC2162 | |
# shellcheck disable=SC2086 | |
#----------- Setup Mapi Start --------------# | |
echo "Checking if mapi exists" | |
if ! command -v mapi $> /dev/null | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Preparing key Variables" | |
export WORKDIR=./.kube-conf | |
export SERVICE_ACCOUNT="k8s-cluster-admin" | |
export NAMESPACE="kube-system" | |
echo "Creating Service account" | |
kubectl -n ${NAMESPACE} create serviceaccount ${SERVICE_ACCOUNT} |