values.yaml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. ## Default values for emqx.
  2. ## This is a YAML-formatted file.
  3. ## Declare variables to be passed into your templates.
  4. ## It is recommended to have odd number of nodes in a cluster, otherwise the emqx cluster cannot be automatically healed in case of net-split.
  5. replicaCount: 3
  6. image:
  7. repository: emqx/emqx
  8. pullPolicy: IfNotPresent
  9. # Overrides the image tag whose default is the chart appVersion.
  10. tag: ""
  11. ## Optionally specify an array of imagePullSecrets.
  12. ## Secrets must be manually created in the namespace.
  13. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  14. ##
  15. # pullSecrets:
  16. # - myRegistryKeySecretName
  17. # The name of a secret in the same kubernetes namespace which contains values to
  18. # be added to the environment (must be manually created)
  19. # This can be useful for passwords and logins, etc.
  20. # envFromSecret: "emqx-secrets"
  21. ## Forces the recreation of pods during helm upgrades. This can be useful to update configuration values even if the container image did not change.
  22. recreatePods: false
  23. podAnnotations: {}
  24. # Pod deployment policy
  25. # value: OrderedReady | Parallel
  26. # To redeploy a chart with existing PVC(s), the value must be set to Parallel to avoid deadlock
  27. podManagementPolicy: Parallel
  28. persistence:
  29. enabled: false
  30. size: 20Mi
  31. storageClassName: ""
  32. accessMode: ReadWriteOnce
  33. ## Existing PersistentVolumeClaims
  34. ## The value is evaluated as a template
  35. ## So, for example, the name can depend on .Release or .Chart
  36. # existingClaim: ""
  37. resources: {}
  38. # limits:
  39. # cpu: 500m
  40. # memory: 512Mi
  41. # requests:
  42. # cpu: 500m
  43. # memory: 512Mi
  44. # Containers that run before the creation of EMQX containers. They can contain utilities or setup scripts.
  45. initContainers: {}
  46. # - name: sysctl
  47. # image: busybox
  48. # securityContext:
  49. # runAsUser: 0
  50. # runAsGroup: 0
  51. # capabilities:
  52. # add:
  53. # - SYS_ADMIN
  54. # drop:
  55. # - ALL
  56. # command:
  57. # - /bin/sh
  58. # - -c
  59. # - |
  60. # mount -o remount rw /proc/sys
  61. # sysctl -w net.core.somaxconn=65535
  62. # sysctl -w net.ipv4.ip_local_port_range="1024 65535"
  63. # sysctl -w kernel.core_uses_pid=0
  64. # sysctl -w net.ipv4.tcp_tw_reuse=1
  65. # sysctl -w fs.nr_open=1000000000
  66. # sysctl -w fs.file-max=1000000000
  67. # sysctl -w net.ipv4.ip_local_port_range='1025 65534'
  68. # sysctl -w net.ipv4.udp_mem='74583000 499445000 749166000'
  69. # sysctl -w net.ipv4.tcp_max_sync_backlog=163840
  70. # sysctl -w net.core.netdev_max_backlog=163840
  71. # sysctl -w net.core.optmem_max=16777216
  72. # sysctl -w net.ipv4.tcp_rmem='1024 4096 16777216'
  73. # sysctl -w net.ipv4.tcp_wmem='1024 4096 16777216'
  74. # sysctl -w net.ipv4.tcp_max_tw_buckets=1048576
  75. # sysctl -w net.ipv4.tcp_fin_timeout=15
  76. # sysctl -w net.core.rmem_default=262144000
  77. # sysctl -w net.core.wmem_default=262144000
  78. # sysctl -w net.core.rmem_max=262144000
  79. # sysctl -w net.core.wmem_max=262144000
  80. # sysctl -w net.ipv4.tcp_mem='378150000 504200000 756300000'
  81. # sysctl -w net.netfilter.nf_conntrack_max=1000000
  82. # sysctl -w net.netfilter.nf_conntrack_tcp_timeout_time_wait=30
  83. ## EMQX configuration item, see the documentation (https://hub.docker.com/r/emqx/emqx)
  84. emqxConfig:
  85. EMQX_CLUSTER__DISCOVERY_STRATEGY: "dns"
  86. EMQX_DASHBOARD__DEFAULT_USERNAME: "admin"
  87. EMQX_DASHBOARD__DEFAULT_PASSWORD: "public"
  88. ## EMQX Enterprise Edition requires manual creation of a Secret containing the licensed content. Write the name of Secret to the value of "emqxLicenseSecretName"
  89. ## Example:
  90. ## kubectl create secret generic emqx-license-secret-name --from-file=/path/to/emqx.lic
  91. emqxLicenseSecretName:
  92. service:
  93. ## Service type
  94. ##
  95. type: ClusterIP
  96. ## Port for MQTT
  97. ##
  98. mqtt: 1883
  99. ## Port for MQTT(SSL)
  100. ##
  101. mqttssl: 8883
  102. ## Port for WebSocket/HTTP
  103. ##
  104. ws: 8083
  105. ## Port for WSS/HTTPS
  106. ##
  107. wss: 8084
  108. ## Port for dashboard and API
  109. ##
  110. dashboard: 18083
  111. ## Port for dashboard and API over HTTPS
  112. ##
  113. # dashboardtls: 18084
  114. ## Specify the nodePort(s) value for the LoadBalancer and NodePort service types.
  115. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
  116. ##
  117. nodePorts:
  118. mqtt:
  119. mqttssl:
  120. mgmt:
  121. ws:
  122. wss:
  123. dashboard:
  124. dashboardtls:
  125. ## Set the LoadBalancer service type to internal only.
  126. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
  127. ##
  128. # loadBalancerIP:
  129. ## Load Balancer sources
  130. ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
  131. ## Example:
  132. ## loadBalancerSourceRanges:
  133. ## - 10.10.10.0/24
  134. ##
  135. loadBalancerSourceRanges: []
  136. ## Set the ExternalIPs
  137. ##
  138. externalIPs: []
  139. ## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints.
  140. ## There are two available options: Cluster (default) and Local.
  141. ## Cluster obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading.
  142. ## Local preserves the client source IP and avoids a second hop for LoadBalancer and NodePort type Services, but risks potentially imbalanced traffic spreading.
  143. ##
  144. externalTrafficPolicy: "Cluster"
  145. ## Provide any additional annotations which may be required. Evaluated as a template
  146. ##
  147. annotations: {}
  148. nodeSelector: {}
  149. tolerations: []
  150. affinity: {}
  151. ingress:
  152. ## ingress for EMQX Dashboard
  153. dashboard:
  154. enabled: false
  155. # ingressClassName: nginx
  156. annotations: {}
  157. # kubernetes.io/ingress.class: nginx
  158. # kubernetes.io/tls-acme: "true"
  159. path: /
  160. pathType: ImplementationSpecific
  161. hosts:
  162. - dashboard.emqx.local
  163. tls: []
  164. podSecurityContext:
  165. enabled: true
  166. fsGroup: 1000
  167. fsGroupChangePolicy: Always
  168. runAsUser: 1000
  169. supplementalGroups:
  170. - 1000
  171. containerSecurityContext:
  172. enabled: true
  173. runAsNonRoot: true
  174. runAsUser: 1000
  175. metrics:
  176. enabled: false
  177. type: prometheus
  178. ssl:
  179. enabled: false
  180. useExisting: false
  181. existingName: emqx-tls
  182. dnsnames: {}
  183. issuer:
  184. name: letsencrypt-dns
  185. kind: ClusterIssuer