diff --git a/llama-cpp/templates/deployment.yaml b/llama-cpp/templates/deployment.yaml index 4259483..c23a5fa 100644 --- a/llama-cpp/templates/deployment.yaml +++ b/llama-cpp/templates/deployment.yaml @@ -33,7 +33,6 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: {{ printf "%s:%s" .Values.image.repository (.Values.image.tag | default .Chart.AppVersion) }} imagePullPolicy: {{ .Values.image.pullPolicy }} - command: [ "/server"] args: - "--port" - {{ .Values.service.port | quote }} diff --git a/llama-cpp/templates/pvc.yaml b/llama-cpp/templates/pvc.yaml index 0eca049..ccb5b6d 100644 --- a/llama-cpp/templates/pvc.yaml +++ b/llama-cpp/templates/pvc.yaml @@ -4,7 +4,9 @@ metadata: name: models spec: accessModes: - - ReadWriteMany + {{- range $value := .Values.storage.accessModes }} + - {{ $value }} + {{- end }} resources: requests: storage: {{ .Values.storage.size }} diff --git a/llama-cpp/templates/service.yaml b/llama-cpp/templates/service.yaml index 82770a3..4b30d1c 100644 --- a/llama-cpp/templates/service.yaml +++ b/llama-cpp/templates/service.yaml @@ -1,13 +1,13 @@ apiVersion: v1 kind: Service metadata: - name: { { include "llama-cpp.fullname" . } } - labels: { { - include "llama-cpp.labels" . | nindent 4 } } + name: {{ include "llama-cpp.fullname" . }} + labels: {{- include "llama-cpp.labels" . | nindent 4 }} spec: - type: { { .Values.service.type } } + type: {{ .Values.service.type }} ports: - - port: { { .Values.service.port } } + - port: {{ .Values.service.port }} targetPort: http protocol: TCP name: http - selector: { { - include "llama-cpp.selectorLabels" . | nindent 4 } } + selector: {{- include "llama-cpp.selectorLabels" . | nindent 4 }} diff --git a/llama-cpp/values.yaml b/llama-cpp/values.yaml index 82cb43e..1a2c7c7 100644 --- a/llama-cpp/values.yaml +++ b/llama-cpp/values.yaml @@ -24,6 +24,9 @@ llama: storage: size: 24Gi storageClass: "local-path" + accessModes: + - ReadWriteOnce + imagePullSecrets: [] nameOverride: "" fullnameOverride: ""