diff --git a/README.md b/README.md index 1f24d25..9104716 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,6 @@ Below you'll find an overview of the charts and an intro to get you started. 🟢 [Matrix Synapse](charts/matrix-synapse): An end-to-end encrypted, open source (not free) and UX-friendly alternative to Slack, Teams and Mattermost. I currently have simplified and use this. Based on the chart by ananace. -🟢 [Sliding Sync Proxy](charts/sliding-sync-proxy): A proxy to Matrix servers for the new Element X client. - 🟢 [Matrix Authentication Service](charts/matrix-authentication-service): Matrix auth system implementing MSC3861 🟢 [Maubot](charts/maubot): Matrix bot system. @@ -46,8 +44,6 @@ Below you'll find an overview of the charts and an intro to get you started. 🚧 [Element Call](charts/element-call): WebRTC server for calls and video using Matrix for signalling. Not functional atm. -⚠️ [Conduit](charts/conduit): An efficient and self-contained Matrix server using an embedded RocksDB database. Currently I use Synapse instead. - ⚠️ [Netbox](charts/netbox): Modeling and docs for IP address management (IPAM) and datacenter infrastructure management (DCIM). This deploys ok but has a few moving parts. ## 🤩 Licenses and Gratitude diff --git a/charts/conduit/.helmignore b/charts/conduit/.helmignore deleted file mode 100644 index 0e8a0eb..0000000 --- a/charts/conduit/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/charts/conduit/Chart.yaml b/charts/conduit/Chart.yaml deleted file mode 100644 index b5f255e..0000000 --- a/charts/conduit/Chart.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v2 -name: conduit -description: Conduit is a simple, fast and reliable chat server powered by Matrix. -type: application -# renovate: image=matrixconduit/matrix-conduit -appVersion: "0.6.0" -version: 0.4.1 -maintainers: -- name: Tommy Skaug - email: tommy@skaug.me -keywords: -- kubernetes -- matrixorg -- messenger -- encryption -- selfhosted -sources: -- https://gitlab.com/famedly/conduit diff --git a/charts/conduit/ci/pluto-values.yaml b/charts/conduit/ci/pluto-values.yaml deleted file mode 100644 index 66fba46..0000000 --- a/charts/conduit/ci/pluto-values.yaml +++ /dev/null @@ -1,104 +0,0 @@ -# Default values for conduit. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -replicaCount: 1 - -image: - repository: registry.gitlab.com/famedly/conduit/matrix-conduit - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "" - -imagePullSecrets: [] -nameOverride: "" -fullnameOverride: "" - -serviceAccount: - # Specifies whether a service account should be created - create: true - # Annotations to add to the service account - annotations: {} - # The name of the service account to use. - # If not set and create is true, a name is generated using the fullname template - name: "" - -conduit: - server_name: "your.server.name" - allowRegistration: false - allowEncryption: true - allowFederation: true - allowRoomCreation: true - allowUnstableRoomVersions: true - trustedServers: - - "matrix.org" - maxRequestSize: "20000000" # in bytes, ~20 MB - # maxConcurrentRequests: 100 - maxConcurrentRequests: # log: "warn,rocket=off,_=off,sled=off" - - log: - registrationToken: - - -podLabels: {} -podAnnotations: {} - -securityContext: {} - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 6167 - -resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi - -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -nodeSelector: {} - -tolerations: [] - -affinity: {} - -## Enable persistence using Persistent Volume Claims -## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ -## -persistence: - enabled: true - annotations: {} - ## Persistent Volume Storage Class - ## If defined, storageClassName: - ## If set to "-", storageClassName: "", which disables dynamic provisioning - ## If undefined (the default) or set to null, no storageClassName spec is - ## set, choosing the default provisioner. (gp2 on AWS, standard on - ## GKE, AWS & OpenStack) - ## - # storageClass: "-" - - ## A manually managed Persistent Volume and Claim - ## Requires persistence.enabled: true - ## If defined, PVC must be created manually before volume will be bound - # existingClaim: - - accessMode: ReadWriteOnce - size: 1Gi diff --git a/charts/conduit/templates/NOTES.txt b/charts/conduit/templates/NOTES.txt deleted file mode 100644 index e69de29..0000000 diff --git a/charts/conduit/templates/_helpers.tpl b/charts/conduit/templates/_helpers.tpl deleted file mode 100644 index dd185c6..0000000 --- a/charts/conduit/templates/_helpers.tpl +++ /dev/null @@ -1,62 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "conduit.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "conduit.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "conduit.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "conduit.labels" -}} -helm.sh/chart: {{ include "conduit.chart" . }} -{{ include "conduit.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "conduit.selectorLabels" -}} -app.kubernetes.io/name: {{ include "conduit.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} - -{{/* -Create the name of the service account to use -*/}} -{{- define "conduit.serviceAccountName" -}} -{{- if .Values.serviceAccount.create }} -{{- default (include "conduit.fullname" .) .Values.serviceAccount.name }} -{{- else }} -{{- default "default" .Values.serviceAccount.name }} -{{- end }} -{{- end }} diff --git a/charts/conduit/templates/deployment.yaml b/charts/conduit/templates/deployment.yaml deleted file mode 100644 index 4b81e4b..0000000 --- a/charts/conduit/templates/deployment.yaml +++ /dev/null @@ -1,122 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "conduit.fullname" . }} - labels: - {{- include "conduit.labels" . | nindent 4 }} -spec: - {{- if not .Values.autoscaling.enabled }} - replicas: {{ .Values.replicaCount }} - {{- end }} - strategy: - type: Recreate - selector: - matchLabels: - {{- include "conduit.selectorLabels" . | nindent 6 }} - type: conduit - template: - metadata: - {{- with .Values.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "conduit.selectorLabels" . | nindent 8 }} - {{- with .Values.podLabels }} - {{- toYaml . | nindent 8 }} - {{- end }} - type: conduit - spec: - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - serviceAccountName: {{ include "conduit.serviceAccountName" . }} - securityContext: - # the conduit group is 1000 in the image - # set fsGroup to allow write to PVC - fsGroup: 1000 - containers: - - name: {{ .Chart.Name }} - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - ports: - - name: http - containerPort: {{ .Values.service.port }} - protocol: TCP - livenessProbe: - httpGet: - path: / - port: http - readinessProbe: - httpGet: - path: / - port: http - resources: - {{- toYaml .Values.resources | nindent 12 }} - env: - - name: "CONDUIT_PORT" - value: {{ .Values.service.port | quote }} - - name: "CONDUIT_ADDRESS" - value: "0.0.0.0" - - name: "CONDUIT_SERVER_NAME" - value: {{ .Values.conduit.server_name | quote }} - - name: "CONDUIT_DATABASE_PATH" - value: "/var/lib/conduit" - - name: "CONDUIT_DATABASE_BACKEND" - value: "rocksdb" - - name: "CONDUIT_ALLOW_CHECK_FOR_UPDATE" - value: "false" - - name: "CONDUIT_ALLOW_REGISTRATION" - value: {{ .Values.conduit.allowRegistration | quote }} - - name: "CONDUIT_ALLOW_ENCRYPTION" - value: {{ .Values.conduit.allowEncryption | quote }} - - name: "CONDUIT_ALLOW_FEDERATION" - value: {{ .Values.conduit.allowFederation | quote }} - - name: "CONDUIT_ALLOW_ROOM_CREATION" - value: {{ .Values.conduit.allowRoomCreation | quote }} - - name: "CONDUIT_ALLOW_UNSTABLE_ROOM_VERSIONS" - value: {{ .Values.conduit.allowUnstableRoomVersions | quote }} - - name: "CONDUIT_TRUSTED_SERVERS" - value: {{ toJson .Values.conduit.trustedServers | quote }} - - name: "CONDUIT_MAX_REQUEST_SIZE" - value: {{ .Values.conduit.maxRequestSize | quote }} - {{- with .Values.conduit.maxConcurrentRequests }} - - name: "CONDUIT_MAX_CONCURRENT_REQUESTS" - value: {{ . | quote }} - {{- end }} - {{- with .Values.conduit.log }} - - name: "CONDUIT_LOG" - value: {{ . | quote }} - {{- end }} - {{- with .Values.conduit.registrationToken }} - - name: "CONDUIT_REGISTRATION_TOKEN" - value: {{ . | quote }} - {{- end }} - - name: "CONDUIT_WELL_KNOWN_CLIENT" - value: "" - volumeMounts: - - name: "data" - mountPath: "/var/lib/conduit" - readOnly: false - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} - volumes: - {{- if .Values.persistence.enabled }} - - name: "data" - persistentVolumeClaim: - claimName: {{ template "conduit.fullname" . }} - {{- end }} - diff --git a/charts/conduit/templates/hpa.yaml b/charts/conduit/templates/hpa.yaml deleted file mode 100644 index 57e41df..0000000 --- a/charts/conduit/templates/hpa.yaml +++ /dev/null @@ -1,32 +0,0 @@ -{{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "conduit.fullname" . }} - labels: - {{- include "conduit.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "conduit.fullname" . }} - minReplicas: {{ .Values.autoscaling.minReplicas }} - maxReplicas: {{ .Values.autoscaling.maxReplicas }} - metrics: - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} -{{- end }} diff --git a/charts/conduit/templates/pvc.yaml b/charts/conduit/templates/pvc.yaml deleted file mode 100644 index 45ed0e9..0000000 --- a/charts/conduit/templates/pvc.yaml +++ /dev/null @@ -1,25 +0,0 @@ -{{- if and .Values.persistence.enabled -}} -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: {{ template "conduit.fullname" . }} - labels: - {{- include "conduit.labels" . | nindent 4 }} - {{- with .Values.persistence.annotations }} - annotations: - {{ toYaml . | indent 4 }} - {{- end }} -spec: - accessModes: - - {{ .Values.persistence.accessMode | quote }} - resources: - requests: - storage: {{ .Values.persistence.size | quote }} - {{- with .Values.persistence.storageClass }} - {{- if (eq "-" .) }} - storageClassName: "" - {{- else }} - storageClassName: {{ . | quote }} - {{- end }} - {{- end }} -{{- end -}} \ No newline at end of file diff --git a/charts/conduit/templates/service.yaml b/charts/conduit/templates/service.yaml deleted file mode 100644 index c85ff07..0000000 --- a/charts/conduit/templates/service.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ include "conduit.fullname" . }} - labels: - {{- include "conduit.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} - ports: - - port: {{ .Values.service.port }} - targetPort: http - protocol: TCP - name: http - selector: - {{- include "conduit.selectorLabels" . | nindent 4 }} - type: conduit diff --git a/charts/conduit/templates/serviceaccount.yaml b/charts/conduit/templates/serviceaccount.yaml deleted file mode 100644 index 54710fe..0000000 --- a/charts/conduit/templates/serviceaccount.yaml +++ /dev/null @@ -1,12 +0,0 @@ -{{- if .Values.serviceAccount.create -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ include "conduit.serviceAccountName" . }} - labels: - {{- include "conduit.labels" . | nindent 4 }} - {{- with .Values.serviceAccount.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/charts/conduit/templates/tests/test-connection.yaml b/charts/conduit/templates/tests/test-connection.yaml deleted file mode 100644 index e97e06d..0000000 --- a/charts/conduit/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "conduit.fullname" . }}-test-connection" - labels: - {{- include "conduit.labels" . | nindent 4 }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "conduit.fullname" . }}:{{ .Values.service.port }}'] - restartPolicy: Never diff --git a/charts/conduit/tests/values.yaml b/charts/conduit/tests/values.yaml deleted file mode 100644 index 87cf409..0000000 --- a/charts/conduit/tests/values.yaml +++ /dev/null @@ -1,103 +0,0 @@ -# Default values for conduit. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -replicaCount: 1 - -image: - repository: registry.gitlab.com/famedly/conduit/matrix-conduit - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "" - -imagePullSecrets: [] -nameOverride: "" -fullnameOverride: "" - -serviceAccount: - # Specifies whether a service account should be created - create: true - # Annotations to add to the service account - annotations: {} - # The name of the service account to use. - # If not set and create is true, a name is generated using the fullname template - name: "" - -conduit: - server_name: "your.server.name" - allowRegistration: false - allowEncryption: true - allowFederation: true - allowRoomCreation: true - allowUnstableRoomVersions: true - trustedServers: - - "matrix.org" - maxRequestSize: "20000000" # in bytes, ~20 MB - # maxConcurrentRequests: 100 - maxConcurrentRequests: - # log: "warn,rocket=off,_=off,sled=off" - log: - registrationToken: - -podLabels: {} -podAnnotations: {} - -securityContext: {} -# capabilities: -# drop: -# - ALL -# readOnlyRootFilesystem: true -# runAsNonRoot: true -# runAsUser: 1000 - -service: - type: ClusterIP - port: 6167 - -resources: {} -# We usually recommend not to specify default resources and to leave this as a conscious -# choice for the user. This also increases chances charts run on environments with little -# resources, such as Minikube. If you do want to specify resources, uncomment the following -# lines, adjust them as necessary, and remove the curly braces after 'resources:'. -# limits: -# cpu: 100m -# memory: 128Mi -# requests: -# cpu: 100m -# memory: 128Mi - -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -nodeSelector: {} - -tolerations: [] - -affinity: {} - -## Enable persistence using Persistent Volume Claims -## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ -## -persistence: - enabled: true - annotations: {} - ## Persistent Volume Storage Class - ## If defined, storageClassName: - ## If set to "-", storageClassName: "", which disables dynamic provisioning - ## If undefined (the default) or set to null, no storageClassName spec is - ## set, choosing the default provisioner. (gp2 on AWS, standard on - ## GKE, AWS & OpenStack) - ## - # storageClass: "-" - - ## A manually managed Persistent Volume and Claim - ## Requires persistence.enabled: true - ## If defined, PVC must be created manually before volume will be bound - # existingClaim: - - accessMode: ReadWriteOnce - size: 1Gi diff --git a/charts/conduit/values.yaml b/charts/conduit/values.yaml deleted file mode 100644 index 69f4fb3..0000000 --- a/charts/conduit/values.yaml +++ /dev/null @@ -1,105 +0,0 @@ -# Default values for conduit. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -replicaCount: 1 - -image: - repository: registry.gitlab.com/famedly/conduit/matrix-conduit - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "" - -imagePullSecrets: [] -nameOverride: "" -fullnameOverride: "" - -serviceAccount: - # Specifies whether a service account should be created - create: true - # Annotations to add to the service account - annotations: {} - # The name of the service account to use. - # If not set and create is true, a name is generated using the fullname template - name: "" - -conduit: - server_name: "your.server.name" - allowRegistration: false - allowEncryption: true - allowFederation: true - allowRoomCreation: true - allowUnstableRoomVersions: true - trustedServers: - - "matrix.org" - # in bytes, ~20 MB - maxRequestSize: "20000000" - # maxConcurrentRequests: 100 - # log: "warn,rocket=off,_=off,sled=off" - - log: - registrationToken: - - -podLabels: {} -podAnnotations: {} - -securityContext: {} - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 6167 - -resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi - -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -nodeSelector: {} - -tolerations: [] - -affinity: {} - -## Enable persistence using Persistent Volume Claims -## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ -## -persistence: - enabled: true - annotations: {} - ## Persistent Volume Storage Class - ## If defined, storageClassName: - ## If set to "-", storageClassName: "", which disables dynamic provisioning - ## If undefined (the default) or set to null, no storageClassName spec is - ## set, choosing the default provisioner. (gp2 on AWS, standard on - ## GKE, AWS & OpenStack) - ## - # storageClass: "-" - - ## A manually managed Persistent Volume and Claim - ## Requires persistence.enabled: true - ## If defined, PVC must be created manually before volume will be bound - # existingClaim: - - accessMode: ReadWriteOnce - size: 1Gi diff --git a/charts/sliding-sync-proxy/Chart.yaml b/charts/sliding-sync-proxy/Chart.yaml deleted file mode 100644 index dbb7f9c..0000000 --- a/charts/sliding-sync-proxy/Chart.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v2 -name: sliding-sync-proxy -description: A proxy for modern Matrix messaging clients -icon: https://avatars.githubusercontent.com/u/8418310?s=200&v=4 -type: application -# renovate: image=ghcr.io/matrix-org/sliding-sync -appVersion: "0.99.19" -version: 1.1.2 -maintainers: -- name: Tommy Skaug - email: tommy@skaug.me -keywords: -- messaging -- encrypted -- matrix -- proxy -- slidingsync -- syncv3 -sources: -- https://github.com/matrix-org/sliding-sync diff --git a/charts/sliding-sync-proxy/ci/pluto-values.yaml b/charts/sliding-sync-proxy/ci/pluto-values.yaml deleted file mode 100644 index 9ec9672..0000000 --- a/charts/sliding-sync-proxy/ci/pluto-values.yaml +++ /dev/null @@ -1,63 +0,0 @@ -homeserver: "https://synapse.example.com" -serverAddress: "https://slidingsync.example.com" -existingSecret: "slidingsync-secret" - -initContainers: - dbInit: - image: - repository: ghcr.io/onedr0p/postgres-init - tag: "16" - envFrom: - - secretRef: - name: slidingsync-secret - -image: - repository: ghcr.io/matrix-org/sliding-sync - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "" - -replicaCount: 1 - -imagePullSecrets: [] - -nameOverride: "" -fullnameOverride: "" - -podAnnotations: {} - -podSecurityContext: - fsGroup: 2000 - -securityContext: - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - runAsNonRoot: true - runAsUser: 1000 - -service: - type: ClusterIP - port: 80 - -resources: {} -# limits: -# cpu: 100m -# memory: 128Mi -# requests: -# cpu: 100m -# memory: 128Mi - -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -nodeSelector: {} - -tolerations: [] - -affinity: {} diff --git a/charts/sliding-sync-proxy/templates/_helpers.tpl b/charts/sliding-sync-proxy/templates/_helpers.tpl deleted file mode 100644 index 7e889ef..0000000 --- a/charts/sliding-sync-proxy/templates/_helpers.tpl +++ /dev/null @@ -1,51 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "sliding-sync-proxy.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "sliding-sync-proxy.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "sliding-sync-proxy.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "sliding-sync-proxy.labels" -}} -helm.sh/chart: {{ include "sliding-sync-proxy.chart" . }} -{{ include "sliding-sync-proxy.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "sliding-sync-proxy.selectorLabels" -}} -app.kubernetes.io/name: {{ include "sliding-sync-proxy.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} \ No newline at end of file diff --git a/charts/sliding-sync-proxy/templates/db-init.yaml b/charts/sliding-sync-proxy/templates/db-init.yaml deleted file mode 100644 index cfe4fc9..0000000 --- a/charts/sliding-sync-proxy/templates/db-init.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: {{ include "sliding-sync-proxy.fullname" . }}-db-init - labels: - {{- include "sliding-sync-proxy.labels" . | nindent 4 }} - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded -spec: - template: - spec: - restartPolicy: Never - containers: - - name: general-db-init - image: "{{ .Values.initContainers.dbInit.image.repository }}:{{ .Values.initContainers.dbInit.image.tag }}" - envFrom: - - secretRef: - name: {{ .Values.existingSecret }} - backoffLimit: 3 \ No newline at end of file diff --git a/charts/sliding-sync-proxy/templates/deployment.yaml b/charts/sliding-sync-proxy/templates/deployment.yaml deleted file mode 100644 index ab1e6e9..0000000 --- a/charts/sliding-sync-proxy/templates/deployment.yaml +++ /dev/null @@ -1,67 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "sliding-sync-proxy.fullname" . }} - labels: - {{- include "sliding-sync-proxy.labels" . | nindent 4 }} -spec: - {{- if not .Values.autoscaling.enabled }} - replicas: {{ .Values.replicaCount }} - {{- end }} - selector: - matchLabels: - {{- include "sliding-sync-proxy.selectorLabels" . | nindent 6 }} - template: - metadata: - annotations: - {{- with .Values.podAnnotations }} - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "sliding-sync-proxy.selectorLabels" . | nindent 8 }} - spec: - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - securityContext: - {{- toYaml .Values.podSecurityContext | nindent 8 }} - containers: - - name: {{ .Chart.Name }} - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - env: - - name: SYNCV3_SERVER - value: {{ .Values.homeserver }} - - name: SYNCV3_BINDADDR - value: {{ .Values.serverAddress }} - envFrom: - - secretRef: - name: {{ .Values.existingSecret }} - ports: - - name: http - containerPort: 8008 - protocol: TCP - livenessProbe: - tcpSocket: - port: http - readinessProbe: - tcpSocket: - port: http - resources: - {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} \ No newline at end of file diff --git a/charts/sliding-sync-proxy/templates/hpa.yaml b/charts/sliding-sync-proxy/templates/hpa.yaml deleted file mode 100644 index 87027c0..0000000 --- a/charts/sliding-sync-proxy/templates/hpa.yaml +++ /dev/null @@ -1,29 +0,0 @@ -{{- if .Values.autoscaling.enabled }} ---- -apiVersion: autoscaling/v2beta1 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "sliding-sync-proxy.fullname" . }} - labels: - {{- include "sliding-sync-proxy.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "sliding-sync-proxy.fullname" . }} - minReplicas: {{ .Values.autoscaling.minReplicas }} - maxReplicas: {{ .Values.autoscaling.maxReplicas }} - metrics: - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/charts/sliding-sync-proxy/templates/service.yaml b/charts/sliding-sync-proxy/templates/service.yaml deleted file mode 100644 index f6b2814..0000000 --- a/charts/sliding-sync-proxy/templates/service.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: {{ include "sliding-sync-proxy.fullname" . }} - labels: - {{- include "sliding-sync-proxy.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} - ports: - - port: {{ .Values.service.port }} - targetPort: http - protocol: TCP - name: http - selector: - {{- include "sliding-sync-proxy.selectorLabels" . | nindent 4 }} \ No newline at end of file diff --git a/charts/sliding-sync-proxy/tests/values.yaml b/charts/sliding-sync-proxy/tests/values.yaml deleted file mode 100644 index 9ec9672..0000000 --- a/charts/sliding-sync-proxy/tests/values.yaml +++ /dev/null @@ -1,63 +0,0 @@ -homeserver: "https://synapse.example.com" -serverAddress: "https://slidingsync.example.com" -existingSecret: "slidingsync-secret" - -initContainers: - dbInit: - image: - repository: ghcr.io/onedr0p/postgres-init - tag: "16" - envFrom: - - secretRef: - name: slidingsync-secret - -image: - repository: ghcr.io/matrix-org/sliding-sync - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "" - -replicaCount: 1 - -imagePullSecrets: [] - -nameOverride: "" -fullnameOverride: "" - -podAnnotations: {} - -podSecurityContext: - fsGroup: 2000 - -securityContext: - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - runAsNonRoot: true - runAsUser: 1000 - -service: - type: ClusterIP - port: 80 - -resources: {} -# limits: -# cpu: 100m -# memory: 128Mi -# requests: -# cpu: 100m -# memory: 128Mi - -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -nodeSelector: {} - -tolerations: [] - -affinity: {} diff --git a/charts/sliding-sync-proxy/values.yaml b/charts/sliding-sync-proxy/values.yaml deleted file mode 100644 index 9ec9672..0000000 --- a/charts/sliding-sync-proxy/values.yaml +++ /dev/null @@ -1,63 +0,0 @@ -homeserver: "https://synapse.example.com" -serverAddress: "https://slidingsync.example.com" -existingSecret: "slidingsync-secret" - -initContainers: - dbInit: - image: - repository: ghcr.io/onedr0p/postgres-init - tag: "16" - envFrom: - - secretRef: - name: slidingsync-secret - -image: - repository: ghcr.io/matrix-org/sliding-sync - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "" - -replicaCount: 1 - -imagePullSecrets: [] - -nameOverride: "" -fullnameOverride: "" - -podAnnotations: {} - -podSecurityContext: - fsGroup: 2000 - -securityContext: - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - runAsNonRoot: true - runAsUser: 1000 - -service: - type: ClusterIP - port: 80 - -resources: {} -# limits: -# cpu: 100m -# memory: 128Mi -# requests: -# cpu: 100m -# memory: 128Mi - -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - -nodeSelector: {} - -tolerations: [] - -affinity: {}