Files
catalog26/k8s-deployment.yaml
Wesley Cho c6c2426d3a
Some checks failed
Build and Deploy / build-and-push (pull_request) Successful in 28s
Build and Deploy / deploy-to-k8s (pull_request) Has been cancelled
fix k8s workflow
2026-02-01 22:07:43 -08:00

43 lines
862 B
YAML

apiVersion: v1
kind: Namespace
metadata:
name: catalog
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: catalog26-deployment
namespace: catalog
labels:
app: catalog26
spec:
replicas: 2
selector:
matchLabels:
app: catalog26
template:
metadata:
labels:
app: catalog26
spec:
containers:
- name: catalog26
image: git.chopark.home/wesscho/catalog26:latest
imagePullPolicy: Always
ports:
- containerPort: 8080 # This must match your Dockerfile EXPOSE port
---
apiVersion: v1
kind: Service
metadata:
name: catalog26-service
namespace: catalog
spec:
type: LoadBalancer # Or NodePort if you don't have a LoadBalancer
selector:
app: catalog26
ports:
- protocol: TCP
port: 80
targetPort: 8080
# nodePort: 30080 # Uncomment if using NodePort