Skip to content

Commit 05684a6

Browse files
committed
Add ingress controller
1 parent 9077d5a commit 05684a6

1 file changed

Lines changed: 25 additions & 4 deletions

File tree

Kubernetes/EmailService-API-Deployment.yaml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ spec:
5959
- name: ASPNETCORE_URLS
6060
value: "https://*:8443;http://*:8080"
6161
- name: MasterKey
62-
value: "MasterKey"
62+
value: "8zEKtwlVbow5/aJMo4qSjn6PeQtlJ6vilNzhJHtTAtPsLvv2eXkrAshflaxAP8NJy4l69fCYmhgvt1P3oE1LQuKEyGIQnpFmvfd2Oef7xgflatErofEZZIYJbuv9zaUpLT/nkAD/xFt2ngmSJiKeTSyhoqQUDi+L+28x1JBgvXg="
6363
- name: Jwt__Key
64-
value: "Jwt_Key"
64+
value: "8zEKtwlVbow5/aJMo4qSjn6PeQtlJ6vilNzhJHtTAtPsLvv2eXkrAshflaxAP8NJy4l69fCYmhgvt1P3oE1LQuKEyGIQnpFmvfd2Oef7xgflatErofEZZIYJbuv9zaUpLT/nkAD/xFt2ngmSJiKeTSyhoqQUDi+L+28x1JBgvXg="
6565

6666
---
6767

@@ -78,8 +78,29 @@ spec:
7878
protocol: TCP
7979
port: 443
8080
targetPort: 8443
81-
nodePort: 30008
82-
type: LoadBalancer
81+
type: ClusterIP
82+
83+
---
84+
85+
apiVersion: networking.k8s.io/v1
86+
kind: Ingress
87+
metadata:
88+
name: emailservice-api-ingress
89+
annotations:
90+
haproxy-ingress.github.io/backend-protocol: "https"
91+
spec:
92+
ingressClassName: haproxy
93+
rules:
94+
- host: emailserviceapi.romitsagu.com
95+
http:
96+
paths:
97+
- path: /
98+
pathType: Prefix
99+
backend:
100+
service:
101+
name: emailservice-api-service
102+
port:
103+
number: 443
83104

84105
---
85106

0 commit comments

Comments
 (0)