Skip to content

Commit

Permalink
creation ingress pour le back pour SSL car need https
Browse files Browse the repository at this point in the history
  • Loading branch information
Khagou committed Mar 22, 2024
1 parent 3dfc601 commit 2ad13b5
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion server/prod-back.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,37 @@ metadata:
spec:
selector:
app: khagu-dev-back
type: LoadBalancer
type: NodePort
ports:
- port: 7000
targetPort: 7000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: khagu-dev-back-ingress
annotations:
kubernetes.io/ingress.class: "gce"
spec:
rules:
- host: api.projet.khagu-dev.fr
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: back-service
port:
number: 7000
- host: www.api.projet.khagu-dev.fr
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: back-service
port:
number: 7000
---

0 comments on commit 2ad13b5

Please sign in to comment.