From d81b8682973d65f653dc8e44fc927f74b8660bb3 Mon Sep 17 00:00:00 2001 From: Remy Date: Wed, 18 Feb 2026 08:34:59 +0000 Subject: [PATCH] [INIT] --- .gitea/workflows/test.yaml | 16 +++++++++++ application.yaml | 58 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 .gitea/workflows/test.yaml create mode 100644 application.yaml diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..c5a7bde --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,16 @@ +name: Gitea Actions Demo +run-name: ${{ github.actor }} teste le runner 🚀 +on: [push] + +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - name: Checkout du code + uses: actions/checkout@v4 + + - name: Dire bonjour + run: | + echo "Le runner fonctionne sur le cluster de Rémy !" + echo "Node actuel : $(hostname)" + echo "Date : $(date)" \ No newline at end of file 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