values.yaml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803
  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. # Settings for Prometheus metrics.
  423. # For more information, see:
  424. # https://docs.joinmastodon.org/admin/config/#prometheus
  425. prometheus:
  426. enabled: false
  427. # Host & port to send metrics to
  428. host: localhost
  429. port: 9394
  430. # Prometheus for web pods
  431. web:
  432. # Collect per-controller/action metrics for every request
  433. detailed: false
  434. # Prometheus for sidekiq pods
  435. sidekiq:
  436. # Collect per-job metrics for every job
  437. detailed: false
  438. # Open Telemetry configuration for all deployments. Component-specific
  439. # configuration will override these values.
  440. otel:
  441. enabled: false
  442. exporterUri:
  443. namePrefix: mastodon
  444. nameSeparator: "-"
  445. # Sets the PREPARED_STATEMENTS environment variable: https://docs.joinmastodon.org/admin/config/#prepared_statements
  446. preparedStatements: true
  447. # Specify extra environment variables to be added to all Mastodon pods.
  448. # These can be used for configuration not included in this chart (including configuration for Mastodon varietals.)
  449. extraEnvVars: {}
  450. # Alternatively specify extra environment variables stored in a ConfigMap.
  451. # The specified ConfigMap should contain the additional environment variables in key-value format.
  452. # extraEnvFrom: <config-map-name>
  453. ingress:
  454. enabled: true
  455. annotations:
  456. # For choosing an ingress ingressClassName is preferred over annotations
  457. # kubernetes.io/ingress.class: nginx
  458. #
  459. # To automatically request TLS certificates use one of the following
  460. # kubernetes.io/tls-acme: "true"
  461. # cert-manager.io/cluster-issuer: "letsencrypt"
  462. #
  463. # ensure that NGINX's upload size matches Mastodon's
  464. # for the K8s ingress controller:
  465. # nginx.ingress.kubernetes.io/proxy-body-size: 40m
  466. # for the NGINX ingress controller:
  467. # nginx.org/client-max-body-size: 40m
  468. # -- you can specify the ingressClassName if it differs from the default
  469. ingressClassName:
  470. hosts:
  471. - host: mastodon.local
  472. paths:
  473. - path: "/"
  474. tls:
  475. - secretName: mastodon-tls
  476. hosts:
  477. - mastodon.local
  478. # This allows you to have a separate ingress for streaming
  479. # When enabled, the main ingress will no longer handle streaming requests.
  480. # You will also need to configure mastodon.streaming.base_url accordingly
  481. streaming:
  482. enabled: false
  483. annotations:
  484. ingressClassName:
  485. hosts:
  486. - host: streaming.mastodon.local
  487. paths:
  488. - path: "/"
  489. tls:
  490. - secretName: mastodon-tls
  491. hosts:
  492. - streaming.mastodon.local
  493. # -- https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters
  494. elasticsearch:
  495. # Elasticsearch is powering full-text search. It is optional.
  496. # `false` will not install Elasticsearch as part of this chart
  497. #
  498. # if you enable ES after the initial install, you will need to manually run
  499. # RAILS_ENV=production bundle exec rake chewy:sync
  500. # (https://docs.joinmastodon.org/admin/optional/elasticsearch/)
  501. enabled: true
  502. # @ignored
  503. image:
  504. tag: 7
  505. # If you are using an external ES cluster, use `enabled: false` and set the hostname, port,
  506. # and whether the cluster uses TLS.
  507. # hostname:
  508. # port: 9200
  509. # tls: true
  510. # preset: single_node_cluster
  511. # This is optional, use it if you ES cluster requires authentication
  512. # user:
  513. # Name of an existing secret with a password key
  514. # existingSecret:
  515. # https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters
  516. postgresql:
  517. # -- disable if you want to use an existing db; in which case the values below
  518. # must match those of that external postgres instance
  519. enabled: true
  520. # postgresqlHostname: preexisting-postgresql
  521. # postgresqlPort: 5432
  522. auth:
  523. database: mastodon_production
  524. username: mastodon
  525. # you must set a password; the password generated by the postgresql chart will
  526. # be rotated on each upgrade:
  527. # https://github.com/bitnami/charts/tree/master/bitnami/postgresql#upgrade
  528. password: ""
  529. # Set the password for the "postgres" admin user
  530. # set this to the same value as above if you've previously installed
  531. # this chart and you're having problems getting mastodon to connect to the DB
  532. # postgresPassword: ""
  533. # you can also specify the name of an existing Secret
  534. # with a key of password set to the password you want
  535. existingSecret: ""
  536. # Options for a read-only replica.
  537. # If enabled, mastodon uses existing defaults for postgres for these values as well.
  538. # NOTE: This feature is only available on Mastodon v4.2+
  539. # Documentation for more information on this feature:
  540. # https://docs.joinmastodon.org/admin/scaling/#read-replicas
  541. readReplica:
  542. hostname:
  543. port:
  544. auth:
  545. database:
  546. username:
  547. password:
  548. existingSecret:
  549. # https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters
  550. redis:
  551. # disable if you want to use an existing redis instance; in which case the
  552. # values below must match those of that external redis instance
  553. enabled: true
  554. hostname: ""
  555. port: 6379
  556. auth:
  557. # -- you must set a password; the password generated by the redis chart will be
  558. # rotated on each upgrade:
  559. password: ""
  560. # setting password for an existing redis instance will store it in a new Secret
  561. # you can also specify the name of an existing Secret
  562. # with a key of redis-password set to the password you want
  563. # existingSecret: ""
  564. replica:
  565. replicaCount: 0
  566. # Configuration for a separate redis instance only for sidekiq processing.
  567. # If enabled, any values not specified will be copied from the base config.
  568. # If set to false, the main redis instance will be used, and all values will
  569. # be ignored.
  570. sidekiq:
  571. enabled: false
  572. hostname: ""
  573. port: 6379
  574. auth:
  575. password: ""
  576. # you can also specify the name of an existing Secret
  577. # with a key of redis-password set to the password you want
  578. existingSecret: ""
  579. # Configuration for a separate redis instance only for cache.
  580. # If enabled, any values not specified will be copied from the base config.
  581. # If set to false, the main redis instance will be used, and all values will
  582. # be ignored.
  583. cache:
  584. enabled: false
  585. hostname: ""
  586. port: 6379
  587. auth:
  588. password: ""
  589. # you can also specify the name of an existing Secret
  590. # with a key of redis-password set to the password you want
  591. existingSecret: ""
  592. # @ignored
  593. service:
  594. type: ClusterIP
  595. port: 80
  596. externalAuth:
  597. oidc:
  598. # -- OpenID Connect support is proposed in PR #16221 and awaiting merge.
  599. enabled: false
  600. # display_name: "example-label"
  601. # issuer: https://login.example.space/auth/realms/example-space
  602. # discovery: true
  603. # scope: "openid,profile"
  604. # uid_field: uid
  605. # client_id: mastodon
  606. # client_secret: SECRETKEY
  607. # redirect_uri: https://example.com/auth/auth/openid_connect/callback
  608. # assume_email_is_verified: true
  609. # client_auth_method:
  610. # response_type:
  611. # response_mode:
  612. # display:
  613. # prompt:
  614. # send_nonce:
  615. # send_scope_to_token_endpoint:
  616. # idp_logout_redirect_uri:
  617. # http_scheme:
  618. # host:
  619. # port:
  620. # jwks_uri:
  621. # auth_endpoint:
  622. # token_endpoint:
  623. # user_info_endpoint:
  624. # end_session_endpoint:
  625. saml:
  626. enabled: false
  627. # acs_url: http://mastodon.example.com/auth/auth/saml/callback
  628. # issuer: mastodon
  629. # idp_sso_target_url: https://login.example.com/auth/realms/example/protocol/saml
  630. # idp_cert: '-----BEGIN CERTIFICATE-----[your_cert_content]-----END CERTIFICATE-----'
  631. # idp_cert_fingerprint:
  632. # name_identifier_format: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
  633. # cert:
  634. # private_key:
  635. # want_assertion_signed: true
  636. # want_assertion_encrypted: true
  637. # assume_email_is_verified: true
  638. # uid_attribute: "urn:oid:0.9.2342.19200300.100.1.1"
  639. # attributes_statements:
  640. # uid: "urn:oid:0.9.2342.19200300.100.1.1"
  641. # email: "urn:oid:1.3.6.1.4.1.5923.1.1.1.6"
  642. # full_name: "urn:oid:2.16.840.1.113730.3.1.241"
  643. # first_name: "urn:oid:2.5.4.42"
  644. # last_name: "urn:oid:2.5.4.4"
  645. # verified:
  646. # verified_email:
  647. oauth_global:
  648. # -- Automatically redirect to OIDC, CAS or SAML, and don't use local account authentication when clicking on Sign-In
  649. omniauth_only: false
  650. cas:
  651. enabled: false
  652. # url: https://sso.myserver.com
  653. # host: sso.myserver.com
  654. # port: 443
  655. # ssl: true
  656. # validate_url:
  657. # callback_url:
  658. # logout_url:
  659. # login_url:
  660. # uid_field: 'user'
  661. # ca_path:
  662. # disable_ssl_verification: false
  663. # assume_email_is_verified: true
  664. # keys:
  665. # uid: 'user'
  666. # name: 'name'
  667. # email: 'email'
  668. # nickname: 'nickname'
  669. # first_name: 'firstname'
  670. # last_name: 'lastname'
  671. # location: 'location'
  672. # image: 'image'
  673. # phone: 'phone'
  674. pam:
  675. enabled: false
  676. # email_domain: example.com
  677. # default_service: rpam
  678. # controlled_service: rpam
  679. ldap:
  680. enabled: false
  681. # host: myservice.namespace.svc
  682. # port: 636
  683. # method: simple_tls
  684. # tls_no_verify: true
  685. # base:
  686. # bind_dn:
  687. # password:
  688. # uid: cn
  689. # mail: mail
  690. # search_filter: "(|(%{uid}=%{email})(%{mail}=%{email}))"
  691. # uid_conversion:
  692. # enabled: true
  693. # search: "., -"
  694. # replace: _
  695. # -- https://github.com/mastodon/mastodon/blob/main/Dockerfile#L75
  696. #
  697. # if you manually change the UID/GID environment variables, ensure these values
  698. # match:
  699. podSecurityContext:
  700. runAsUser: 991
  701. runAsGroup: 991
  702. fsGroup: 991
  703. # @ignored
  704. securityContext: {}
  705. serviceAccount:
  706. # -- Specifies whether a service account should be created
  707. create: true
  708. # -- Annotations to add to the service account
  709. annotations: {}
  710. # -- The name of the service account to use.
  711. # If not set and create is true, a name is generated using the fullname template
  712. name: ""
  713. # Custom annotations to apply to all created deployment objects. These can be
  714. # used to help mastodon interact with other services in the cluster.
  715. deploymentAnnotations: {}
  716. # -- Kubernetes manages pods for jobs and pods for deployments differently, so you might
  717. # need to apply different annotations to the two different sets of pods. The annotations
  718. # set with podAnnotations will be added to all deployment-managed pods.
  719. podAnnotations: {}
  720. # If set to true, an annotation with the current chart release number will be added to all mastodon pods. This will
  721. # cause all pods to be recreated every `helm upgrade` regardless of whether their config or spec changes.
  722. revisionPodAnnotation: true
  723. # The annotations set with jobAnnotations will be added to all job pods.
  724. jobAnnotations: {}
  725. # -- Default resources for all Deployments and jobs unless overwritten
  726. resources:
  727. {}
  728. # We usually recommend not to specify default resources and to leave this as a conscious
  729. # choice for the user. This also increases chances charts run on environments with little
  730. # resources, such as Minikube. If you do want to specify resources, uncomment the following
  731. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  732. # limits:
  733. # cpu: 100m
  734. # memory: 128Mi
  735. # requests:
  736. # cpu: 100m
  737. # memory: 128Mi
  738. # @ignored
  739. nodeSelector: {}
  740. # @ignored
  741. tolerations: []
  742. # -- Affinity for all pods unless overwritten
  743. affinity: {}
  744. # -- Timezone for all pods unless overwritten
  745. timezone: UTC
  746. # -- Topology Spread Constraints for all pods unless overwritten
  747. # Please note that you need to use `matchLabelKeys` (Kubernetes 1.25+) if you
  748. # want to spread each deployment independently, or override topologySpreadConstraints
  749. # for each deployment
  750. topologySpreadConstraints: {}
  751. # Default volume mounts for all pods
  752. volumeMounts: []
  753. # Default volumes for all pods
  754. volumes: []