Ver Fonte

fix types

duhow há 1 ano atrás
pai
commit
7d947c2988

+ 2 - 2
kubernetes/helm/templates/ollama-service.yaml

@@ -16,6 +16,6 @@ spec:
   ports:
   - protocol: TCP
     name: http
-    port: http
-    targetPort: {{ .port }}
+    port: {{ .port }}
+    targetPort: http
 {{- end }}

+ 1 - 1
kubernetes/helm/templates/ollama-statefulset.yaml

@@ -70,7 +70,7 @@ spec:
       - name: data
         emptyDir: {}
       {{- else if and .Values.ollama.persistence.enabled (not .Values.ollama.persistence.existingClaim) }}
-        {}
+        []
   volumeClaimTemplates:
   - metadata:
       name: data

+ 3 - 3
kubernetes/helm/templates/webui-service.yaml

@@ -11,9 +11,9 @@ spec:
   type: {{ .type }}
   ports:
   - protocol: TCP
-    port: http
-    targetPort: {{ .port }}
+    port: {{ .port }}
+    targetPort: http
     {{- if .nodePort }}
-    nodePort: {{ .nodePort }}
+    nodePort: {{ .nodePort | int }}
     {{- end }}
 {{- end }}