diff --git a/ingress.yaml b/ingress.yaml new file mode 100644 index 0000000..c723285 --- /dev/null +++ b/ingress.yaml @@ -0,0 +1,25 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: sinusbot-ingress + namespace: sinusbot-ns + annotations: + # Si vous utilisez cert-manager pour le SSL (HTTPS automatique) + kubernetes.io/ingress.class: nginx + cert-manager.io/cluster-issuer: "letsencrypt-prod" +spec: + tls: + - hosts: + - sinus.remynln.fr + secretName: sinusbot-tls-secret # Le certificat sera stocké ici + rules: + - host: sinus.remynln.fr + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: sinusbot-service + port: + number: 8087 \ No newline at end of file