values.yaml 9.9 KB

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