Skip to content

Instantly share code, notes, and snippets.

View neoakris's full-sized avatar

Chris McGrath neoakris

View GitHub Profile
@neoakris
neoakris / gcr.io_SA_bash_tutorial.sh
Last active September 28, 2022 22:36
Copy Pastable Example of Creating GCP SA for Google Container Registry Image Pull and Push
# This is a tutorial (how to guide optimized for learning)
# This is meant to be copy pasted line by line in bash
# A speed run of this method is available here:
# https://gist.github.com/neoakris/f1c4b329901811360ce6269ca631c80b
# Set Input Vars (likely need to edit)
export PROJECT=my-gcp-project
export SA_SHORT_NAME=gcr-sa
# Additional Input Vars (can skip editing)
@neoakris
neoakris / quick gcr.io SA.sh
Last active August 10, 2022 05:27
quick creation of GCP service account that can pull / push images to gcr.io
#!/bin/bash
# A tutorial (learning optimized how to guide) of this same content with additional explanations is available here:
# https://gist.github.com/neoakris/bd53146a7a610253abdbc1234ffb357b
# Set Input Vars (likely need to edit)
export PROJECT=my-gcp-project
export SA_SHORT_NAME=gcr-sa
# Additional Input Vars (can skip editing)
export SA_NAME=$SA_SHORT_NAME@$PROJECT.iam.gserviceaccount.com
@neoakris
neoakris / cat_generated_config_file.sh
Last active September 16, 2022 17:27
cat_generated_config_file.sh
tee original-managedcert.yaml << EOF
apiVersion: networking.gke.io/v1
kind: ManagedCertificate
metadata:
name: managed-cert
spec:
domains:
- example.test
EOF
@neoakris
neoakris / GKE_HTTPS_Cert_Cutover_Guide.md
Last active August 16, 2023 19:25
Edit, Copy, Paste - GKE HTTPS Cert Cutover Guide

Guide to doing a GKE HTTPS Cert Cutover from cluster1 to cluster2 with zero downtime

How to use:

  1. Edit the input variables at the top
  2. Copy paste steps one at a time into a bash/zsh terminal shell This will give better feedback and understanding of whats going on.

Phase 1: Prep Work

Phase 1 - Step 1: Provision 2 GKE Clusters and setup kubectx

@neoakris
neoakris / 0_traefik_mirror_lab.md
Last active April 16, 2024 09:48
Reproducible Demo of Traefik 2.0 Traffic Mirroring on EKS

Reproducible Demo of Traefik 2.0 Traffic Mirroring

Overview

What to expect in this doc:

  • Traefik 2.0 has traffic mirroring functionality that should work on generic Kubernetes, but there's no good how-to guides, let this be the first.
  • This is a how-to guide, that's optimized for understanding
@neoakris
neoakris / Example of kustomized helm Install.md
Last active June 9, 2023 05:51
How to customize helm charts without forking. By using helm's post renderer technique with kustomize.md

Example of Kustomized Helm Install
(Using Helm's Post Rendering Feature)

Overview: Why would you want to do this?

Background Context:

  • Question: What is a helm chart?
  • Answer: helm charts are just templating engines that render generated yaml
    • input variables (with a mix of default and override values for those variables)
    • get plugged into golang templatized yaml
    • and output a wall of text of generated yaml
  • Community Helm Charts:
@neoakris
neoakris / prom-gui_and_GMP_on_GKE_autopilot.md
Last active April 26, 2024 04:00
Example of Troubleshoot Prom GUI and GMP on GKE Autopilot