Ajouter ingress.yaml
This commit is contained in:
25
ingress.yaml
Normal file
25
ingress.yaml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user