mchirico / zDaily

Playground to hack and test ideas with Zoe
1 stars 2 forks source link

Day 81: GKE and K8s source #89

Open mchirico opened 3 years ago

mchirico commented 3 years ago

Day 81 video

More Kubernetes

k8s on GCE

create cluster

export PROJECT_ID=intrepid-app-299501
export COMPUTE_ZONE=us-central1-f
export CLUSTER_NAME=zdev0

gcloud config set project ${PROJECT_ID}
gcloud config set compute/zone ${COMPUTE_ZONE}

gcloud beta container clusters create ${CLUSTER_NAME} --preemptible  --no-enable-basic-auth  --cluster-version "1.18.12-gke.1201"  --enable-kubernetes-alpha  --no-enable-autoupgrade --no-enable-autorepair

Get Credentials

export PROJECT_ID=intrepid-app-299501
export COMPUTE_ZONE=us-central1-f
export CLUSTER_NAME=zdev0
gcloud container clusters get-credentials ${CLUSTER_NAME} 

Delete Cluster


export PROJECT_ID=intrepid-app-299501
export COMPUTE_ZONE=us-central1-f
export CLUSTER_NAME=zdev0
gcloud beta container clusters delete  ${CLUSTER_NAME} 

References

GKE (Creating cluster on GKE)

https://github.com/zoechirico/k8sOnGCE/discussions/1

https://github.com/zoechirico/kubernetes

Octant

gk3 cluster options

tacomonkautobot[bot] commented 3 years ago

mchirico, Thanks for opening this issue!