Skip to content

Instantly share code, notes, and snippets.

View initcron's full-sized avatar

Gourav Shah initcron

View GitHub Profile
[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
@initcron
initcron / db-pod.yaml
Created December 9, 2022 04:38
Pod Spec for PostgreSQL Database
apiVersion: v1
kind: Pod
metadata:
name: db
labels:
app: postgres
role: database
tier: back
spec:
containers:
@initcron
initcron / Dockerfile
Created November 23, 2022 15:13
Spring Petclinic Single Stage Dockerfile
FROM schoolofdevops/maven:spring
WORKDIR /app
COPY . .
RUN mvn spring-javaformat:apply && \
mvn package -DskipTests && \
mv target/spring-petclinic-2.3.1.BUILD-SNAPSHOT.jar /run/petclinic.jar