You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

175 lines
4.6 KiB

  1. replicaCount: 1
  2. image:
  3. repository: tootsuite/mastodon
  4. pullPolicy: Always
  5. # https://hub.docker.com/r/tootsuite/mastodon/tags
  6. tag: v3.3.0
  7. # alternatively, use `latest` for the latest release or `edge` for the image
  8. # built from the most recent commit
  9. #
  10. # tag: latest
  11. ingress:
  12. enabled: false
  13. annotations:
  14. kubernetes.io/ingress.class: nginx
  15. kubernetes.io/tls-acme: "true"
  16. # cert-manager.io/cluster-issuer: "letsencrypt"
  17. #
  18. # ensure that NGINX's upload size matches Mastodon's
  19. # for the K8s ingress controller:
  20. # nginx.ingress.kubernetes.io/proxy-body-size: 40m
  21. # for the NGINX ingress controller:
  22. # nginx.org/client-max-body-size: 40m
  23. # this value is used for LOCAL_DOMAIN
  24. hostname: mastodon.local
  25. tls:
  26. - secretName: mastodon-tls
  27. hosts:
  28. - mastodon.local
  29. # create an initial administrator user; the password is autogenerated and will
  30. # have to be reset
  31. createAdmin:
  32. enabled: false
  33. username: not_gargron
  34. email: not@example.com
  35. # available locales: https://github.com/tootsuite/mastodon/blob/master/config/application.rb#L43
  36. locale: en
  37. cron:
  38. # run `tootctl media remove` every week
  39. removeMedia:
  40. enabled: true
  41. schedule: "0 0 * * 0"
  42. application:
  43. web:
  44. port: 3000
  45. streaming:
  46. port: 4000
  47. # this should be set manually since os.cpus() returns the number of CPUs on
  48. # the node running the pod, which is unrelated to the resources allocated to
  49. # the pod by k8s
  50. workers: 1
  51. sidekiq:
  52. concurrency: 25
  53. # these must be set manually; autogenerated keys are rotated on each upgrade
  54. secrets:
  55. secret_key_base: ""
  56. otp_secret: ""
  57. vapid:
  58. private_key: ""
  59. public_key: ""
  60. smtp:
  61. auth_method: plain
  62. ca_file:
  63. delivery_method: smtp
  64. domain:
  65. enable_starttls_auto: true
  66. from_address: notifications@example.com
  67. login:
  68. openssl_verify_mode: peer
  69. password:
  70. port: 587
  71. reply_to:
  72. server: smtp.mailgun.org
  73. tls: false
  74. # https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters
  75. elasticsearch:
  76. # `false` will disable full-text search
  77. #
  78. # if you enable ES after the initial install, you will need to manually run
  79. # RAILS_ENV=production bundle exec rake chewy:sync
  80. # (https://docs.joinmastodon.org/admin/optional/elasticsearch/)
  81. enabled: true
  82. # may be removed once https://github.com/tootsuite/mastodon/pull/13828 is part
  83. # of a tagged release
  84. image:
  85. tag: 6
  86. # https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters
  87. postgresql:
  88. postgresqlDatabase: mastodon_production
  89. # you must set a password; the password generated by the postgresql chart will
  90. # be rotated on each upgrade:
  91. # https://github.com/bitnami/charts/tree/master/bitnami/postgresql#upgrade
  92. postgresqlPassword: ""
  93. postgresqlUsername: postgres
  94. # https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters
  95. redis:
  96. # you must set a password; the password generated by the redis chart will be
  97. # rotated on each upgrade:
  98. password: ""
  99. persistence:
  100. assets:
  101. # ReadWriteOnce is more widely supported than ReadWriteMany, but limits
  102. # scalability, since it requires the Rails and Sidekiq pods to run on the
  103. # same node.
  104. accessMode: ReadWriteOnce
  105. resources:
  106. requests:
  107. storage: 10Gi
  108. system:
  109. accessMode: ReadWriteOnce
  110. resources:
  111. requests:
  112. storage: 100Gi
  113. service:
  114. type: ClusterIP
  115. port: 80
  116. # https://github.com/tootsuite/mastodon/blob/master/Dockerfile#L88
  117. #
  118. # if you manually change the UID/GID environment variables, ensure these values
  119. # match:
  120. podSecurityContext:
  121. runAsUser: 991
  122. runAsGroup: 991
  123. fsGroup: 991
  124. securityContext: {}
  125. serviceAccount:
  126. # Specifies whether a service account should be created
  127. create: true
  128. # Annotations to add to the service account
  129. annotations: {}
  130. # The name of the service account to use.
  131. # If not set and create is true, a name is generated using the fullname template
  132. name: ""
  133. podAnnotations: {}
  134. resources: {}
  135. # We usually recommend not to specify default resources and to leave this as a conscious
  136. # choice for the user. This also increases chances charts run on environments with little
  137. # resources, such as Minikube. If you do want to specify resources, uncomment the following
  138. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  139. # limits:
  140. # cpu: 100m
  141. # memory: 128Mi
  142. # requests:
  143. # cpu: 100m
  144. # memory: 128Mi
  145. autoscaling:
  146. enabled: false
  147. minReplicas: 1
  148. maxReplicas: 100
  149. targetCPUUtilizationPercentage: 80
  150. # targetMemoryUtilizationPercentage: 80
  151. nodeSelector: {}
  152. tolerations: []
  153. affinity: {}