Initial commit

This commit is contained in:
Tarek MENOUER 2025-01-14 13:31:25 +00:00
commit 9b3a18aa10
4 changed files with 74 additions and 0 deletions

33
01_deployment.yml Normal file
View File

@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-deployment
labels:
app: simple
spec:
selector:
matchLabels:
app: simple
replicas: 1
template:
metadata:
labels:
app: simple
spec:
containers:
- name: nginx
image: nginxdemos/hello:latest
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 10
periodSeconds: 5
startupProbe:
httpGet:
path: /
port: 80
failureThreshold: 30
periodSeconds: 20
ports:
- containerPort: 80

13
02_service.yml Normal file
View File

@ -0,0 +1,13 @@
kind: Service
apiVersion: v1
metadata:
name: simple
labels:
app: simple
spec:
type: ClusterIP
selector:
app: simple
ports:
- port: 80
targetPort: 80

25
03_ingress.yml Normal file
View File

@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: simple-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
labels:
app: simple
spec:
ingressClassName: nginx
tls:
- hosts:
- simple.{{TRIGRAMME}}.lab.adho.app
secretName: simple-tls
rules:
- host: simple.{{TRIGRAMME}}.lab.adho.app
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: simple
port:
number: 80

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# simple_deployment
Exemple type d'un déploiement d'une application simple sur le LAB DEVOPS