You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

288 lines
8.1 KiB

  1. replicaCount: 1
  2. image:
  3. repository: tootsuite/mastodon
  4. # https://hub.docker.com/r/tootsuite/mastodon/tags
  5. #
  6. # alternatively, use `latest` for the latest release or `edge` for the image
  7. # built from the most recent commit
  8. #
  9. # tag: latest
  10. tag: v3.5.2
  11. # use `Always` when using `latest` tag
  12. pullPolicy: IfNotPresent
  13. mastodon:
  14. # create an initial administrator user; the password is autogenerated and will
  15. # have to be reset
  16. createAdmin:
  17. enabled: false
  18. username: not_gargron
  19. email: not@example.com
  20. cron:
  21. # run `tootctl media remove` every week
  22. removeMedia:
  23. enabled: true
  24. schedule: "0 0 * * 0"
  25. # available locales: https://github.com/tootsuite/mastodon/blob/master/config/application.rb#L43
  26. locale: en
  27. local_domain: mastodon.local
  28. # Use of WEB_DOMAIN requires careful consideration: https://docs.joinmastodon.org/admin/config/#federation
  29. # You must redirect the path LOCAL_DOMAIN/.well-known/ to WEB_DOMAIN/.well-known/ as described
  30. # web_domain: mastodon.example.com
  31. persistence:
  32. assets:
  33. # ReadWriteOnce is more widely supported than ReadWriteMany, but limits
  34. # scalability, since it requires the Rails and Sidekiq pods to run on the
  35. # same node.
  36. accessMode: ReadWriteOnce
  37. resources:
  38. requests:
  39. storage: 10Gi
  40. system:
  41. accessMode: ReadWriteOnce
  42. resources:
  43. requests:
  44. storage: 100Gi
  45. s3:
  46. enabled: false
  47. access_key: ""
  48. access_secret: ""
  49. bucket: ""
  50. endpoint: https://us-east-1.linodeobjects.com
  51. hostname: us-east-1.linodeobjects.com
  52. region: ""
  53. # If you have a caching proxy, enter its base URL here.
  54. alias_host: ""
  55. # these must be set manually; autogenerated keys are rotated on each upgrade
  56. secrets:
  57. secret_key_base: ""
  58. otp_secret: ""
  59. vapid:
  60. private_key: ""
  61. public_key: ""
  62. sidekiq:
  63. concurrency: 25
  64. smtp:
  65. auth_method: plain
  66. ca_file: /etc/ssl/certs/ca-certificates.crt
  67. delivery_method: smtp
  68. domain:
  69. enable_starttls_auto: true
  70. from_address: notifications@example.com
  71. login:
  72. openssl_verify_mode: peer
  73. password:
  74. port: 587
  75. reply_to:
  76. server: smtp.mailgun.org
  77. tls: false
  78. streaming:
  79. port: 4000
  80. # this should be set manually since os.cpus() returns the number of CPUs on
  81. # the node running the pod, which is unrelated to the resources allocated to
  82. # the pod by k8s
  83. workers: 1
  84. web:
  85. port: 3000
  86. ingress:
  87. enabled: true
  88. annotations:
  89. kubernetes.io/ingress.class: nginx
  90. kubernetes.io/tls-acme: "true"
  91. # cert-manager.io/cluster-issuer: "letsencrypt"
  92. #
  93. # ensure that NGINX's upload size matches Mastodon's
  94. # for the K8s ingress controller:
  95. # nginx.ingress.kubernetes.io/proxy-body-size: 40m
  96. # for the NGINX ingress controller:
  97. # nginx.org/client-max-body-size: 40m
  98. hosts:
  99. - host: mastodon.local
  100. paths:
  101. - path: '/'
  102. tls:
  103. - secretName: mastodon-tls
  104. hosts:
  105. - mastodon.local
  106. # https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters
  107. elasticsearch:
  108. # `false` will disable full-text search
  109. #
  110. # if you enable ES after the initial install, you will need to manually run
  111. # RAILS_ENV=production bundle exec rake chewy:sync
  112. # (https://docs.joinmastodon.org/admin/optional/elasticsearch/)
  113. enabled: true
  114. image:
  115. tag: 7
  116. # https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters
  117. postgresql:
  118. # disable if you want to use an existing db; in which case the values below
  119. # must match those of that external postgres instance
  120. enabled: true
  121. # postgresqlHostname: preexisting-postgresql
  122. postgresqlDatabase: mastodon_production
  123. # you must set a password; the password generated by the postgresql chart will
  124. # be rotated on each upgrade:
  125. # https://github.com/bitnami/charts/tree/master/bitnami/postgresql#upgrade
  126. postgresqlPassword: ""
  127. postgresqlUsername: postgres
  128. # https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters
  129. redis:
  130. # you must set a password; the password generated by the redis chart will be
  131. # rotated on each upgrade:
  132. password: ""
  133. service:
  134. type: ClusterIP
  135. port: 80
  136. externalAuth:
  137. oidc:
  138. # OpenID Connect support is proposed in PR #16221 and awaiting merge.
  139. enabled: false
  140. # display_name: "example-label"
  141. # issuer: https://login.example.space/auth/realms/example-space
  142. # discovery: true
  143. # scope: "openid,profile"
  144. # uid_field: uid
  145. # client_id: mastodon
  146. # client_secret: SECRETKEY
  147. # redirect_uri: https://example.com/auth/auth/openid_connect/callback
  148. # assume_email_is_verified: true
  149. # client_auth_method:
  150. # response_type:
  151. # response_mode:
  152. # display:
  153. # prompt:
  154. # send_nonce:
  155. # send_scope_to_token_endpoint:
  156. # idp_logout_redirect_uri:
  157. # http_scheme:
  158. # host:
  159. # port:
  160. # jwks_uri:
  161. # auth_endpoint:
  162. # token_endpoint:
  163. # user_info_endpoint:
  164. # end_session_endpoint:
  165. saml:
  166. enabled: false
  167. # acs_url: http://mastodon.example.com/auth/auth/saml/callback
  168. # issuer: mastodon
  169. # idp_sso_target_url: https://login.example.com/auth/realms/example/protocol/saml
  170. # idp_cert: '-----BEGIN CERTIFICATE-----[your_cert_content]-----END CERTIFICATE-----'
  171. # idp_cert_fingerprint:
  172. # name_identifier_format: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
  173. # cert:
  174. # private_key:
  175. # want_assertion_signed: true
  176. # want_assertion_encrypted: true
  177. # assume_email_is_verified: true
  178. # uid_attribute: "urn:oid:0.9.2342.19200300.100.1.1"
  179. # attributes_statements:
  180. # uid: "urn:oid:0.9.2342.19200300.100.1.1"
  181. # email: "urn:oid:1.3.6.1.4.1.5923.1.1.1.6"
  182. # full_name: "urn:oid:2.16.840.1.113730.3.1.241"
  183. # first_name: "urn:oid:2.5.4.42"
  184. # last_name: "urn:oid:2.5.4.4"
  185. # verified:
  186. # verified_email:
  187. oauth_global:
  188. # Force redirect local login to CAS. Does not function with SAML or LDAP.
  189. oauth_redirect_at_sign_in: false
  190. cas:
  191. enabled: false
  192. # url: https://sso.myserver.com
  193. # host: sso.myserver.com
  194. # port: 443
  195. # ssl: true
  196. # validate_url:
  197. # callback_url:
  198. # logout_url:
  199. # login_url:
  200. # uid_field: 'user'
  201. # ca_path:
  202. # disable_ssl_verification: false
  203. # assume_email_is_verified: true
  204. # keys:
  205. # uid: 'user'
  206. # name: 'name'
  207. # email: 'email'
  208. # nickname: 'nickname'
  209. # first_name: 'firstname'
  210. # last_name: 'lastname'
  211. # location: 'location'
  212. # image: 'image'
  213. # phone: 'phone'
  214. pam:
  215. enabled: false
  216. # email_domain: example.com
  217. # default_service: rpam
  218. # controlled_service: rpam
  219. ldap:
  220. enabled: false
  221. # host: myservice.namespace.svc
  222. # port: 389
  223. # method: simple_tls
  224. # base:
  225. # bind_on:
  226. # password:
  227. # uid: cn
  228. # mail: mail
  229. # search_filter: "(|(%{uid}=%{email})(%{mail}=%{email}))"
  230. # uid_conversion:
  231. # enabled: true
  232. # search: "., -"
  233. # replace: _
  234. # https://github.com/tootsuite/mastodon/blob/master/Dockerfile#L88
  235. #
  236. # if you manually change the UID/GID environment variables, ensure these values
  237. # match:
  238. podSecurityContext:
  239. runAsUser: 991
  240. runAsGroup: 991
  241. fsGroup: 991
  242. securityContext: {}
  243. serviceAccount:
  244. # Specifies whether a service account should be created
  245. create: true
  246. # Annotations to add to the service account
  247. annotations: {}
  248. # The name of the service account to use.
  249. # If not set and create is true, a name is generated using the fullname template
  250. name: ""
  251. podAnnotations: {}
  252. resources: {}
  253. # We usually recommend not to specify default resources and to leave this as a conscious
  254. # choice for the user. This also increases chances charts run on environments with little
  255. # resources, such as Minikube. If you do want to specify resources, uncomment the following
  256. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  257. # limits:
  258. # cpu: 100m
  259. # memory: 128Mi
  260. # requests:
  261. # cpu: 100m
  262. # memory: 128Mi
  263. autoscaling:
  264. enabled: false
  265. minReplicas: 1
  266. maxReplicas: 100
  267. targetCPUUtilizationPercentage: 80
  268. # targetMemoryUtilizationPercentage: 80
  269. nodeSelector: {}
  270. tolerations: []
  271. affinity: {}