Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Created November 28, 2021 14:03
Show Gist options
  • Save vfarcic/2c4fcf2bf0cb7cfeba30636aa02e7649 to your computer and use it in GitHub Desktop.
Save vfarcic/2c4fcf2bf0cb7cfeba30636aa02e7649 to your computer and use it in GitHub Desktop.
#########################################################
# Context-Aware Kubernetes Troubleshooting With Komodor #
# https://youtu.be/GNPS0sAajQ0 #
#########################################################
# Referenced videos:
# - Argo CD - Applying GitOps Principles To Manage Production Environment In Kubernetes: https://youtu.be/vpWQeoaiRM4
# - GitHub CLI - How to manage repositories more efficiently: https://youtu.be/BII6ZY2Rnlc
# - Should We Replace Docker Desktop With Rancher Desktop?: https://youtu.be/bYVfCp9dRTE
# - How to run local multi-node Kubernetes clusters using kind: https://youtu.be/C0v5gJSWuSo
#########
# Setup #
#########
# Create a Kubernetes cluster with an Ingress controller
# Replace `[...]` with the external IP of the Ingress service
export INGRESS_HOST=[...]
# Watch https://youtu.be/BII6ZY2Rnlc if you are not familiar with GitHub CLI
gh repo fork vfarcic/komodor-demo \
--clone
cd komodor-demo
helm repo add argo \
https://argoproj.github.io/argo-helm
helm repo update
helm upgrade --install \
argocd argo/argo-cd \
--namespace argocd \
--create-namespace \
--set server.ingress.hosts="{argo-cd.$INGRESS_HOST.nip.io}" \
--values argocd-values.yaml \
--wait
# Replace `[...]` with the GitHub organization or the username
export GH_ORG=[...]
cat argocd.yaml \
| sed -e "s@repoURL: .*@repoURL: https://github.com/$GH_ORG/komodor-demo@g" \
| tee argocd.yaml
kubectl apply --filename argocd.yaml
echo "http://argo-cd.$INGRESS_HOST.nip.io"
# Open it in a browser
# User `admin`, password `admin123`
kubectl create namespace production
#############################
# Komodor Sign-Up And Setup #
#############################
# Get a free trial from https://komodor.com
#####################################
# Deploying A Demo App With Argo CD #
#####################################
cat devops-toolkit.yaml
cp devops-toolkit.yaml apps/.
git add .
git commit -m "dot"
git push
#######################################
# Observing New Releases With Komodor #
#######################################
# Change the image tag in `apps/devops-toolkit.yaml` to `3.0.0`
git add .
git commit -m "dot 3.0.0"
git push
#######################################
# Troubleshooting Issues With Komodor #
#######################################
# Change the image tag in `apps/devops-toolkit.yaml` to `9.9.9`
git add .
git commit -m "dot 9.9.9"
git push
###########
# Destroy #
###########
rm apps/*.yaml
git add .
git commit -m "Destroy"
git push
# Delete or reset the cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment