Skip to content

Instantly share code, notes, and snippets.

cd cloud-provisioning
scripts/dm-swarm.sh
eval $(docker-machine env swarm-1)
docker node ls
scripts/dm-test-swarm.sh
cd cloud-provisioning
git pull
scripts/dm-swarm-5.sh
eval $(docker-machine env swarm-1)
docker node ls
@prageethw
prageethw / 11-aws.sh
Last active October 16, 2017 10:01 — forked from vfarcic/11-aws.sh
export AWS_ACCESS_KEY_ID=[...]
export AWS_SECRET_ACCESS_KEY=[...]
aws --version
export AWS_DEFAULT_REGION=ap-southeast-2
aws ec2 describe-availability-zones \
--region $AWS_DEFAULT_REGION
chmod +x scripts/dm-swarm-06.sh
./scripts/dm-swarm-06.sh
eval $(docker-machine env swarm-1)
echo "route:
group_by: [service]
receiver: 'slack'
repeat_interval: 1h
chmod +x scripts/dm-swarm-04.sh
./scripts/dm-swarm-04.sh
eval $(docker-machine env swarm-1)
open "http://$(docker-machine ip swarm-1)/monitor"
docker stack deploy \
-c stacks/exporters.yml \
######################
# Create The Cluster #
######################
# Make sure that your minikube version is v0.25 or higher
# WARNING!!!
# Some users experienced problems starting the cluster with minikuber v0.26 and v0.27.
# A few of the reported issues are https://github.com/kubernetes/minikube/issues/2707 and https://github.com/kubernetes/minikube/issues/2703
# If you are experiencing problems creating a cluster, please consider downgrading to minikube v0.25.
@prageethw
prageethw / kube-monkey.sh
Last active November 29, 2018 10:11 — forked from vfarcic/eks-scale.sh
######################
# Create The Cluster #
######################
# Make sure that you're using eksctl v0.1.5+.
# Follow the instructions from https://github.com/weaveworks/eksctl to intall eksctl.
export AWS_ACCESS_KEY_ID=[...] # Replace [...] with AWS access key ID
######################
# Create The Cluster #
######################
az login
az provider register -n Microsoft.Network
az provider register -n Microsoft.Storage
######################
# Create The Cluster #
######################
# Make sure that you're using eksctl v0.1.5+.
# Follow the instructions from https://github.com/weaveworks/eksctl to intall eksctl.
export AWS_ACCESS_KEY_ID=[...] # Replace [...] with AWS access key ID
@prageethw
prageethw / kops-aws.sh
Last active January 8, 2019 03:04 — forked from vfarcic/14-aws.sh
cd k8s-specs
git pull
export AWS_ACCESS_KEY_ID=[...]
export AWS_SECRET_ACCESS_KEY=[...]
#make sure you install aws cli
#https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html