Files
nginx-portal/k8s/05-frontend.yaml
qorgh529 a024efbd3f
Some checks failed
Build and Push Images / build-backend (push) Has been cancelled
fix: frontend 이미지 주소를 외부 IP로 변경
2026-04-27 20:01:45 +09:00

43 lines
806 B
YAML
Executable File

apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
namespace: web-portal
spec:
replicas: 1
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
imagePullSecrets:
- name: gitea-registry-secret
containers:
- name: frontend
image: 192.168.10.101:30000/qorgh529/portal-frontend:latest
imagePullPolicy: Always
ports:
- containerPort: 80
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
name: frontend-service
namespace: web-portal
spec:
type: ClusterIP
selector:
app: frontend
ports:
- port: 80
targetPort: 80