Skip to content

Instantly share code, notes, and snippets.

View initcron's full-sized avatar

Gourav Shah initcron

View GitHub Profile
@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
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: vote
labels:
role: vote
spec:
minReadySeconds: 20
replicas: 4
selector:
@initcron
initcron / user-data.sh
Last active December 22, 2022 07:07
Kubernetes User Data 2022
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y git wget net-tools
# Prereqs
modprobe overlay
@initcron
initcron / jenkins.values.yaml
Created December 19, 2022 17:09
Values file for Jenkins with testEnabled
controller:
serviceType: NodePort
resources:
requests:
cpu: "400m"
memory: "512Mi"
limits:
cpu: "2000m"
memory: "4096Mi"
testEnabled: true