by johnmark | Mar 29, 2022 | gcp, kubernetes, security
Create a Cluster and Node Pool using the default service account Create a pod and SSH to that pod Example nginx.yml apiVersion: v1 kind: Pod metadata: name: nginx spec: containers: – name: nginx image: nginx Create that nginx pod then SSH to it....
by johnmark | Mar 28, 2022 | coding, gcp, python
This article will guide us on how to interact with our Google Cloud Platform account using Python code. Our goal here is to get the instance’s data like its name, internal IP, and status. Overview: Setup local python environmentInstall the Google API Python...
by johnmark | Mar 25, 2022 | gcp, python
Get all GCP instance data like name, status, internal IP.Update GCP Cloud DNS (delete and add from Instances)Python + GKE – Get the pods! Get all GCP instance data like name, status, internal IP. # Credentials from specific GCP SA import os...
by johnmark | Feb 23, 2022 | gcp, kubernetes
This guide will show the basic setup of K8s using GCP storage disk. Our goal here is to have a pod use storage for the external disk in GCP (Google Cloud Platform) using persistent volume and persistent volume claim. See this diagram for example. This screenshot shows...
by johnmark | Feb 20, 2022 | gcp, kubernetes
This article is a list of cheat sheets for running GKE in Windows. Installing and setup the gcloud CLI Download the Google Cloud CLI installer. Alternatively, open a PowerShell terminal and run the following PowerShell commands: (New-Object...
by johnmark | Feb 13, 2022 | gcp
This post is about the GCP VPC Firewall setup challenge where you can learn how to setup incoming (Ingress) and Outgoing (Egress) firewall within the VPC network. This setup also uses the following: Service AccountsInstance TemplateInstance GroupsVPC Challenge Build...