mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-18 08:27:03 +02:00
Merge pull request #495 from argosopentech/yaml-auto-formatting
Ran automattic formatting
This commit is contained in:
commit
4cb0ad5ca5
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
# this will add an api key with a limit of 120 requests per minute
|
# this will add an api key with a limit of 120 requests per minute
|
||||||
kubectl exec -it {{ include "libretranslate.fullname" . }}-0 -c {{ include "libretranslate.fullname" . }} -- /bin/bash -c "source ./venv/bin/activate && ltmanage keys add --key req-limit-120 120"
|
kubectl exec -it {{ include "libretranslate.fullname" . }}-0 -c {{ include "libretranslate.fullname" . }} -- /bin/bash -c "source ./venv/bin/activate && ltmanage keys add --key req-limit-120 120"
|
||||||
|
|
||||||
# returns a list of all api keys
|
# returns a list of all api keys
|
||||||
kubectl exec -it {{ include "libretranslate.fullname" . }}-0 -c {{ include "libretranslate.fullname" . }} -- /bin/bash -c "source ./venv/bin/activate && ltmanage keys"
|
kubectl exec -it {{ include "libretranslate.fullname" . }}-0 -c {{ include "libretranslate.fullname" . }} -- /bin/bash -c "source ./venv/bin/activate && ltmanage keys"
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ spec:
|
|||||||
{{- toYaml .Values.podAnnotations | nindent 8 }}
|
{{- toYaml .Values.podAnnotations | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||||||
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
|
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "libretranslate.selectorLabels" . | nindent 8 }}
|
{{- include "libretranslate.selectorLabels" . | nindent 8 }}
|
||||||
spec:
|
spec:
|
||||||
@ -294,12 +294,12 @@ spec:
|
|||||||
- name: db-volume
|
- name: db-volume
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: db-volume
|
claimName: db-volume
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if eq .Values.persistence.models.accessMode "ReadWriteMany" }}
|
{{- if eq .Values.persistence.models.accessMode "ReadWriteMany" }}
|
||||||
- name: models-volume
|
- name: models-volume
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: models-volume
|
claimName: models-volume
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.tolerations }}
|
{{- if .Values.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
|
@ -115,11 +115,11 @@ livenessProbe:
|
|||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
|
|
||||||
# Auth secret for basic authentication
|
# Auth secret for basic authentication
|
||||||
# generate base64-user-password-pair with:
|
# generate base64-user-password-pair with:
|
||||||
# htpasswd -nb <username> <password> | base64
|
# htpasswd -nb <username> <password> | base64
|
||||||
#
|
#
|
||||||
# e.g.:
|
# e.g.:
|
||||||
#
|
#
|
||||||
# htpasswd -nb admin mySecretPassword | base64
|
# htpasswd -nb admin mySecretPassword | base64
|
||||||
# This is used by the nginx ingress controller to enable basic auth for the whole site.
|
# This is used by the nginx ingress controller to enable basic auth for the whole site.
|
||||||
# It will create a secret with the name libretranslate-auth.
|
# It will create a secret with the name libretranslate-auth.
|
||||||
|
Loading…
Reference in New Issue
Block a user