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.

309 lines
9.0 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. # you can also specify the name of an existing Secret
  50. # with keys AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
  51. existingSecret: ""
  52. bucket: ""
  53. endpoint: https://us-east-1.linodeobjects.com
  54. hostname: us-east-1.linodeobjects.com
  55. region: ""
  56. # If you have a caching proxy, enter its base URL here.
  57. alias_host: ""
  58. # these must be set manually; autogenerated keys are rotated on each upgrade
  59. secrets:
  60. secret_key_base: ""
  61. otp_secret: ""
  62. vapid:
  63. private_key: ""
  64. public_key: ""
  65. # you can also specify the name of an existing Secret
  66. # with keys SECRET_KEY_BASE and OTP_SECRET and
  67. # VAPID_PRIVATE_KEY and VAPID_PUBLIC_KEY
  68. existingSecret: ""
  69. sidekiq:
  70. concurrency: 25
  71. smtp:
  72. auth_method: plain
  73. ca_file: /etc/ssl/certs/ca-certificates.crt
  74. delivery_method: smtp
  75. domain:
  76. enable_starttls_auto: true
  77. from_address: notifications@example.com
  78. openssl_verify_mode: peer
  79. port: 587
  80. reply_to:
  81. server: smtp.mailgun.org
  82. tls: false
  83. login:
  84. password:
  85. # you can also specify the name of an existing Secret
  86. # with the keys login and password
  87. existingSecret:
  88. streaming:
  89. port: 4000
  90. # this should be set manually since os.cpus() returns the number of CPUs on
  91. # the node running the pod, which is unrelated to the resources allocated to
  92. # the pod by k8s
  93. workers: 1
  94. # The base url for streaming can be set if the streaming API is deployed to
  95. # a different domain/subdomain.
  96. # base_url: wws://streaming.example.com
  97. web:
  98. port: 3000
  99. ingress:
  100. enabled: true
  101. annotations:
  102. kubernetes.io/ingress.class: nginx
  103. kubernetes.io/tls-acme: "true"
  104. # cert-manager.io/cluster-issuer: "letsencrypt"
  105. #
  106. # ensure that NGINX's upload size matches Mastodon's
  107. # for the K8s ingress controller:
  108. # nginx.ingress.kubernetes.io/proxy-body-size: 40m
  109. # for the NGINX ingress controller:
  110. # nginx.org/client-max-body-size: 40m
  111. hosts:
  112. - host: mastodon.local
  113. paths:
  114. - path: '/'
  115. tls:
  116. - secretName: mastodon-tls
  117. hosts:
  118. - mastodon.local
  119. # https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters
  120. elasticsearch:
  121. # `false` will disable full-text search
  122. #
  123. # if you enable ES after the initial install, you will need to manually run
  124. # RAILS_ENV=production bundle exec rake chewy:sync
  125. # (https://docs.joinmastodon.org/admin/optional/elasticsearch/)
  126. enabled: true
  127. image:
  128. tag: 7
  129. # https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters
  130. postgresql:
  131. # disable if you want to use an existing db; in which case the values below
  132. # must match those of that external postgres instance
  133. enabled: true
  134. # postgresqlHostname: preexisting-postgresql
  135. auth:
  136. database: mastodon_production
  137. username: postgres
  138. # you must set a password; the password generated by the postgresql chart will
  139. # be rotated on each upgrade:
  140. # https://github.com/bitnami/charts/tree/master/bitnami/postgresql#upgrade
  141. password: ""
  142. # you can also specify the name of an existing Secret
  143. # with a key of postgres-password set to the password you want
  144. existingSecret: ""
  145. # https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters
  146. redis:
  147. # you must set a password; the password generated by the redis chart will be
  148. # rotated on each upgrade:
  149. password: ""
  150. # you can also specify the name of an existing Secret
  151. # with a key of redis-password set to the password you want
  152. # auth:
  153. # existingSecret: ""
  154. service:
  155. type: ClusterIP
  156. port: 80
  157. externalAuth:
  158. oidc:
  159. # OpenID Connect support is proposed in PR #16221 and awaiting merge.
  160. enabled: false
  161. # display_name: "example-label"
  162. # issuer: https://login.example.space/auth/realms/example-space
  163. # discovery: true
  164. # scope: "openid,profile"
  165. # uid_field: uid
  166. # client_id: mastodon
  167. # client_secret: SECRETKEY
  168. # redirect_uri: https://example.com/auth/auth/openid_connect/callback
  169. # assume_email_is_verified: true
  170. # client_auth_method:
  171. # response_type:
  172. # response_mode:
  173. # display:
  174. # prompt:
  175. # send_nonce:
  176. # send_scope_to_token_endpoint:
  177. # idp_logout_redirect_uri:
  178. # http_scheme:
  179. # host:
  180. # port:
  181. # jwks_uri:
  182. # auth_endpoint:
  183. # token_endpoint:
  184. # user_info_endpoint:
  185. # end_session_endpoint:
  186. saml:
  187. enabled: false
  188. # acs_url: http://mastodon.example.com/auth/auth/saml/callback
  189. # issuer: mastodon
  190. # idp_sso_target_url: https://login.example.com/auth/realms/example/protocol/saml
  191. # idp_cert: '-----BEGIN CERTIFICATE-----[your_cert_content]-----END CERTIFICATE-----'
  192. # idp_cert_fingerprint:
  193. # name_identifier_format: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
  194. # cert:
  195. # private_key:
  196. # want_assertion_signed: true
  197. # want_assertion_encrypted: true
  198. # assume_email_is_verified: true
  199. # uid_attribute: "urn:oid:0.9.2342.19200300.100.1.1"
  200. # attributes_statements:
  201. # uid: "urn:oid:0.9.2342.19200300.100.1.1"
  202. # email: "urn:oid:1.3.6.1.4.1.5923.1.1.1.6"
  203. # full_name: "urn:oid:2.16.840.1.113730.3.1.241"
  204. # first_name: "urn:oid:2.5.4.42"
  205. # last_name: "urn:oid:2.5.4.4"
  206. # verified:
  207. # verified_email:
  208. oauth_global:
  209. # Force redirect local login to CAS. Does not function with SAML or LDAP.
  210. oauth_redirect_at_sign_in: false
  211. cas:
  212. enabled: false
  213. # url: https://sso.myserver.com
  214. # host: sso.myserver.com
  215. # port: 443
  216. # ssl: true
  217. # validate_url:
  218. # callback_url:
  219. # logout_url:
  220. # login_url:
  221. # uid_field: 'user'
  222. # ca_path:
  223. # disable_ssl_verification: false
  224. # assume_email_is_verified: true
  225. # keys:
  226. # uid: 'user'
  227. # name: 'name'
  228. # email: 'email'
  229. # nickname: 'nickname'
  230. # first_name: 'firstname'
  231. # last_name: 'lastname'
  232. # location: 'location'
  233. # image: 'image'
  234. # phone: 'phone'
  235. pam:
  236. enabled: false
  237. # email_domain: example.com
  238. # default_service: rpam
  239. # controlled_service: rpam
  240. ldap:
  241. enabled: false
  242. # host: myservice.namespace.svc
  243. # port: 389
  244. # method: simple_tls
  245. # base:
  246. # bind_on:
  247. # password:
  248. # uid: cn
  249. # mail: mail
  250. # search_filter: "(|(%{uid}=%{email})(%{mail}=%{email}))"
  251. # uid_conversion:
  252. # enabled: true
  253. # search: "., -"
  254. # replace: _
  255. # https://github.com/tootsuite/mastodon/blob/master/Dockerfile#L88
  256. #
  257. # if you manually change the UID/GID environment variables, ensure these values
  258. # match:
  259. podSecurityContext:
  260. runAsUser: 991
  261. runAsGroup: 991
  262. fsGroup: 991
  263. securityContext: {}
  264. serviceAccount:
  265. # Specifies whether a service account should be created
  266. create: true
  267. # Annotations to add to the service account
  268. annotations: {}
  269. # The name of the service account to use.
  270. # If not set and create is true, a name is generated using the fullname template
  271. name: ""
  272. podAnnotations: {}
  273. resources: {}
  274. # We usually recommend not to specify default resources and to leave this as a conscious
  275. # choice for the user. This also increases chances charts run on environments with little
  276. # resources, such as Minikube. If you do want to specify resources, uncomment the following
  277. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  278. # limits:
  279. # cpu: 100m
  280. # memory: 128Mi
  281. # requests:
  282. # cpu: 100m
  283. # memory: 128Mi
  284. autoscaling:
  285. enabled: false
  286. minReplicas: 1
  287. maxReplicas: 100
  288. targetCPUUtilizationPercentage: 80
  289. # targetMemoryUtilizationPercentage: 80
  290. nodeSelector: {}
  291. tolerations: []
  292. affinity: {}