Skip to content

Commit

Permalink
Merge pull request #33 from jordanopensource/task/fix_mastodon_chart
Browse files Browse the repository at this point in the history
Fix mastodon chart not installing
  • Loading branch information
thread-koder authored Dec 5, 2022
2 parents 593e82b + 66b0de0 commit c22ff93
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 17 deletions.
2 changes: 1 addition & 1 deletion charts/mastodon/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
1 change: 0 additions & 1 deletion charts/mastodon/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ data:
STREAMING_CLUSTER_NUM: {{ .Values.mastodon.streaming.workers | quote }}
NODE_ENV: "production"
RAILS_ENV: "production"
STREAMING_CLUSTER_NUM: {{ .Values.mastodon.streaming.workers | quote }}
# Database
DB_HOST: {{ .Values.postgres.host | quote }}
DB_NAME: {{ .Values.postgres.name | quote }}
Expand Down
43 changes: 28 additions & 15 deletions charts/mastodon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fullnameOverride: ""

mastodon:
# Please look at https://docs.joinmastodon.org/admin/config/ for the full documentation.
localDomain: josa.social
localDomain: example.com
# available locales: https://github.com/mastodon/mastodon/blob/main/config/application.rb#L71
locale: en
# Possible values are debug, info, warn, error, fatal
Expand Down Expand Up @@ -129,8 +129,8 @@ mastodon:
storage: 100Gi

postgres:
host: private-postgresql-db-jordanopensource-org-do-user-1737715-0.b.db.ondigitalocean.com
name: mastodon_dev
host: "localhost"
name: mastodon
port: 25060
## https://www.postgresql.org/docs/10/libpq-ssl.html
sslMode: "require"
Expand Down Expand Up @@ -170,9 +170,9 @@ elasticsearch:

smtp:
authMethod: plain
server: mail.josa.ngo
server: mail.example.com
port: 465
fromAddress: "JOSA Mastodon <noreply@josa.ngo>"
fromAddress: "Mastodon <noreply@example.com>"
domain: josa.ngo
startTls: false
tls: true
Expand All @@ -195,6 +195,21 @@ s3:
## NOTE: Must contain key `AWS_SECRET_ACCESS_KEY`
secretName: "s3-secrets"

ldap:
enabled: true
host: "localhost"
port: "636"
ldapMethod: "simple_tls"
baseDN: "DC=example,DC=com"
bindDN: "cn=admin,dc=example,dc=com"
uid: "mastodon"
mail: "mail"
searchFilter: "(|(%{uid}=%{email})(%{mail}=%{email}))"
credentials:
## The Secret name containing the credentials for ldap.
## NOTE: Must contain key `LDAP_PASSWORD`
secretName: "ldap-secret"

serviceAccount:
# Specifies whether a service account should be created
create: true
Expand Down Expand Up @@ -227,19 +242,18 @@ ingress:
enabled: true
className: "nginx"
annotations:
cert-manager.io/cluster-issuer: "letsencrypt"
external-dns.alpha.kubernetes.io/target: nginx.ingress.cloud.josa.ngo
external-dns.alpha.kubernetes.io/ingress-hostname-source: defined-hosts-only
nginx.ingress.kubernetes.io/proxy-body-size: 40m
# cert-manager.io/cluster-issuer: "letsencrypt"
# nginx.ingress.kubernetes.io/proxy-body-size: 40m
hosts:
- host: josa.social
- host: example.com
paths:
- path: /
pathType: ImplementationSpecific
tls:
- secretName: josa.social-tls
hosts:
- josa.social
[]
# - secretName: josa.social-tls
# hosts:
# - example.com

resources:
{}
Expand All @@ -261,8 +275,7 @@ autoscaling:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

nodeSelector:
doks.digitalocean.com/node-pool: josa-cloud-np
nodeSelector: {}

tolerations: []

Expand Down

0 comments on commit c22ff93

Please sign in to comment.