Skip to content

Instantly share code, notes, and snippets.

View initcron's full-sized avatar

Gourav Shah initcron

View GitHub Profile
@initcron
initcron / vote-ro.yaml
Created September 8, 2023 07:18
Argo Rollout Spec for Vote App with Blue Green Strategy
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: vote
labels:
role: vote
spec:
replicas: 4
minReadySeconds: 20
strategy:
@initcron
initcron / redis-sts.yaml
Created September 7, 2023 03:33
Redis StatefulSet with VolumeClaimTemplate
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: redis
labels:
app: redis
spec:
selector:
matchLabels:
role: master
[database]
hostname=devopsdemo.cysgd3hww9vp.us-west-1.rds.amazonaws.com
username=root
password=password
dbname=devopsdb
[environment]
environment=AWS Bootcamp
@initcron
initcron / deployment.yaml
Last active August 1, 2023 02:54
Simple Deployment Spec for Vote App
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: vote
name: vote
spec:
replicas: 2
selector:
@initcron
initcron / service.yaml
Last active July 25, 2023 10:28
Simple Service Spec for Vote App
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: vote
name: vote
spec:
ports:
- name: "80"
[1:28 pm] Nayan Kankariya
=> ERROR [5/5] RUN make all                                                                                                                        13.6s
------                                                                                                                                                    
 > [5/5] RUN make all:                                                                                                                                    
version: '3.0'
networks:
custom:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.61.0/24
git clone https://github.com/udbc/bootcamp.git
cd bootcamp/jenkins
docker-compose build
docker-compose up -d
@initcron
initcron / web-ing.yaml
Created January 28, 2023 03:57
Ingress for Web App
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web
namespace: instavote
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/rule-type: PathPrefixStrip
spec:
@initcron
initcron / my.values.yaml
Created January 24, 2023 17:34
traefik deployment customization spec
ports:
traefik:
port: 9000
expose: true
exposedPort: 9000
nodePort: 30300
protocol: TCP
web:
port: 8000
expose: true