update scanner settings

This commit is contained in:
Arlan Lloyd 2025-11-01 02:45:01 +00:00 committed by Zoe Roux
parent d7748eb83e
commit de718b6a46
No known key found for this signature in database
3 changed files with 33 additions and 0 deletions

View File

@ -94,6 +94,10 @@ spec:
{{- with (concat .Values.global.extraEnv .Values.scanner.kyoo_scanner.extraEnv) }}
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
- name: web
containerPort: 4389
protocol: TCP
{{- with .Values.scanner.kyoo_scanner.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 12 }}

View File

@ -0,0 +1,25 @@
apiVersion: v1
kind: Service
metadata:
{{- if .Values.scanner.service.annotations }}
annotations:
{{- range $key, $value := .Values.scanner.service.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
name: {{ include "kyoo.scanner.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "kyoo.labels" (dict "context" . "component" .Values.scanner.name "name" .Values.scanner.name) | nindent 4 }}
{{- with .Values.scanner.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.scanner.service.type }}
ports:
- port: 4389
targetPort: 4389
protocol: TCP
name: main
selector:
{{- include "kyoo.selectorLabels" (dict "context" . "name" .Values.scanner.name) | nindent 4 }}

View File

@ -285,6 +285,10 @@ scanner:
deploymentAnnotations: {}
podAnnotations: {}
imagePullSecrets: []
service:
annotations: {}
labels: {}
type: ClusterIP
serviceAccount:
create: true
automount: true