Skip to content

The Unified and Autonomous Development Platform

Fix some minor helm deployment errors

Robin Shen09e7bb89fb98
diff --git a/server-product/helm/templates/ingress.yaml b/server-product/helm/templates/ingress.yaml
index 804c3256ff..6dab10326e 100644
--- a/server-product/helm/templates/ingress.yaml
+++ b/server-product/helm/templates/ingress.yaml
@@ -3,11 +3,11 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "onedev.fullname" . }}
- {{- with .Values.ingress.annotations }}
annotations:
{{- if and $.Values.ingress.enableDefaultIssuer $.Values.letsencrypt.email }}
cert-manager.io/issuer: "{{ include "onedev.fullname" . }}"
{{- end }}
+ {{- with .Values.ingress.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
diff --git a/server-product/helm/templates/service.yaml b/server-product/helm/templates/service.yaml
index 1bbf896f39..7b73983cd3 100644
--- a/server-product/helm/templates/service.yaml
+++ b/server-product/helm/templates/service.yaml
@@ -49,7 +49,7 @@ spec:
{{- if $ssh.nodePort }}
nodePort: {{ $ssh.nodePort }}
{{- end }}
- targetPort: 6610
+ targetPort: 6611
protocol: TCP
{{- end }}
selector:
diff --git a/server-product/helm/values.yaml b/server-product/helm/values.yaml
index df42014259..8178ca0af0 100644
--- a/server-product/helm/values.yaml
+++ b/server-product/helm/values.yaml
@@ -46,7 +46,7 @@ ingress:
## Set to false to disable the default certificate issuer from this chart if you want to use a custom one
enableDefaultIssuer: true
## Custom annotations for the ingress
- annotations: {}
+ annotations:
# kubernetes.io/tls-acme: "true"
# cert-manager.io/issuer: ""
# cert-manager.io/cluster-issuer: ""