values.yaml 9.7 KB

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