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.

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