Skip to content

Instantly share code, notes, and snippets.

View initcron's full-sized avatar

Gourav Shah initcron

View GitHub Profile
@initcron
initcron / user-data-k8s-v1.28.sh
Created March 12, 2024 11:25
Kubernetes Installation v1.28 User Data
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y git wget net-tools
# Prereqs
modprobe overlay
@initcron
initcron / vote-hpa.yaml
Last active January 23, 2024 06:19
HPA v2 Spec for Vote App
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: vote
spec:
minReplicas: 2
maxReplicas: 10
metrics:
- type: ContainerResource
containerResource:
@initcron
initcron / kind-install-metrics-server.md
Created January 23, 2024 05:38
Install Metrics Server on KIND Cluster
2023-11-22 10:19:12 ERROR - An error occurred in the application:
Traceback (most recent call last):
File "app.py", line 27, in <module>
result = divide(15, 3)
File "app.py", line 15, in divide
return x / y
ZeroDivisionError: division by zero
@initcron
initcron / dev-app.yaml
Last active October 6, 2023 06:13
Argocd Application Spec for Dev Env
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: vote-dev
namespace: argocd
spec:
destination:
namespace: dev
server: https://kubernetes.default.svc
project: default
cd bootcamp/jenkins
git pull origin main
docker-compose build
docker-compose up -d
@initcron
initcron / jenkins_configs_dsl.md
Created October 2, 2023 15:56
Jenkins Configuration as a Code Resources
docker-compose down
docker volume rm -af
docker-compose build
docker-compose up -d
@initcron
initcron / kind_cleanup.md
Created September 21, 2023 05:26
Clean up KIND Cluster

Cleanup Kind Cluster

kind delete cluster --name kind

rm -rf  ~/.kube
@initcron
initcron / docker-cleanup.md
Created September 21, 2023 05:24
Cleanup Docker Environment
docker system prune -af
docker ps -aq | xargs docker rm -f -
docker volume prune --all --force