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
Kube-Master | |
---------- | |
docker run --restart=always \ | |
--name kube -d --net=host \ | |
--privileged=true \ | |
-v /run/docker/plugins:/run/docker/plugins \ | |
-v /var/lib/osd:/var/lib/osd:shared \ | |
-v /dev:/dev \ | |
-v /etc/pwx:/etc/pwx \ | |
-v /opt/pwx/bin:/export_bin:shared \ |
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 | |
HOSTS="147.75.196.115 147.75.196.93 147.75.64.85 147.75.196.117 147.75.196.101" | |
for i in $HOSTS | |
do | |
ssh core@$i sudo mknod -m660 /dev/dm6 b 7 18 | |
ssh core@$i sudo touch /var/loop_device_file | |
ssh core@$i sudo truncate -s 64G /var/loop_device_file | |
ssh core@$i sudo losetup /dev/dm6 /var/loop_device_file | |
done |
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
REGION=us-east-1 | |
STACK_NAME="PX-STACK" | |
aws --region ${REGION} ec2 describe-instances --filters "Name=tag:aws:cloudformation:stack-name,Values=${STACK_NAME}" --query 'Reservations[*].Instances[*].{IP:PublicIpAddress,ID:InstanceId}' --output text |
NewerOlder