This file contains hidden or 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 | |
if [ -z "${SA_NAME}" ];then | |
echo "USER needs to be passed via environment variable" | |
echo "curl -L URL_TO_THIS_SCRIPT | SA_NAME=user1 bash -s" | |
exit 1 | |
fi | |
sa_name=${SA_NAME} | |
ns=${NS:-default} |
This file contains hidden or 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 | |
if [ -z "${FSID}" ] || [ -z "${MON}" ] || [ -z "${KEY}" ];then | |
echo "FSID, MON, and KEY need to be passed via environment variable" | |
echo "curl -L URL_TO_THIS_SCRIPT | FSID=d4a73e06-29e4-49c5-ae65-7a38ff10a5dd MON=192.168.230.25:6789 KEY='AQAfcjJh6G3xGRAA828KskUiq+1dwT4kOEYL8w==' bash -s" | |
exit 1 | |
fi | |
version=${VERSION:-v3.4.0} | |
ns=${NS:-kube-system} |
This file contains hidden or 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
ceph osd pool create kubernetes | |
rbd pool init kubernetes | |
ceph auth get-or-create client.kubernetes mon 'profile rbd' osd 'profile rbd pool=kubernetes' mgr 'profile rbd pool=kubernetes' | |
key=$(ceph auth get client.kubernetes | awk '/key =/{print $3}') | |
fsid=$(ceph mon dump | awk '/^fsid/{print $2}') | |
mon=$(ceph mon dump | awk '/mon.a$/{print $2}'|sed -n 's/^.*v1:\(.*\)\/0\]$/\1/p') | |
echo KEY="'"${key}"'" FSID=${fsid} MON=${mon} |
This file contains hidden or 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 | |
if [ -z "${DEVICE}" ];then | |
echo "DEVICE needs to be passed via environment variable" | |
echo "curl -L URL_TO_THIS_SCRIPT | DEVICE=xvdb bash -s" | |
exit 1 | |
fi | |
device=${DEVICE} |
This file contains hidden or 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 | |
packages="kubelet kubeadm kubectl" | |
if [ -n "${VERSION}" ];then | |
packages="kubelet-${VERSION} kubeadm-${VERSION} kubectl-${VERSION}" | |
fi | |
cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf | |
br_netfilter | |
EOF |
This file contains hidden or 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
git clone https://github.com/submariner-io/submariner.git | |
git checkout extglobalnet | |
export PLUGIN=/go/src/github.com/submariner-io/submariner/scripts/e2e/external/hook | |
export E2E_TESTDIR=test/external | |
sudo -E make e2e using=globalnet | |
export KUBECONFIG=$(find "${DAPPER_OUTPUT:-output}"/kubeconfigs -type f -printf %p: || :) | |
docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ext-app | |
172.117.0.4 |
This file contains hidden or 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
@ cl1 192.168.122.127 | |
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--cluster-cidr 10.44.0.0/16 --service-cidr 10.45.0.0/16" sh -s - | |
cp /etc/rancher/k3s/k3s.yaml kubeconfig | |
sed -i 's/127.0.0.1/192.168.122.127/' kubeconfig | |
export KUBECONFIG=kubeconfig | |
curl https://get.submariner.io/ | bash | |
export PATH=$PATH:/root/.local/bin | |
kubectl get nodes | |
kubectl label node cl1 submariner.io/gateway=true |
This file contains hidden or 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
@ cl1 192.168.122.127 | |
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--cluster-cidr 10.44.0.0/16 --service-cidr 10.45.0.0/16" sh -s - | |
cp /etc/rancher/k3s/k3s.yaml kubeconfig | |
sed -i 's/127.0.0.1/192.168.122.127/' kubeconfig | |
export KUBECONFIG=kubeconfig | |
curl https://get.submariner.io/ | bash | |
export PATH=$PATH:/root/.local/bin | |
kubectl get nodes | |
kubectl label node cl1 submariner.io/gateway=true |