Files
dogu/deployment.yaml
M. M: Mahmud S. R. K. T. U. f4a00a63a6
All checks were successful
Harita Build ve Deploy / build-and-deploy (push) Successful in 31s
deployment.yaml Güncelle
2025-12-02 22:56:29 +00:00

74 lines
1.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apiVersion: apps/v1
kind: Deployment
metadata:
name: dogu-haritasi
namespace: harita
spec:
replicas: 1
selector:
matchLabels:
app: dogu-haritasi
template:
metadata:
labels:
app: dogu-haritasi
spec:
# KUBERNETES BURADAN İZİN BELGELERİNİ ALIR
imagePullSecrets:
- name: gitea-reg-cred
containers:
- name: web
# İmajınız
image: git.konstantiniyye.studio/gitea_admin/dogu:latest
imagePullPolicy: Always
ports:
- containerPort: 80
# Kaynak limitleri eklemek best-practice'dir
resources:
requests:
memory: "32Mi"
cpu: "10m"
limits:
memory: "128Mi"
cpu: "100m"
# Uygulamanın ayakta olup olmadığını kontrol eder
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 10
---
apiVersion: v1
kind: Service
metadata:
name: dogu-haritasi-service
namespace: harita
spec:
# Service objesine secrets eklenmez, sadece Pod'u seçer
selector:
app: dogu-haritasi
type: ClusterIP
ports:
- port: 80
targetPort: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dogu-haritasi-ingress
namespace: harita
annotations:
kubernetes.io/ingress.class: "traefik"
spec:
rules:
- host: harita.konstantiniyye.studio
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: dogu-haritasi-service
port:
number: 80