values.yaml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  1. image:
  2. repository: ghcr.io/mastodon/mastodon
  3. # https://github.com/mastodon/mastodon/pkgs/container/mastodon
  4. #
  5. # alternatively, use `latest` for the latest release or `edge` for the image
  6. # built from the most recent commit
  7. #
  8. # tag: latest
  9. tag: null
  10. # use `Always` when using `latest` tag
  11. pullPolicy: IfNotPresent
  12. mastodon:
  13. # Labels added to every Mastodon-related object
  14. labels: {}
  15. # -- create an initial administrator user; the password is autogenerated and will
  16. # have to be reset
  17. createAdmin:
  18. # @ignored
  19. enabled: false
  20. # @ignored
  21. username: not_gargron
  22. # @ignored
  23. email: not@example.com
  24. hooks:
  25. dbMigrate:
  26. enabled: true
  27. assetsPrecompile:
  28. enabled: true
  29. # Upload website assets to S3 before deploying using rclone.
  30. # Whenever there is an update to Mastodon, sometimes there are assets files
  31. # that are renamed. As the pods are getting redeployed, and old/new pods are
  32. # present simultaneously, there is a chance that old asset files are
  33. # requested from pods that don't have them anymore, or new asset files are
  34. # requested from old pods. Uploading asset files to S3 in this manner solves
  35. # this potential conflict.
  36. # Note that you will need to CDN/proxy to send all requests to /assets and
  37. # /packs to this bucket.
  38. s3Upload:
  39. enabled: false
  40. endpoint:
  41. bucket:
  42. acl: public-read
  43. secretRef:
  44. name:
  45. keys:
  46. accesKeyId: acces-key-id
  47. secretAccessKey: secret-access-key
  48. rclone:
  49. # Any additional environment variables to pass to rclone.
  50. env: {}
  51. # Custom labels to add to kubernetes resources
  52. #labels:
  53. cron:
  54. # -- run `tootctl media remove` every week
  55. removeMedia:
  56. # @ignored
  57. enabled: true
  58. # @ignored
  59. schedule: "0 0 * * 0"
  60. # -- available locales: https://github.com/mastodon/mastodon/blob/main/config/application.rb#L71
  61. locale: en
  62. local_domain: mastodon.local
  63. # -- Use of WEB_DOMAIN requires careful consideration: https://docs.joinmastodon.org/admin/config/#federation
  64. # You must redirect the path LOCAL_DOMAIN/.well-known/ to WEB_DOMAIN/.well-known/ as described
  65. # Example: mastodon.example.com
  66. web_domain: null
  67. # -- If you have multiple domains pointed at your Mastodon server, this setting will allow Mastodon to recognize
  68. # itself when users are addressed using those other domains.
  69. alternate_domains: []
  70. # -- Comma-separated list of public IP addresses of trusted reverse proxy servers reaching Mastodon web and streaming servers
  71. # Specifying overrides default list. More info: https://docs.joinmastodon.org/admin/config/#trusted_proxy_ip
  72. # trusted_proxy_ip:
  73. # -- 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.
  74. singleUserMode: false
  75. # -- Enables "Secure Mode" for more details see: https://docs.joinmastodon.org/admin/config/#authorized_fetch
  76. authorizedFetch: false
  77. # -- Enables "Limited Federation Mode" for more details see: https://docs.joinmastodon.org/admin/config/#limited_federation_mode
  78. limitedFederationMode: false
  79. persistence:
  80. assets:
  81. # -- ReadWriteOnce is more widely supported than ReadWriteMany, but limits
  82. # scalability, since it requires the Rails and Sidekiq pods to run on the
  83. # same node.
  84. accessMode: ReadWriteOnce
  85. resources:
  86. requests:
  87. storage: 10Gi
  88. # -- name of existing persistent volume claim to use for assets
  89. existingClaim:
  90. system:
  91. accessMode: ReadWriteOnce
  92. resources:
  93. requests:
  94. storage: 100Gi
  95. # -- name of existing persistent volume claim to use for system
  96. existingClaim:
  97. s3:
  98. enabled: false
  99. access_key: ""
  100. access_secret: ""
  101. # -- you can also specify the name of an existing Secret
  102. # with keys AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
  103. existingSecret: ""
  104. bucket: ""
  105. endpoint: ""
  106. hostname: ""
  107. region: ""
  108. permission: ""
  109. # -- If you have a caching proxy, enter its base URL here.
  110. alias_host: ""
  111. # When uploading data to S3, if the number of bytes to send exceedes
  112. # multipart_threshold then a multi part session is automatically started
  113. # and the data is sent up in chunks. Defaults to 16777216 (16MB).
  114. multipart_threshold: ""
  115. # -- Set this to true if the storage provider uses domain style 'bucket.endpoint' naming
  116. # override_path_style: "true"
  117. deepl:
  118. enabled: false
  119. plan:
  120. apiKeySecretRef:
  121. name:
  122. key:
  123. hcaptcha:
  124. enabled: false
  125. siteId:
  126. secretKeySecretRef:
  127. name:
  128. key:
  129. # these must be set manually; autogenerated keys are rotated on each upgrade
  130. secrets:
  131. secret_key_base: ""
  132. otp_secret: ""
  133. vapid:
  134. private_key: ""
  135. public_key: ""
  136. activeRecordEncryption:
  137. primaryKey: ""
  138. deterministicKey: ""
  139. keyDerivationSalt: ""
  140. # -- you can also specify the name of an existing Secret
  141. # with keys:
  142. # - SECRET_KEY_BASE
  143. # - OTP_SECRET
  144. # - VAPID_PRIVATE_KEY
  145. # - VAPID_PUBLIC_KEY
  146. # - ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY
  147. # - ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY
  148. # - ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT
  149. existingSecret: ""
  150. # -- The number of old revisions to keep for each Deployment in Kubernetes.
  151. # See https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#clean-up-policy
  152. revisionHistoryLimit: 2
  153. sidekiq:
  154. # -- Pod security context for all Sidekiq Pods, overwrites .Values.podSecurityContext
  155. podSecurityContext: {}
  156. # -- (Sidekiq Container) Security Context for all Pods, overwrites .Values.securityContext
  157. securityContext: {}
  158. # -- Resources for all Sidekiq Deployments unless overwritten
  159. resources: {}
  160. # -- Affinity for all Sidekiq Deployments unless overwritten, overwrites .Values.affinity
  161. affinity: {}
  162. # -- Annotations to apply to the deployment object(s) for sidekiq.
  163. # -- These are applied in addition to deploymentAnnotations.
  164. annotations: {}
  165. # -- Labels to apply to the deployment object(s) for sidekiq.
  166. # -- These are applied in addition to mastodon.labels.
  167. labels: {}
  168. # -- Annotations to apply to the sidekiq pods.
  169. # -- These are applied in addition to the global podAnnotations.
  170. podAnnotations: {}
  171. # -- Labels to apply to the sidekiq pods.
  172. # -- These are applied in addition to mastodon.labels.
  173. podLabels: {}
  174. # Rollout strategy to use when updating pods.
  175. # Recreate will help reduce the number of retried jobs when updating when
  176. # the code introduces a new job as the pods are all replaced immediately.
  177. # RollingUpdate can help with larger clusters if job retries aren't an
  178. # issue, as it will reduce strain by replacing pods more slowly. It is
  179. # strongly recommended to enable the readinessProbe when using RollingUpdate.
  180. # ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
  181. updateStrategy:
  182. type: Recreate
  183. # Readiness probe configuration
  184. # NOTE: Readiness probe will only work on versions of Mastodon built after 2024-07-10.
  185. readinessProbe:
  186. enabled: false
  187. path: /opt/mastodon/tmp/sidekiq_process_has_started_and_will_begin_processing_jobs
  188. initialDelaySeconds: 10
  189. periodSeconds: 2
  190. successThreshold: 1
  191. timeoutSeconds: 1
  192. # -- Topology spread constraints for Sidekiq Pods, overwrites .Values.topologySpreadConstraints
  193. topologySpreadConstraints: {}
  194. # limits:
  195. # cpu: "1"
  196. # memory: 768Mi
  197. # requests:
  198. # cpu: 250m
  199. # memory: 512Mi
  200. # Open Telemetry configuration for sidekiq pods. Overrides global settings.
  201. otel:
  202. enabled:
  203. exporterUri:
  204. namePrefix:
  205. nameSeparator:
  206. workers:
  207. - name: all-queues
  208. # -- Number of threads / parallel sidekiq jobs that are executed per Pod
  209. concurrency: 25
  210. # -- Number of Pod replicas deployed by the Deployment
  211. replicas: 1
  212. # -- Resources for this specific deployment to allow optimised scaling, overwrites .Values.mastodon.sidekiq.resources
  213. resources: {}
  214. # -- Affinity for this specific deployment, overwrites .Values.affinity and .Values.mastodon.sidekiq.affinity
  215. affinity: {}
  216. # -- Topology spread constraints for this specific deployment, overwrites .Values.topologySpreadConstraints and .Values.mastodon.sidekiq.topologySpreadConstraints
  217. topologySpreadConstraints: {}
  218. # -- Sidekiq queues for Mastodon that are handled by this worker. See https://docs.joinmastodon.org/admin/scaling/#concurrency
  219. # See https://github.com/mperham/sidekiq/wiki/Advanced-Options#queues for how to weight queues as argument
  220. queues:
  221. - default,8
  222. - push,6
  223. - ingress,4
  224. - mailers,2
  225. - pull
  226. - scheduler # Make sure the scheduler queue only exists once and with a worker that has 1 replica.
  227. image:
  228. repository:
  229. tag:
  230. # allows you to mount a custom database.yml from a configmap
  231. # please note that we do not advise using a read-only replica for sidekiq workers
  232. customDatabaseConfigYml:
  233. configMapRef:
  234. name:
  235. key:
  236. #- name: push-pull
  237. # concurrency: 50
  238. # resources: {}
  239. # replicas: 2
  240. # queues:
  241. # - push
  242. # - pull
  243. #- name: mailers
  244. # concurrency: 25
  245. # replicas: 2
  246. # queues:
  247. # - mailers
  248. #- name: default
  249. # concurrency: 25
  250. # replicas: 2
  251. # queues:
  252. # - default
  253. smtp:
  254. auth_method: plain
  255. ca_file: /etc/ssl/certs/ca-certificates.crt
  256. delivery_method: smtp
  257. domain:
  258. enable_starttls: "auto"
  259. from_address: notifications@example.com
  260. return_path:
  261. openssl_verify_mode: peer
  262. port: 587
  263. reply_to:
  264. server: smtp.mailgun.org
  265. tls: false
  266. login:
  267. password:
  268. # -- Instead of defining login/password above, you can specify the name of an existing secret here. Login and
  269. # password must be located in keys named `login` and `password` respectively.
  270. existingSecret:
  271. streaming:
  272. image:
  273. repository:
  274. tag:
  275. port: 4000
  276. # -- this should be set manually since os.cpus() returns the number of CPUs on
  277. # the node running the pod, which is unrelated to the resources allocated to
  278. # the pod by k8s
  279. workers: 1
  280. # -- The base url for streaming can be set if the streaming API is deployed to
  281. # a different domain/subdomain.
  282. base_url: null
  283. # -- Number of Streaming Pods running
  284. replicas: 1
  285. # -- Affinity for Streaming Pods, overwrites .Values.affinity
  286. affinity: {}
  287. # -- Annotations to apply to the deployment object for streaming.
  288. # -- These are applied in addition to deploymentAnnotations.
  289. annotations: {}
  290. # -- Labels to apply to the deployment object for streaming.
  291. # -- These are applied in addition to mastodon.labels.
  292. labels: {}
  293. # -- Annotations to apply to the streaming pods.
  294. # -- These are applied in addition to the global podAnnotations.
  295. podAnnotations: {}
  296. # -- Labels to apply to the streaming pods.
  297. # -- These are applied in addition to mastodon.labels.
  298. podLabels: {}
  299. # Rollout strategy to use when updating pods
  300. # ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
  301. updateStrategy:
  302. type: RollingUpdate
  303. rollingUpdate:
  304. maxSurge: 10%
  305. maxUnavailable: 25%
  306. # -- Topology spread constraints for Streaming Pods, overwrites .Values.topologySpreadConstraints
  307. topologySpreadConstraints: {}
  308. # -- Pod Security Context for Streaming Pods, overwrites .Values.podSecurityContext
  309. podSecurityContext: {}
  310. # -- (Streaming Container) Security Context for Streaming Pods, overwrites .Values.securityContext
  311. securityContext: {}
  312. # -- (Streaming Container) Resources for Streaming Pods, overwrites .Values.resources
  313. resources: {}
  314. # limits:
  315. # cpu: "500m"
  316. # memory: 512Mi
  317. # requests:
  318. # cpu: 250m
  319. # memory: 128Mi
  320. # -- PodDisruptionBudget configuration - See https://kubernetes.io/docs/tasks/run-application/configure-pdb/
  321. pdb:
  322. enable: false
  323. # minAvailable: 1
  324. # maxUnavailable: 1
  325. # -- Puma-specific options. Below values are based on default behavior in
  326. # config/puma.rb when no custom values are provided.
  327. # -- Self-signed certificate(s) the (Node.js) needs to trust to connect to e.g. the database
  328. extraCerts: {}
  329. # -- Secret containing a key "ca.crt" holding one or more root certificates in PEM format
  330. # existingSecret:
  331. # -- Optional volume name for mounting the .crt file, defaults to "extra-certs"
  332. # name:
  333. # -- Optional sslMode setting. See nodejs's SSL_MODE. Consider "no-verify"
  334. # sslMode:
  335. # Specify extra environment variables to be added to streaming pods.
  336. extraEnvVars: {}
  337. web:
  338. port: 3000
  339. # -- Number of Web Pods running
  340. replicas: 1
  341. # -- Affinity for Web Pods, overwrites .Values.affinity
  342. affinity: {}
  343. # -- Annotations to apply to the deployment object for web.
  344. # -- These are applied in addition to deploymentAnnotations.
  345. annotations: {}
  346. # -- Labels to apply to the deployment object for web.
  347. # -- These are applied in addition to mastodon.labels.
  348. labels: {}
  349. # -- Annotations to apply to the web pods.
  350. # -- These are applied in addition to the global podAnnotations.
  351. podAnnotations: {}
  352. # -- Labels to apply to the web pods.
  353. # -- These are applied in addition to mastodon.labels.
  354. podLabels: {}
  355. # Rollout strategy to use when updating pods
  356. # ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
  357. updateStrategy:
  358. type: RollingUpdate
  359. rollingUpdate:
  360. maxSurge: 10%
  361. maxUnavailable: 25%
  362. # -- Topology spread constraints for Web Pods, overwrites .Values.topologySpreadConstraints
  363. topologySpreadConstraints: {}
  364. # -- Pod Security Context for Web Pods, overwrites .Values.podSecurityContext
  365. podSecurityContext: {}
  366. # -- (Web Container) Security Context for Web Pods, overwrites .Values.securityContext
  367. securityContext: {}
  368. # -- (Web Container) Resources for Web Pods, overwrites .Values.resources
  369. resources: {}
  370. # limits:
  371. # cpu: "1"
  372. # memory: 1280Mi
  373. # requests:
  374. # cpu: 250m
  375. # memory: 768Mi
  376. # -- PodDisruptionBudget configuration - See https://kubernetes.io/docs/tasks/run-application/configure-pdb/
  377. pdb:
  378. enable: false
  379. # minAvailable: 1
  380. # maxUnavailable: 1
  381. # -- Puma-specific options. Below values are based on default behavior in
  382. # config/puma.rb when no custom values are provided.
  383. minThreads: "5"
  384. maxThreads: "5"
  385. workers: "2"
  386. persistentTimeout: "20"
  387. image:
  388. repository:
  389. tag:
  390. # allows you to mount a custom database.yml from a configmap
  391. # for example if you want to use a read-only replica
  392. customDatabaseConfigYml:
  393. configMapRef:
  394. name:
  395. key:
  396. # Open Telemetry configuration for web pods. Overrides global settings.
  397. otel:
  398. enabled:
  399. exporterUri:
  400. namePrefix:
  401. nameSeparator:
  402. # HTTP cache buster configuration.
  403. # See the documentation for more information about this feature:
  404. # https://docs.joinmastodon.org/admin/config/#http-cache-buster
  405. cacheBuster:
  406. enabled: false
  407. httpMethod: "GET"
  408. # If the cache service requires authentication, specify the header name and
  409. # secret/token here.
  410. authHeader:
  411. authToken:
  412. existingSecret:
  413. metrics:
  414. statsd:
  415. # -- Enable statsd publishing via STATSD_ADDR environment variable
  416. address: ""
  417. # -- Alternatively, you can use this to have a statsd_exporter sidecar container running along all Mastodon containers and exposing metrics in OpenMetric/Prometheus format on each pod
  418. # Please note the exporter will not be enabled if metrics.statsd.address is not empty
  419. exporter:
  420. enabled: false
  421. port: 9102
  422. # Open Telemetry configuration for all deployments. Component-specific
  423. # configuration will override these values.
  424. otel:
  425. enabled: false
  426. exporterUri:
  427. namePrefix: mastodon
  428. nameSeparator: "-"
  429. # Sets the PREPARED_STATEMENTS environment variable: https://docs.joinmastodon.org/admin/config/#prepared_statements
  430. preparedStatements: true
  431. # Specify extra environment variables to be added to all Mastodon pods.
  432. # These can be used for configuration not included in this chart (including configuration for Mastodon varietals.)
  433. extraEnvVars: {}
  434. # Alternatively specify extra environment variables stored in a ConfigMap.
  435. # The specified ConfigMap should contain the additional environment variables in key-value format.
  436. # extraEnvFrom: <config-map-name>
  437. ingress:
  438. enabled: true
  439. annotations:
  440. # For choosing an ingress ingressClassName is preferred over annotations
  441. # kubernetes.io/ingress.class: nginx
  442. #
  443. # To automatically request TLS certificates use one of the following
  444. # kubernetes.io/tls-acme: "true"
  445. # cert-manager.io/cluster-issuer: "letsencrypt"
  446. #
  447. # ensure that NGINX's upload size matches Mastodon's
  448. # for the K8s ingress controller:
  449. # nginx.ingress.kubernetes.io/proxy-body-size: 40m
  450. # for the NGINX ingress controller:
  451. # nginx.org/client-max-body-size: 40m
  452. # -- you can specify the ingressClassName if it differs from the default
  453. ingressClassName:
  454. hosts:
  455. - host: mastodon.local
  456. paths:
  457. - path: "/"
  458. tls:
  459. - secretName: mastodon-tls
  460. hosts:
  461. - mastodon.local
  462. # This allows you to have a separate ingress for streaming
  463. # When enabled, the main ingress will no longer handle streaming requests.
  464. # You will also need to configure mastodon.streaming.base_url accordingly
  465. streaming:
  466. enabled: false
  467. annotations:
  468. ingressClassName:
  469. hosts:
  470. - host: streaming.mastodon.local
  471. paths:
  472. - path: "/"
  473. tls:
  474. - secretName: mastodon-tls
  475. hosts:
  476. - streaming.mastodon.local
  477. # -- https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters
  478. elasticsearch:
  479. # Elasticsearch is powering full-text search. It is optional.
  480. # `false` will not install Elasticsearch as part of this chart
  481. #
  482. # if you enable ES after the initial install, you will need to manually run
  483. # RAILS_ENV=production bundle exec rake chewy:sync
  484. # (https://docs.joinmastodon.org/admin/optional/elasticsearch/)
  485. enabled: true
  486. # @ignored
  487. image:
  488. tag: 7
  489. # If you are using an external ES cluster, use `enabled: false` and set the hostname, port,
  490. # and whether the cluster uses TLS.
  491. # hostname:
  492. # port: 9200
  493. # tls: true
  494. # preset: single_node_cluster
  495. # This is optional, use it if you ES cluster requires authentication
  496. # user:
  497. # Name of an existing secret with a password key
  498. # existingSecret:
  499. # https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters
  500. postgresql:
  501. # -- disable if you want to use an existing db; in which case the values below
  502. # must match those of that external postgres instance
  503. enabled: true
  504. # postgresqlHostname: preexisting-postgresql
  505. # postgresqlPort: 5432
  506. auth:
  507. database: mastodon_production
  508. username: mastodon
  509. # you must set a password; the password generated by the postgresql chart will
  510. # be rotated on each upgrade:
  511. # https://github.com/bitnami/charts/tree/master/bitnami/postgresql#upgrade
  512. password: ""
  513. # Set the password for the "postgres" admin user
  514. # set this to the same value as above if you've previously installed
  515. # this chart and you're having problems getting mastodon to connect to the DB
  516. # postgresPassword: ""
  517. # you can also specify the name of an existing Secret
  518. # with a key of password set to the password you want
  519. existingSecret: ""
  520. # Options for a read-only replica.
  521. # If enabled, mastodon uses existing defaults for postgres for these values as well.
  522. # NOTE: This feature is only available on Mastodon v4.2+
  523. # Documentation for more information on this feature:
  524. # https://docs.joinmastodon.org/admin/scaling/#read-replicas
  525. readReplica:
  526. hostname:
  527. port:
  528. auth:
  529. database:
  530. username:
  531. password:
  532. existingSecret:
  533. # https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters
  534. redis:
  535. # disable if you want to use an existing redis instance; in which case the
  536. # values below must match those of that external redis instance
  537. enabled: true
  538. hostname: ""
  539. port: 6379
  540. auth:
  541. # -- you must set a password; the password generated by the redis chart will be
  542. # rotated on each upgrade:
  543. password: ""
  544. # setting password for an existing redis instance will store it in a new Secret
  545. # you can also specify the name of an existing Secret
  546. # with a key of redis-password set to the password you want
  547. # existingSecret: ""
  548. replica:
  549. replicaCount: 0
  550. # Configuration for a separate redis instance only for sidekiq processing.
  551. # If enabled, any values not specified will be copied from the base config.
  552. # If set to false, the main redis instance will be used, and all values will
  553. # be ignored.
  554. sidekiq:
  555. enabled: false
  556. hostname: ""
  557. port: 6379
  558. auth:
  559. password: ""
  560. # you can also specify the name of an existing Secret
  561. # with a key of redis-password set to the password you want
  562. existingSecret: ""
  563. # Configuration for a separate redis instance only for cache.
  564. # If enabled, any values not specified will be copied from the base config.
  565. # If set to false, the main redis instance will be used, and all values will
  566. # be ignored.
  567. cache:
  568. enabled: false
  569. hostname: ""
  570. port: 6379
  571. auth:
  572. password: ""
  573. # you can also specify the name of an existing Secret
  574. # with a key of redis-password set to the password you want
  575. existingSecret: ""
  576. # @ignored
  577. service:
  578. type: ClusterIP
  579. port: 80
  580. externalAuth:
  581. oidc:
  582. # -- OpenID Connect support is proposed in PR #16221 and awaiting merge.
  583. enabled: false
  584. # display_name: "example-label"
  585. # issuer: https://login.example.space/auth/realms/example-space
  586. # discovery: true
  587. # scope: "openid,profile"
  588. # uid_field: uid
  589. # client_id: mastodon
  590. # client_secret: SECRETKEY
  591. # redirect_uri: https://example.com/auth/auth/openid_connect/callback
  592. # assume_email_is_verified: true
  593. # client_auth_method:
  594. # response_type:
  595. # response_mode:
  596. # display:
  597. # prompt:
  598. # send_nonce:
  599. # send_scope_to_token_endpoint:
  600. # idp_logout_redirect_uri:
  601. # http_scheme:
  602. # host:
  603. # port:
  604. # jwks_uri:
  605. # auth_endpoint:
  606. # token_endpoint:
  607. # user_info_endpoint:
  608. # end_session_endpoint:
  609. saml:
  610. enabled: false
  611. # acs_url: http://mastodon.example.com/auth/auth/saml/callback
  612. # issuer: mastodon
  613. # idp_sso_target_url: https://login.example.com/auth/realms/example/protocol/saml
  614. # idp_cert: '-----BEGIN CERTIFICATE-----[your_cert_content]-----END CERTIFICATE-----'
  615. # idp_cert_fingerprint:
  616. # name_identifier_format: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
  617. # cert:
  618. # private_key:
  619. # want_assertion_signed: true
  620. # want_assertion_encrypted: true
  621. # assume_email_is_verified: true
  622. # uid_attribute: "urn:oid:0.9.2342.19200300.100.1.1"
  623. # attributes_statements:
  624. # uid: "urn:oid:0.9.2342.19200300.100.1.1"
  625. # email: "urn:oid:1.3.6.1.4.1.5923.1.1.1.6"
  626. # full_name: "urn:oid:2.16.840.1.113730.3.1.241"
  627. # first_name: "urn:oid:2.5.4.42"
  628. # last_name: "urn:oid:2.5.4.4"
  629. # verified:
  630. # verified_email:
  631. oauth_global:
  632. # -- Automatically redirect to OIDC, CAS or SAML, and don't use local account authentication when clicking on Sign-In
  633. omniauth_only: false
  634. cas:
  635. enabled: false
  636. # url: https://sso.myserver.com
  637. # host: sso.myserver.com
  638. # port: 443
  639. # ssl: true
  640. # validate_url:
  641. # callback_url:
  642. # logout_url:
  643. # login_url:
  644. # uid_field: 'user'
  645. # ca_path:
  646. # disable_ssl_verification: false
  647. # assume_email_is_verified: true
  648. # keys:
  649. # uid: 'user'
  650. # name: 'name'
  651. # email: 'email'
  652. # nickname: 'nickname'
  653. # first_name: 'firstname'
  654. # last_name: 'lastname'
  655. # location: 'location'
  656. # image: 'image'
  657. # phone: 'phone'
  658. pam:
  659. enabled: false
  660. # email_domain: example.com
  661. # default_service: rpam
  662. # controlled_service: rpam
  663. ldap:
  664. enabled: false
  665. # host: myservice.namespace.svc
  666. # port: 636
  667. # method: simple_tls
  668. # tls_no_verify: true
  669. # base:
  670. # bind_dn:
  671. # password:
  672. # uid: cn
  673. # mail: mail
  674. # search_filter: "(|(%{uid}=%{email})(%{mail}=%{email}))"
  675. # uid_conversion:
  676. # enabled: true
  677. # search: "., -"
  678. # replace: _
  679. # -- https://github.com/mastodon/mastodon/blob/main/Dockerfile#L75
  680. #
  681. # if you manually change the UID/GID environment variables, ensure these values
  682. # match:
  683. podSecurityContext:
  684. runAsUser: 991
  685. runAsGroup: 991
  686. fsGroup: 991
  687. # @ignored
  688. securityContext: {}
  689. serviceAccount:
  690. # -- Specifies whether a service account should be created
  691. create: true
  692. # -- Annotations to add to the service account
  693. annotations: {}
  694. # -- The name of the service account to use.
  695. # If not set and create is true, a name is generated using the fullname template
  696. name: ""
  697. # Custom annotations to apply to all created deployment objects. These can be
  698. # used to help mastodon interact with other services in the cluster.
  699. deploymentAnnotations: {}
  700. # -- Kubernetes manages pods for jobs and pods for deployments differently, so you might
  701. # need to apply different annotations to the two different sets of pods. The annotations
  702. # set with podAnnotations will be added to all deployment-managed pods.
  703. podAnnotations: {}
  704. # If set to true, an annotation with the current chart release number will be added to all mastodon pods. This will
  705. # cause all pods to be recreated every `helm upgrade` regardless of whether their config or spec changes.
  706. revisionPodAnnotation: true
  707. # The annotations set with jobAnnotations will be added to all job pods.
  708. jobAnnotations: {}
  709. # -- Default resources for all Deployments and jobs unless overwritten
  710. resources:
  711. {}
  712. # We usually recommend not to specify default resources and to leave this as a conscious
  713. # choice for the user. This also increases chances charts run on environments with little
  714. # resources, such as Minikube. If you do want to specify resources, uncomment the following
  715. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  716. # limits:
  717. # cpu: 100m
  718. # memory: 128Mi
  719. # requests:
  720. # cpu: 100m
  721. # memory: 128Mi
  722. # @ignored
  723. nodeSelector: {}
  724. # @ignored
  725. tolerations: []
  726. # -- Affinity for all pods unless overwritten
  727. affinity: {}
  728. # -- Timezone for all pods unless overwritten
  729. timezone: UTC
  730. # -- Topology Spread Constraints for all pods unless overwritten
  731. # Please note that you need to use `matchLabelKeys` (Kubernetes 1.25+) if you
  732. # want to spread each deployment independently, or override topologySpreadConstraints
  733. # for each deployment
  734. topologySpreadConstraints: {}
  735. # Default volume mounts for all pods
  736. volumeMounts: []
  737. # Default volumes for all pods
  738. volumes: []