Skip to content

Commit

Permalink
changed loadbalancer for nodeport + ingress to add SSL cert
Browse files Browse the repository at this point in the history
  • Loading branch information
Khagou committed Mar 18, 2024
1 parent de3d195 commit e4abbae
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions client/prod-front.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,34 @@ metadata:
name: khagu-dev-front
namespace: default
spec:
type: LoadBalancer
type: NodePort
selector:
app: khagu-dev-front
ports:
- protocol: TCP
port: 80
targetPort: 80
---
apiVersion: v1
kind: Service
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: khagu-dev-front-to-back
namespace: default
name: khagu-dev-front-ingress
annotations:
kubernetes.io/ingress.class: "gce"
spec:
type: ClusterIP
selector:
app: khagu-dev-front
ports:
- protocol: TCP
port: 7000
targetPort: 7000
tls:
- hosts:
- projet.khagu-dev.fr
secretName: my-tls-secret
rules:
- host: your-domain.com
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: khagu-dev-front
port:
number: 80
---

0 comments on commit e4abbae

Please sign in to comment.