How to use:
- Edit the input variables at the top
- Copy paste steps one at a time into a bash/zsh terminal shell This will give better feedback and understanding of whats going on.
| # 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) |
| #!/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 |
| tee original-managedcert.yaml << EOF | |
| apiVersion: networking.gke.io/v1 | |
| kind: ManagedCertificate | |
| metadata: | |
| name: managed-cert | |
| spec: | |
| domains: | |
| - example.test | |
| EOF |
How to use:
Background Context:
The following is based on 2 GCP / GKE How to Guides:
What this adds is additional checks / verification commands that can be run to help troubleshoot.
alias k=kubectl