From 88db697a0b6858e880cbab8124d39c8e0c68bb60 Mon Sep 17 00:00:00 2001 From: Remy Noulin Date: Sun, 8 Feb 2026 14:26:02 +0000 Subject: [PATCH] Ajouter application.yaml --- application.yaml | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 application.yaml diff --git a/application.yaml b/application.yaml new file mode 100644 index 0000000..66b842d --- /dev/null +++ b/application.yaml @@ -0,0 +1,58 @@ +# 1. Le Deployment (le pod Nginx) +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hello-nginx + labels: + app: hello-nginx +spec: + replicas: 1 + selector: + matchLabels: + app: hello-nginx + template: + metadata: + labels: + app: hello-nginx + spec: + containers: + - name: nginx + image: nginxdemos/hello:plain-text + ports: + - containerPort: 80 +--- +apiVersion: v1 +kind: Service +metadata: + name: hello-nginx-svc +spec: + selector: + app: hello-nginx + ports: + - protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: hello-world-ingress + annotations: + cert-manager.io/cluster-issuer: "letsencrypt-prod" + kubernetes.io/ingress.class: nginx +spec: + tls: + - hosts: + - test.remynln.fr + secretName: test-remynln-tls + rules: + - host: test.remynln.fr + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: hello-nginx-svc + port: + number: 80 \ No newline at end of file