Skip to content

Commit efc7a45

Browse files
committed
Fix k3s-start.sh script (adding wwwpath)
Signed-off-by: Alexandre Peixoto Ferreira <[email protected]>
1 parent f489806 commit efc7a45

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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.10
3+
version: 0.0.11
44
type: application
55
appVersion: v1.25.3-k3s1
66
description: K3s server on kubernetes

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ data:
114114
#!/bin/bash
115115
#
116116
{{- if .Values.configuration.traefik }}
117-
curl -sflkO https://{{ .Values.configuration.host }}.{{ .Values.configuration.domain }}/token.{{ .Values.configuration.id }}
118-
curl -sflkO https://{{ .Values.configuration.host }}.{{ .Values.configuration.domain }}/k3s.yaml.{{ .Values.configuration.id }}
117+
curl -sflkO https://{{ .Values.configuration.host }}.{{ .Values.configuration.domain }}{{ .Values.configuration.wwwpath }}token.{{ .Values.configuration.id }}
118+
curl -sflkO https://{{ .Values.configuration.host }}.{{ .Values.configuration.domain }}{{ .Values.configuration.wwwpath }}k3s.yaml.{{ .Values.configuration.id }}
119119
{{- else }}
120-
curl -sflkO https://{{ default .Values.configuration.hostIP .Values.configuration.externalHostIP}}:{{ .Values.configuration.portHTTPS }}/token.{{ .Values.configuration.id }}
121-
curl -sflkO https://{{ default .Values.configuration.hostIP .Values.configuration.externalHostIP}}:{{ .Values.configuration.portHTTPS }}/k3s.yaml.{{ .Values.configuration.id }}
120+
curl -sflkO https://{{ default .Values.configuration.hostIP .Values.configuration.externalHostIP}}:{{ .Values.configuration.portHTTPS }}{{ .Values.configuration.wwwpath }}token.{{ .Values.configuration.id }}
121+
curl -sflkO https://{{ default .Values.configuration.hostIP .Values.configuration.externalHostIP}}:{{ .Values.configuration.portHTTPS }}{{ .Values.configuration.wwwpath }}k3s.yaml.{{ .Values.configuration.id }}
122122
{{- end }}
123123
export INSTALL_K3S_VERSION=$(echo "{{ default .Chart.AppVersion .Values.image.tag }}" | sed -e "s/-k3/+k3/")
124124
export K3S_TOKEN=$(cat token.{{ .Values.configuration.id }})

0 commit comments

Comments
 (0)