mirror of https://github.com/portainer/k8s.git
Merge branch 'master' into rel2.12.0
commit
bb4e53f7dc
|
@ -83,8 +83,43 @@ spec:
|
||||||
port: 9443
|
port: 9443
|
||||||
scheme: HTTPS
|
scheme: HTTPS
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
{{- if .Values.enterpriseEdition.enabled }}
|
||||||
|
{{- if regexMatch "^[0-9]+\\.[0-9]+\\.[0-9]+$" .Values.enterpriseEdition.image.tag }}
|
||||||
|
{{- if eq (semver .Values.enterpriseEdition.image.tag | (semver "2.7.0").Compare) -1 }}
|
||||||
|
port: 9443
|
||||||
|
scheme: HTTPS
|
||||||
|
{{- else }}
|
||||||
port: 9000
|
port: 9000
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
|
{{- if eq .Values.enterpriseEdition.image.tag "latest" }}
|
||||||
|
port: 9443
|
||||||
|
scheme: HTTPS
|
||||||
|
{{- else }}
|
||||||
|
port: 9000
|
||||||
|
scheme: HTTP
|
||||||
|
{{- end }}
|
||||||
|
{{- end}}
|
||||||
|
{{- else }}
|
||||||
|
{{- if regexMatch "^[0-9]+\\.[0-9]+\\.[0-9]+$" .Values.image.tag }}
|
||||||
|
{{- if eq (semver .Values.image.tag | (semver "2.6.0").Compare) -1 }}
|
||||||
|
port: 9443
|
||||||
|
scheme: HTTPS
|
||||||
|
{{- else }}
|
||||||
|
port: 9000
|
||||||
|
scheme: HTTP
|
||||||
|
{{- end}}
|
||||||
|
{{- else }}
|
||||||
|
{{- if eq .Values.image.tag "latest" }}
|
||||||
|
port: 9443
|
||||||
|
scheme: HTTPS
|
||||||
|
{{- else }}
|
||||||
|
port: 9000
|
||||||
|
scheme: HTTP
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
@ -93,8 +128,43 @@ spec:
|
||||||
port: 9443
|
port: 9443
|
||||||
scheme: HTTPS
|
scheme: HTTPS
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
{{- if .Values.enterpriseEdition.enabled }}
|
||||||
|
{{- if regexMatch "^[0-9]+\\.[0-9]+\\.[0-9]+$" .Values.enterpriseEdition.image.tag }}
|
||||||
|
{{- if eq (semver .Values.enterpriseEdition.image.tag | (semver "2.7.0").Compare) -1 }}
|
||||||
|
port: 9443
|
||||||
|
scheme: HTTPS
|
||||||
|
{{- else }}
|
||||||
port: 9000
|
port: 9000
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
|
{{- if eq .Values.enterpriseEdition.image.tag "latest" }}
|
||||||
|
port: 9443
|
||||||
|
scheme: HTTPS
|
||||||
|
{{- else }}
|
||||||
|
port: 9000
|
||||||
|
scheme: HTTP
|
||||||
|
{{- end }}
|
||||||
|
{{- end}}
|
||||||
|
{{- else }}
|
||||||
|
{{- if regexMatch "^[0-9]+\\.[0-9]+\\.[0-9]+$" .Values.image.tag }}
|
||||||
|
{{- if eq (semver .Values.image.tag | (semver "2.6.0").Compare) -1 }}
|
||||||
|
port: 9443
|
||||||
|
scheme: HTTPS
|
||||||
|
{{- else }}
|
||||||
|
port: 9000
|
||||||
|
scheme: HTTP
|
||||||
|
{{- end}}
|
||||||
|
{{- else }}
|
||||||
|
{{- if eq .Values.image.tag "latest" }}
|
||||||
|
port: 9443
|
||||||
|
scheme: HTTPS
|
||||||
|
{{- else }}
|
||||||
|
port: 9000
|
||||||
|
scheme: HTTP
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
|
|
Loading…
Reference in New Issue