Skip to content

Instantly share code, notes, and snippets.

View initcron's full-sized avatar

Gourav Shah initcron

View GitHub Profile
apiVersion: apps/v1
kind: Deployment
metadata:
name: vote
labels:
role: vote
annotations:
kubernetes.io/change-cause: "image updated to v5"
spec:
minReadySeconds: 20
@initcron
initcron / mlops-pipeline.yaml
Created August 4, 2025 15:24
MLOps CI Pipeline
# .github/workflows/mlops-pipeline.yml
name: MLOps Pipeline
on:
push:
branches: [ main ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ main ]
@initcron
initcron / vote-deploy.yaml
Created July 16, 2025 04:14
Vote Deploymeny Manifests with Resources Configured
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: vote
name: vote
spec:
replicas: 2
selector:
name: Streamlit CI
on:
push:
paths:
- 'streamlit_app/**'
workflow_dispatch:
jobs:
build-and-push:
@initcron
initcron / model_config.yaml
Created June 23, 2025 10:35
Model Config for House Price Prediction
model:
best_model: GradientBoosting
feature_sets:
rfe:
- '0'
- '1'
- '2'
- '3'
- '4'
- '5'
# Use python alpine base image
FROM python:3.11-alpine3.17
# Set working directory
WORKDIR /app
# Copy source code to container
COPY . /app
# Install dependencies
networks:
custom:
driver: bridge
services:
app:
image: initcron/petclinic:dev
build:
context: .
dockerfile: Dockerfile.multistage.v1
name: Trivy Vulnerability Scan
on:
push:
branches: [ main, master ]
pull_request:
workflow_dispatch:
jobs:
trivy:
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
@initcron
initcron / compose.yaml
Created May 28, 2025 07:57
Docker Compose spec for FastAPI and Streamlit
services:
fastapi:
image: docker.io/xxxxxx/fastapi:dev.
build:
context: "./"
dockerfile: "Dockerfile"
ports:
- "8000:8000"
streamlit: