values.yaml 5.8 KB

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