mathieu-benoit / mygkecluster

gcloud script to provision my GKE cluster, in a secure way

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mygkecluster

Based mostly on Hardening your cluster's security and GKE's Security overview.

Open in Cloud Shell

Prerequisities

  • Install gcloud
  • Install kubectl
  • Install docker
projectName=mygke
randomSuffix=$(shuf -i 100-999 -n 1)
projectId=$projectName-$randomSuffix
region=us-east4
zone=us-east4-a
clusterName=$projectName

## Setup Project

folderId=FIXME
gcloud projects create $projectId \
    --folder $folderId \
    --name $projectName
gcloud config set project $projectId
# Get the billingAccountId from `gcloud beta billing accounts list`
billingAccountId=FIXME
gcloud beta billing projects link $projectId \
    --billing-account $billingAccountId

By bash script

cd cli
./run.sh

Here are the exhaustive list of the security best practices with your GKE clusters you should look at:

Here are actions you may want to do once your GKE clusters are deployed to help solidify your security posture:

Complementary resources:

About

gcloud script to provision my GKE cluster, in a secure way


Languages

Language:HCL 50.3%Language:Shell 49.7%