Skip to content

Instantly share code, notes, and snippets.

@miry
Last active December 16, 2015 17:03
Show Gist options
  • Save miry/b0e008319512377bcfed to your computer and use it in GitHub Desktop.
Save miry/b0e008319512377bcfed to your computer and use it in GitHub Desktop.
Kubernetes FAQ
#!/usr/bin/env bash
# Place file in ./cluster/env.sh
DEBUG=${DEBUG:-"false"}
if [ "${DEBUG}" = "true" ]; then
set -o xtrace
fi
KUBERNETES_PROVIDER=aws
KUBE_AWS_INSTANCE_PREFIX="kb"
#KUBE_SHARE_MASTER=true
#MASTER_RESERVED_IP="auto"
NODE_ROOT_DISK_SIZE=8
#VPC_ID="none"
KUBE_AWS_ZONE="us-east-1c"
MASTER_SIZE="t2.micro"
NODE_SIZE="t2.micro"
NUM_NODES=1
AWS_S3_REGION="us-east-1"
#KUBE_SUBNET_CIDR="10.0.8.0/24"
#MASTER_INTERNAL_IP="10.0.8.10"
#SERVICE_CLUSTER_IP_RANGE="10.247.0.0/16"
#DNS_SERVER_IP="10.247.0.10"
#SUBNET_ID="subnet-f745a8af"
# make_bucket failed: s3://kubernetes-artifacts/ A client error (BucketAlreadyExists) occurred when calling the CreateBucket operation: The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.
#AWS_S3_BUCKET="kubernetes-artifacts"
CLUSTER_IP_RANGE="${CLUSTER_IP_RANGE:-10.244.0.0/16}"
MASTER_IP_RANGE="${MASTER_IP_RANGE:-10.246.0.0/24}"
MASTER_DISK_TYPE="standard"
NODE_ROOT_DISK_TYPE="standard"
$ export KUBERNETES_CONFIG=/User/me/.kube/aws
$ cluster/kubectl.sh cluster-info

[ aws cluster info]

$ export KUBERNETES_CONFIG=/User/me/.kube/gce
$ cluster/kubectl.sh cluster-info

[ gce cluster info ] 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment