matrix-media-repo: Final chart cleanups for 1.0

This commit is contained in:
Alexander Olofsson 2020-08-14 11:01:18 +02:00
parent a05b870142
commit 145a03759e
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
3 changed files with 43 additions and 11 deletions

View file

@ -5,7 +5,7 @@ description: Matrix media repository with multi-domain in mind.
appVersion: 1.2.0 appVersion: 1.2.0
type: application type: application
version: 0.1.1 version: 1.0.0
maintainers: maintainers:
- name: Alexander Olofsson - name: Alexander Olofsson
email: ace@haxalot.com email: ace@haxalot.com

View file

@ -41,11 +41,14 @@ spec:
done done
) & ) &
REPO_CONFIG=/config/combined media_repo media_repo
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ include "matrix-media-repo.imageTag" . }}" image: "{{ .Values.image.repository }}:{{ include "matrix-media-repo.imageTag" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: REPO_CONFIG
value: /config/combined
ports: ports:
- name: http - name: http
containerPort: 8000 containerPort: 8000
@ -62,7 +65,7 @@ spec:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
volumeMounts: volumeMounts:
- mountPath: /config/combined - mountPath: /config/combined
name: empty name: empty-combined
- mountPath: /config/config - mountPath: /config/config
name: config name: config
- mountPath: /config/secrets - mountPath: /config/secrets
@ -70,7 +73,7 @@ spec:
- mountPath: /media - mountPath: /media
name: data name: data
volumes: volumes:
- name: empty - name: empty-combined
emptyDir: {} emptyDir: {}
- name: config - name: config
configMap: configMap:

View file

@ -1,6 +1,10 @@
--- ---
## Number of replicas for the media repo
##
replicaCount: 1 replicaCount: 1
## Image configuration for the media repo
##
image: image:
repository: turt2live/matrix-media-repo repository: turt2live/matrix-media-repo
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
@ -10,7 +14,7 @@ imagePullSecrets: []
# nameOverride: "" # nameOverride: ""
# fullnameOverride: "" # fullnameOverride: ""
## Global configuration ## Global configuration.
## Ref: https://github.com/turt2live/matrix-media-repo/blob/master/config.sample.yaml ## Ref: https://github.com/turt2live/matrix-media-repo/blob/master/config.sample.yaml
## ##
config: config:
@ -40,12 +44,14 @@ config:
# MSC2448: # MSC2448:
# enabled: true # enabled: true
## For setting extra parameters on the repo block ## For setting extra parameters on the repo block, separated to avoid breaking
## the defaults when merging multiple configurations.
## Ref: https://github.com/turt2live/matrix-media-repo/blob/master/config.sample.yaml#L1-L22
## ##
extraRepo: {} extraRepo: {}
# useForwardedHost: false # useForwardedHost: false
## Per-domain configuration ## Per-domain configuration.
## Ref: https://github.com/turt2live/matrix-media-repo/blob/master/docs/config.md ## Ref: https://github.com/turt2live/matrix-media-repo/blob/master/docs/config.md
## ##
homeservers: {} homeservers: {}
@ -56,8 +62,8 @@ homeservers: {}
# identicons: # identicons:
# enabled: false # enabled: false
## Media persistence ## Media persistence, mounted in the pod as /media.
## Can be disabled if no datastore uses it ## Can be disabled if no datastore uses it.
## ##
persistence: persistence:
enabled: true enabled: true
@ -81,7 +87,7 @@ postgresql:
persistence: persistence:
size: 16G size: 16G
## An externally configured Postgres server ## An externally configured Postgres server.
## ##
externalPostgresql: externalPostgresql:
# host: postgres # host: postgres
@ -91,20 +97,28 @@ externalPostgresql:
database: matrix_media_repo database: matrix_media_repo
# sslMode: require # sslMode: require
## Configures an application-specific service account.
##
serviceAccount: serviceAccount:
# Specifies whether a service account should be created
create: false create: false
# Annotations to add to the service account # Annotations to add to the service account
annotations: {} annotations: {}
# The name of the service account to use. # The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template # If not set and create is true, a name is generated using the fullname template
name: "" name: ""
## Additional annotations to add to the pod.
##
podAnnotations: {} podAnnotations: {}
## Security context configuration to add to the pod.
##
podSecurityContext: {} podSecurityContext: {}
# fsGroup: 2000 # fsGroup: 2000
## Security context configuration to add to the container inside the pod.
##
securityContext: {} securityContext: {}
# capabilities: # capabilities:
# drop: # drop:
@ -113,10 +127,14 @@ securityContext: {}
# runAsNonRoot: true # runAsNonRoot: true
# runAsUser: 1000 # runAsUser: 1000
## Service configuration.
##
service: service:
type: ClusterIP type: ClusterIP
port: 80 port: 80
## Ingress configuration.
##
ingress: ingress:
enabled: false enabled: false
annotations: {} annotations: {}
@ -130,6 +148,8 @@ ingress:
# hosts: # hosts:
# - chart-example.local # - chart-example.local
## Resource configuration for the application.
##
resources: {} resources: {}
# limits: # limits:
# cpu: 250m # cpu: 250m
@ -138,6 +158,9 @@ resources: {}
# cpu: 250m # cpu: 250m
# memory: 512Mi # memory: 512Mi
## Configure auto-scaling for the application.
## NB; Make sure to read all relevant documentation before playing with this.
##
autoscaling: autoscaling:
enabled: false enabled: false
minReplicas: 1 minReplicas: 1
@ -145,8 +168,14 @@ autoscaling:
targetCPUUtilizationPercentage: 80 targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80
## Node selectors to use when deploying the application.
##
nodeSelector: {} nodeSelector: {}
## Tolerations to apply to the application.
##
tolerations: [] tolerations: []
## Affinities to set on the application.
##
affinity: {} affinity: {}