Skip to content

Instantly share code, notes, and snippets.

View kops-aws-manifest.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
View kops-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
View eks-monitor.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
View aks-monitor.sh
######################
# Create The Cluster #
######################
az login
az provider register -n Microsoft.Network
az provider register -n Microsoft.Storage
View kube-monkey.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
View minikube-ip.sh
######################
# 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.
View 04-exporters.sh
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 \
View 06-alert-humans.sh
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
View 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
View 09-monitoring.sh
cd cloud-provisioning
git pull
scripts/dm-swarm-5.sh
eval $(docker-machine env swarm-1)
docker node ls
You can’t perform that action at this time.