Skip to content

Commit f7c09be

Browse files
committed
Fix TLS certificate
Signed-off-by: Alexandre Peixoto Ferreira <[email protected]>
1 parent 5288805 commit f7c09be

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

charts/smarter-k3s-edge/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: smarter-k3s-edge
3-
version: 0.0.8
3+
version: 0.0.9
44
type: application
55
appVersion: v1.25.3-k3s1
66
description: K3s server on kubernetes

charts/smarter-k3s-edge/templates/k3s-edge-ingress.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,32 @@ spec:
1515
pathType: Prefix
1616
backend:
1717
service:
18-
name: {{ .Values.application.appName }}
18+
name: {{ .Values.application.appName }}-http
1919
port:
2020
number: {{ .Values.configuration.portHTTP }}
2121
tls:
2222
- secretName: {{ .Values.application.appName }}-tls
2323
hosts:
2424
- {{ .Values.configuration.host }}.{{ .Values.configuration.domain }}
25+
---
26+
apiVersion: v1
27+
kind: Service
28+
metadata:
29+
name: {{ .Values.application.appName }}-http
30+
labels:
31+
name: {{ .Values.application.appName }}
32+
spec:
33+
selector:
34+
name: {{ .Values.application.appName }}
35+
ports:
36+
{{- if .Values.configuration.portHTTP }}
37+
- protocol: TCP
38+
port: {{ .Values.configuration.portHTTP }}
39+
name: {{ .Values.application.appName }}-http
40+
{{- end }}
41+
{{- if .Values.configuration.portHTTPS }}
42+
- protocol: TCP
43+
port: {{ .Values.configuration.portHTTPS }}
44+
name: {{ .Values.application.appName }}-https
45+
{{- end }}
2546
{{- end }}

charts/smarter-k3s-edge/templates/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ spec:
1111
- protocol: TCP
1212
port: {{ .Values.configuration.port }}
1313
name: {{ .Values.application.appName }}
14+
{{- if not .Values.configuration.traefik }}
1415
{{- if .Values.configuration.portHTTP }}
1516
- protocol: TCP
1617
port: {{ .Values.configuration.portHTTP }}
@@ -21,5 +22,6 @@ spec:
2122
port: {{ .Values.configuration.portHTTPS }}
2223
name: {{ .Values.application.appName }}-https
2324
{{- end }}
25+
{{- end }}
2426
externalIPs:
2527
- {{ .Values.configuration.hostIP }}

0 commit comments

Comments
 (0)