mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-11-21 14:03:21 -05:00
rename back to api
This commit is contained in:
parent
9c03f99524
commit
7368af7266
@ -5,6 +5,31 @@ Create kyoo ingress name
|
|||||||
{{- printf "%s-%s" (include "kyoo.fullname" .) "ingress" | trunc 63 | trimSuffix "-" -}}
|
{{- printf "%s-%s" (include "kyoo.fullname" .) "ingress" | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create kyoo api name
|
||||||
|
*/}}
|
||||||
|
{{- define "kyoo.api.fullname" -}}
|
||||||
|
{{- printf "%s-%s" (include "kyoo.fullname" .) .Values.api.name | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the api service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "kyoo.api.serviceAccountName" -}}
|
||||||
|
{{- if .Values.api.serviceAccount.create -}}
|
||||||
|
{{ default (include "kyoo.api.fullname" .) .Values.api.serviceAccount.name }}
|
||||||
|
{{- else -}}
|
||||||
|
{{ default "default" .Values.api.serviceAccount.name }}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create kyoo api-metadata name
|
||||||
|
*/}}
|
||||||
|
{{- define "kyoo.apimetadata.fullname" -}}
|
||||||
|
{{- printf "%s-%s%s" (include "kyoo.fullname" .) .Values.api.name "metadata" | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create kyoo auth name
|
Create kyoo auth name
|
||||||
*/}}
|
*/}}
|
||||||
@ -23,31 +48,6 @@ Create the name of the auth service account to use
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create kyoo back name
|
|
||||||
*/}}
|
|
||||||
{{- define "kyoo.back.fullname" -}}
|
|
||||||
{{- printf "%s-%s" (include "kyoo.fullname" .) .Values.back.name | trunc 63 | trimSuffix "-" -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create the name of the back service account to use
|
|
||||||
*/}}
|
|
||||||
{{- define "kyoo.back.serviceAccountName" -}}
|
|
||||||
{{- if .Values.back.serviceAccount.create -}}
|
|
||||||
{{ default (include "kyoo.back.fullname" .) .Values.back.serviceAccount.name }}
|
|
||||||
{{- else -}}
|
|
||||||
{{ default "default" .Values.back.serviceAccount.name }}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create kyoo back-metadata name
|
|
||||||
*/}}
|
|
||||||
{{- define "kyoo.backmetadata.fullname" -}}
|
|
||||||
{{- printf "%s-%s%s" (include "kyoo.fullname" .) .Values.back.name "metadata" | trunc 63 | trimSuffix "-" -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create kyoo front name
|
Create kyoo front name
|
||||||
|
|||||||
@ -1,39 +1,39 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
{{- with (mergeOverwrite (deepCopy .Values.global.deploymentAnnotations) .Values.back.deploymentAnnotations) }}
|
{{- with (mergeOverwrite (deepCopy .Values.global.deploymentAnnotations) .Values.api.deploymentAnnotations) }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- range $key, $value := . }}
|
{{- range $key, $value := . }}
|
||||||
{{ $key }}: {{ $value | quote }}
|
{{ $key }}: {{ $value | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ include "kyoo.back.fullname" . }}
|
name: {{ include "kyoo.api.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "kyoo.labels" (dict "context" . "component" .Values.back.name "name" .Values.back.name) | nindent 4 }}
|
{{- include "kyoo.labels" (dict "context" . "component" .Values.api.name "name" .Values.api.name) | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.back.replicaCount }}
|
replicas: {{ .Values.api.replicaCount }}
|
||||||
{{- with .Values.back.updateStrategy }}
|
{{- with .Values.api.updateStrategy }}
|
||||||
strategy:
|
strategy:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "kyoo.selectorLabels" (dict "context" . "name" .Values.back.name) | nindent 6 }}
|
{{- include "kyoo.selectorLabels" (dict "context" . "name" .Values.api.name) | nindent 6 }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.back.podAnnotations) }}
|
{{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.api.podAnnotations) }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- range $key, $value := . }}
|
{{- range $key, $value := . }}
|
||||||
{{ $key }}: {{ $value | quote }}
|
{{ $key }}: {{ $value | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "kyoo.labels" (dict "context" . "component" .Values.back.name "name" .Values.back.name) | nindent 8 }}
|
{{- include "kyoo.labels" (dict "context" . "component" .Values.api.name "name" .Values.api.name) | nindent 8 }}
|
||||||
{{- with (mergeOverwrite (deepCopy .Values.global.podLabels) .Values.back.podLabels) }}
|
{{- with (mergeOverwrite (deepCopy .Values.global.podLabels) .Values.api.podLabels) }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- with .Values.back.imagePullSecrets | default .Values.global.imagePullSecrets }}
|
{{- with .Values.api.imagePullSecrets | default .Values.global.imagePullSecrets }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -41,17 +41,17 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
serviceAccountName: {{ include "kyoo.back.serviceAccountName" . }}
|
serviceAccountName: {{ include "kyoo.api.serviceAccountName" . }}
|
||||||
initContainers:
|
initContainers:
|
||||||
{{- with .Values.back.extraInitContainers }}
|
{{- with .Values.api.extraInitContainers }}
|
||||||
{{- tpl (toYaml .) $ | nindent 6 }}
|
{{- tpl (toYaml .) $ | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: main
|
- name: main
|
||||||
image: {{ .Values.back.kyoo_back.image.repository | default (printf "%s/kyoo_back" .Values.global.image.repositoryBase) }}:{{ default (include "kyoo.defaultTag" .) .Values.back.kyoo_back.image.tag }}
|
image: {{ .Values.api.kyoo_api.image.repository | default (printf "%s/kyoo_api" .Values.global.image.repositoryBase) }}:{{ default (include "kyoo.defaultTag" .) .Values.api.kyoo_api.image.tag }}
|
||||||
imagePullPolicy: {{ default .Values.global.image.imagePullPolicy }}
|
imagePullPolicy: {{ default .Values.global.image.imagePullPolicy }}
|
||||||
args:
|
args:
|
||||||
{{- with .Values.back.kyoo_back.extraArgs }}
|
{{- with .Values.api.kyoo_api.extraArgs }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
@ -75,19 +75,19 @@ spec:
|
|||||||
- name: POSTGRES_USER
|
- name: POSTGRES_USER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: {{ .Values.global.postgres.kyoo_back.kyoo_back.userKey }}
|
key: {{ .Values.global.postgres.kyoo_api.kyoo_api.userKey }}
|
||||||
name: {{ .Values.global.postgres.kyoo_back.kyoo_back.existingSecret }}
|
name: {{ .Values.global.postgres.kyoo_api.kyoo_api.existingSecret }}
|
||||||
- name: POSTGRES_PASSWORD
|
- name: POSTGRES_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
key: {{ .Values.global.postgres.kyoo_back.kyoo_back.passwordKey }}
|
key: {{ .Values.global.postgres.kyoo_api.kyoo_api.passwordKey }}
|
||||||
name: {{ .Values.global.postgres.kyoo_back.kyoo_back.existingSecret }}
|
name: {{ .Values.global.postgres.kyoo_api.kyoo_api.existingSecret }}
|
||||||
- name: POSTGRES_DB
|
- name: POSTGRES_DB
|
||||||
value: {{ .Values.global.postgres.kyoo_back.database }}
|
value: {{ .Values.global.postgres.kyoo_api.database }}
|
||||||
- name: POSTGRES_SERVER
|
- name: POSTGRES_SERVER
|
||||||
value: {{ .Values.global.postgres.kyoo_back.host | quote }}
|
value: {{ .Values.global.postgres.kyoo_api.host | quote }}
|
||||||
- name: POSTGRES_PORT
|
- name: POSTGRES_PORT
|
||||||
value: {{ .Values.global.postgres.kyoo_back.port | quote }}
|
value: {{ .Values.global.postgres.kyoo_api.port | quote }}
|
||||||
{{- range $index, $provider := .Values.kyoo.oidc_providers }}
|
{{- range $index, $provider := .Values.kyoo.oidc_providers }}
|
||||||
- name: OIDC_{{ $provider.name | upper }}_NAME
|
- name: OIDC_{{ $provider.name | upper }}_NAME
|
||||||
value: {{ $provider.name | quote }}
|
value: {{ $provider.name | quote }}
|
||||||
@ -114,58 +114,58 @@ spec:
|
|||||||
- name: OIDC_{{ $provider.name | upper }}_AUTHMETHOD
|
- name: OIDC_{{ $provider.name | upper }}_AUTHMETHOD
|
||||||
value: {{ $provider.authMethod | default "ClientSecretBasic" | quote }}
|
value: {{ $provider.authMethod | default "ClientSecretBasic" | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with (concat .Values.global.extraEnv .Values.back.kyoo_back.extraEnv) }}
|
{{- with (concat .Values.global.extraEnv .Values.api.kyoo_api.extraEnv) }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: main
|
- name: main
|
||||||
containerPort: 5000
|
containerPort: 5000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{- with .Values.back.kyoo_back.livenessProbe }}
|
{{- with .Values.api.kyoo_api.livenessProbe }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.back.kyoo_back.readinessProbe }}
|
{{- with .Values.api.kyoo_api.readinessProbe }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.back.kyoo_back.resources }}
|
{{- with .Values.api.kyoo_api.resources }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.back.kyoo_back.containerSecurityContext }}
|
{{- with .Values.api.kyoo_api.containerSecurityContext }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- if .Values.back.persistence.enabled }}
|
{{- if .Values.api.persistence.enabled }}
|
||||||
- name: backmetadata
|
- name: apimetadata
|
||||||
mountPath: /metadata
|
mountPath: /metadata
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.back.kyoo_back.volumeMounts }}
|
{{- with .Values.api.kyoo_api.volumeMounts }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.back.kyoo_back.extraVolumeMounts }}
|
{{- with .Values.api.kyoo_api.extraVolumeMounts }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.back.extraContainers }}
|
{{- with .Values.api.extraContainers }}
|
||||||
{{- tpl (toYaml .) $ | nindent 8 }}
|
{{- tpl (toYaml .) $ | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
{{- if .Values.back.persistence.enabled }}
|
{{- if .Values.api.persistence.enabled }}
|
||||||
{{- if .Values.back.persistence.existingClaim }}
|
{{- if .Values.api.persistence.existingClaim }}
|
||||||
- name: backmetadata
|
- name: apimetadata
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ .Values.back.persistence.existingClaim }}
|
claimName: {{ .Values.api.persistence.existingClaim }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- name: backmetadata
|
- name: apimetadata
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ include "kyoo.backmetadata.fullname" . }}
|
claimName: {{ include "kyoo.apimetadata.fullname" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.back.volumes }}
|
{{- with .Values.api.volumes }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.back.extraVolumes }}
|
{{- with .Values.api.extraVolumes }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
25
chart/templates/api/pvc.yaml
Normal file
25
chart/templates/api/pvc.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{{- if and .Values.api.persistence.enabled (not .Values.api.persistence.existingClaim) }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: {{ include "kyoo.apimetadata.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "kyoo.labels" (dict "context" . "component" .Values.api.name "name" .Values.api.name) | nindent 4 }}
|
||||||
|
{{- with (mergeOverwrite (deepCopy .Values.global.persistentVolumeClaimAnnotations) .Values.api.persistence.annotations) }}
|
||||||
|
annotations:
|
||||||
|
{{- range $key, $value := . }}
|
||||||
|
{{ $key }}: {{ $value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
{{- range .Values.api.persistence.accessModes }}
|
||||||
|
- {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.api.persistence.size }}
|
||||||
|
{{- if .Values.api.persistence.storageClass }}
|
||||||
|
storageClassName: {{ .Values.api.persistence.storageClass }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@ -1,24 +1,24 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
{{- if .Values.back.service.annotations }}
|
{{- if .Values.api.service.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- range $key, $value := .Values.back.service.annotations }}
|
{{- range $key, $value := .Values.api.service.annotations }}
|
||||||
{{ $key }}: {{ $value | quote }}
|
{{ $key }}: {{ $value | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
name: {{ include "kyoo.back.fullname" . }}
|
name: {{ include "kyoo.api.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "kyoo.labels" (dict "context" . "component" .Values.back.name "name" .Values.back.name) | nindent 4 }}
|
{{- include "kyoo.labels" (dict "context" . "component" .Values.api.name "name" .Values.api.name) | nindent 4 }}
|
||||||
{{- with .Values.back.service.labels }}
|
{{- with .Values.api.service.labels }}
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
type: {{ .Values.back.service.type }}
|
type: {{ .Values.api.service.type }}
|
||||||
ports:
|
ports:
|
||||||
- port: 5000
|
- port: 5000
|
||||||
targetPort: 5000
|
targetPort: 5000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: main
|
name: main
|
||||||
selector:
|
selector:
|
||||||
{{- include "kyoo.selectorLabels" (dict "context" . "name" .Values.back.name) | nindent 4 }}
|
{{- include "kyoo.selectorLabels" (dict "context" . "name" .Values.api.name) | nindent 4 }}
|
||||||
13
chart/templates/api/serviceaccount.yaml
Normal file
13
chart/templates/api/serviceaccount.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{{- if .Values.api.serviceAccount.create -}}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
automountServiceAccountToken: {{ .Values.api.serviceAccount.automount }}
|
||||||
|
metadata:
|
||||||
|
name: {{ include "kyoo.api.serviceAccountName" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "kyoo.labels" (dict "context" . "component" .Values.api.name "name" .Values.api.name) | nindent 4 }}
|
||||||
|
{{- with .Values.api.serviceAccount.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
@ -1,25 +0,0 @@
|
|||||||
{{- if and .Values.back.persistence.enabled (not .Values.back.persistence.existingClaim) }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: {{ include "kyoo.backmetadata.fullname" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "kyoo.labels" (dict "context" . "component" .Values.back.name "name" .Values.back.name) | nindent 4 }}
|
|
||||||
{{- with (mergeOverwrite (deepCopy .Values.global.persistentVolumeClaimAnnotations) .Values.back.persistence.annotations) }}
|
|
||||||
annotations:
|
|
||||||
{{- range $key, $value := . }}
|
|
||||||
{{ $key }}: {{ $value | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
{{- range .Values.back.persistence.accessModes }}
|
|
||||||
- {{ . }}
|
|
||||||
{{- end }}
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ .Values.back.persistence.size }}
|
|
||||||
{{- if .Values.back.persistence.storageClass }}
|
|
||||||
storageClassName: {{ .Values.back.persistence.storageClass }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
{{- if .Values.back.serviceAccount.create -}}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
automountServiceAccountToken: {{ .Values.back.serviceAccount.automount }}
|
|
||||||
metadata:
|
|
||||||
name: {{ include "kyoo.back.serviceAccountName" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "kyoo.labels" (dict "context" . "component" .Values.back.name "name" .Values.back.name) | nindent 4 }}
|
|
||||||
{{- with .Values.back.serviceAccount.annotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
@ -52,7 +52,7 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
- name: KYOO_URL
|
- name: KYOO_URL
|
||||||
value: "http://{{ include "kyoo.back.fullname" . }}:5000/api"
|
value: "http://{{ include "kyoo.api.fullname" . }}:5000/api"
|
||||||
{{- with (concat .Values.global.extraEnv .Values.front.kyoo_front.extraEnv) }}
|
{{- with (concat .Values.global.extraEnv .Values.front.kyoo_front.extraEnv) }}
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@ -61,7 +61,7 @@ spec:
|
|||||||
key: {{ .Values.kyoo.apikey.apikeyKey }}
|
key: {{ .Values.kyoo.apikey.apikeyKey }}
|
||||||
name: {{ .Values.kyoo.apikey.existingSecret }}
|
name: {{ .Values.kyoo.apikey.existingSecret }}
|
||||||
- name: KYOO_URL
|
- name: KYOO_URL
|
||||||
value: "http://{{ include "kyoo.back.fullname" . }}:5000/api"
|
value: "http://{{ include "kyoo.api.fullname" . }}:5000/api"
|
||||||
- name: LIBRARY_LANGUAGES
|
- name: LIBRARY_LANGUAGES
|
||||||
value: {{ .Values.kyoo.languages | quote }}
|
value: {{ .Values.kyoo.languages | quote }}
|
||||||
{{- with (concat .Values.global.extraEnv .Values.scanner.kyoo_scanner.extraEnv) }}
|
{{- with (concat .Values.global.extraEnv .Values.scanner.kyoo_scanner.extraEnv) }}
|
||||||
|
|||||||
@ -41,12 +41,12 @@ data:
|
|||||||
api:
|
api:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- web
|
- web
|
||||||
service: back
|
service: api
|
||||||
rule: "PathPrefix(`/api/`)"
|
rule: "PathPrefix(`/api/`)"
|
||||||
swagger:
|
swagger:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- web
|
- web
|
||||||
service: back
|
service: api
|
||||||
rule: "PathPrefix(`/swagger`)"
|
rule: "PathPrefix(`/swagger`)"
|
||||||
scanner:
|
scanner:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
@ -63,10 +63,10 @@ data:
|
|||||||
authResponseHeaders:
|
authResponseHeaders:
|
||||||
- Authorization
|
- Authorization
|
||||||
services:
|
services:
|
||||||
back:
|
api:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
- url: http://{{ include "kyoo.back.fullname" . }}:5000/
|
- url: http://{{ include "kyoo.api.fullname" . }}:5000/
|
||||||
front:
|
front:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
|
|||||||
@ -143,6 +143,54 @@ contentdatabase:
|
|||||||
pinKey: tvdb_pin
|
pinKey: tvdb_pin
|
||||||
existingSecret: bigsecret
|
existingSecret: bigsecret
|
||||||
|
|
||||||
|
# api deployment configuration
|
||||||
|
api:
|
||||||
|
name: api
|
||||||
|
# kyoo_back container configuration
|
||||||
|
kyoo_api:
|
||||||
|
livenessProbe: {}
|
||||||
|
readinessProbe: {}
|
||||||
|
resources: {}
|
||||||
|
containerSecurityContext: {}
|
||||||
|
extraVolumeMounts: []
|
||||||
|
extraArgs: []
|
||||||
|
extraEnv: []
|
||||||
|
image:
|
||||||
|
repository: ~
|
||||||
|
tag: ~
|
||||||
|
volumeMounts: []
|
||||||
|
volumes: []
|
||||||
|
replicaCount: 1
|
||||||
|
# default to recreate for better user experience with ReadWriteOnce volumes
|
||||||
|
updateStrategy:
|
||||||
|
type: Recreate
|
||||||
|
podLabels: {}
|
||||||
|
deploymentAnnotations: {}
|
||||||
|
podAnnotations: {}
|
||||||
|
imagePullSecrets: []
|
||||||
|
service:
|
||||||
|
annotations: {}
|
||||||
|
labels: {}
|
||||||
|
type: ClusterIP
|
||||||
|
serviceAccount:
|
||||||
|
create: true
|
||||||
|
automount: true
|
||||||
|
annotations: {}
|
||||||
|
name: ~
|
||||||
|
extraContainers: []
|
||||||
|
extraInitContainers: []
|
||||||
|
extraVolumes: []
|
||||||
|
# apimetadata
|
||||||
|
# user profile pictures
|
||||||
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
size: 3Gi
|
||||||
|
annotations: {}
|
||||||
|
storageClass: ""
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
existingClaim: ""
|
||||||
|
|
||||||
# auth deployment configuration
|
# auth deployment configuration
|
||||||
auth:
|
auth:
|
||||||
name: auth
|
name: auth
|
||||||
@ -177,54 +225,6 @@ auth:
|
|||||||
extraInitContainers: []
|
extraInitContainers: []
|
||||||
extraVolumes: []
|
extraVolumes: []
|
||||||
|
|
||||||
# back deployment configuration
|
|
||||||
back:
|
|
||||||
name: back
|
|
||||||
# kyoo_back container configuration
|
|
||||||
kyoo_back:
|
|
||||||
livenessProbe: {}
|
|
||||||
readinessProbe: {}
|
|
||||||
resources: {}
|
|
||||||
containerSecurityContext: {}
|
|
||||||
extraVolumeMounts: []
|
|
||||||
extraArgs: []
|
|
||||||
extraEnv: []
|
|
||||||
image:
|
|
||||||
repository: ~
|
|
||||||
tag: ~
|
|
||||||
volumeMounts: []
|
|
||||||
volumes: []
|
|
||||||
replicaCount: 1
|
|
||||||
# default to recreate for better user experience with ReadWriteOnce volumes
|
|
||||||
updateStrategy:
|
|
||||||
type: Recreate
|
|
||||||
podLabels: {}
|
|
||||||
deploymentAnnotations: {}
|
|
||||||
podAnnotations: {}
|
|
||||||
imagePullSecrets: []
|
|
||||||
service:
|
|
||||||
annotations: {}
|
|
||||||
labels: {}
|
|
||||||
type: ClusterIP
|
|
||||||
serviceAccount:
|
|
||||||
create: true
|
|
||||||
automount: true
|
|
||||||
annotations: {}
|
|
||||||
name: ~
|
|
||||||
extraContainers: []
|
|
||||||
extraInitContainers: []
|
|
||||||
extraVolumes: []
|
|
||||||
# backmetadata
|
|
||||||
# user profile pictures
|
|
||||||
persistence:
|
|
||||||
enabled: true
|
|
||||||
size: 3Gi
|
|
||||||
annotations: {}
|
|
||||||
storageClass: ""
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
existingClaim: ""
|
|
||||||
|
|
||||||
# front deployment configuration
|
# front deployment configuration
|
||||||
front:
|
front:
|
||||||
name: front
|
name: front
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user