Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
pydevops committed Dec 7, 2021
1 parent 5b4522e commit ebd540c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,7 @@ dmypy.json

# Pyre type checker
.pyre/

# kubeconfig
kubeconfig
env.sh
7 changes: 4 additions & 3 deletions gke/private/create-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ gcloud beta container clusters create $CLUSTER_NAME \
--machine-type $MACHINE_TYPE \
--enable-ip-alias \
--enable-master-authorized-networks \
--master-authorized-networks "$MAN_CIDR"
# --enable-private-nodes

--master-authorized-networks "$MAN_CIDR" \
--enable-private-nodes \
--master-ipv4-cidr "$MASTER_CIDR"

export KUBECONFIG=$PWD/kubeconfig
gcloud container clusters get-credentials $CLUSTER_NAME --zone $GCP_ZONE

Expand Down
3 changes: 2 additions & 1 deletion gke/private/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export PROJECT_NUMBER=$(gcloud projects describe $PROJECT_ID --format="value(pro
###########################################

export IDNS=${PROJECT_ID}.svc.id.goog # workflow identity domain
export MAN_CIDR=135.0.150.138/32
export MAN_CIDR="135.0.150.138/32"
export MASTER_CIDR="172.16.0.0/28"

export GCP_REGION="us-central1" # CHANGEME (OPT)
export GCP_ZONE="us-central1-a" # CHANGEME (OPT)
Expand Down

0 comments on commit ebd540c

Please sign in to comment.