values.yaml 8.3 KB

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