Skip to content

Commit da69cf2

Browse files
committed
fix(deploy): remove tls
1 parent 3388b9b commit da69cf2

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

frontend/helm-chart/templates/ingress.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,17 @@ metadata:
66
namespace: {{ .Release.Namespace }}
77
labels:
88
{{- include "hankers-frontend.labels" . | nindent 4 }}
9+
{{- with .Values.ingress.annotations }}
910
annotations:
10-
cert-manager.io/cluster-issuer: letsencrypt-prod
11-
{{- with .Values.ingress.annotations }}
1211
{{- toYaml . | nindent 4 }}
13-
{{- end }}
12+
{{- end }}
1413
spec:
1514
ingressClassName: {{ .Values.ingress.className }}
16-
tls:
17-
- hosts:
18-
- frontend-code.duckdns.org
19-
secretName: frontend-tls-cert
2015
rules:
21-
- host: frontend-code.duckdns.org
22-
http:
16+
{{- range .Values.ingress.hosts }}
17+
- http:
2318
paths:
24-
{{- range .Values.ingress.hosts[0].paths }}
19+
{{- range .paths }}
2520
- path: {{ .path }}
2621
pathType: {{ .pathType }}
2722
backend:
@@ -30,4 +25,5 @@ spec:
3025
port:
3126
number: {{ $.Values.service.port }}
3227
{{- end }}
28+
{{- end }}
3329
{{- end }}

frontend/helm-chart/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
replicaCount: 1
22

33
image:
4-
repository: your-dockerhub-user/frontend
4+
repository: karimzakzouk/frontend
55
pullPolicy: Always
66
tag: "latest"
77

@@ -18,6 +18,7 @@ ingress:
1818
className: nginx
1919
annotations:
2020
nginx.ingress.kubernetes.io/rewrite-target: /$2
21+
nginx.ingress.kubernetes.io/ssl-redirect: "false"
2122
hosts:
2223
- host: ""
2324
paths:

0 commit comments

Comments
 (0)