Last active
April 6, 2019 17:12
-
-
Save veggiemonk/e6184e85f57573009e70041cf9bfb5c4 to your computer and use it in GitHub Desktop.
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
cd ~ | |
mkdir -p $HOME/bin | |
# KUBECTX | |
git clone https://github.com/ahmetb/kubectx.git ~/.kubectx | |
ln -s $HOME/.kubectx/kube $HOME/bin/ | |
ln -s $HOME/.kubectx/kubectx $HOME/bin/ | |
# MICRO | |
wget https://github.com/zyedidia/micro/releases/download/nightly/micro-1.4.2-dev.61-linux64.tar.gz | |
tar xzf micro-1.4.2-dev.61-linux64.tar.gz | |
mv micro-1.4.2-dev.61/micro $HOME/bin/ | |
chmod 700 $HOME/bin/micro | |
export PATH=$HOME/bin:$PATH | |
# FZF | |
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf | |
~/.fzf/install | |
# CONFIGURE KUBECTL | |
kubectl config set-cluster default --server=https://kubernetes.default --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt | |
kubectl config set-context default --cluster=default | |
token=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token) | |
kubectl config set-credentials user --token=$token | |
kubectl config set-context default --user=user | |
kubectl config use-context default | |
source <(kubectl completion bash) | |
source <(kubectl completion bash | sed 's/kubectl/k/g') | |
# HELM | |
kubectl -n kube-system create sa tiller | |
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller | |
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > get_helm.sh | |
chmod 700 get_helm.sh | |
sed -i 's/\/usr\/local\/bin/\/home\/spinnaker\/bin/g' get_helm.sh | |
sed -i 's/sudo //g' get_helm.sh | |
./get_helm.sh | |
export PATH=$HOME/bin:$PATH | |
helm init --service-account tiller --upgrade | |
# MINIO | |
helm install --name minio stable/minio --namespace spinnaker | |
ENDPOINT=http://minio.spinnaker.svc.cluster.local:9000 | |
MINIO_ACCESS_KEY=miniokey | |
MINIO_SECRET_KEY=miniosecret | |
echo $MINIO_SECRET_KEY | hal config storage s3 edit --endpoint $ENDPOINT \ | |
--access-key-id $MINIO_ACCESS_KEY \ | |
--secret-access-key | |
hal config storage edit --type s3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment