apiVersion:v1 kind:Namespace metadata: name:emqx --- apiVersion:apps.emqx.io/v2beta1 kind:EMQX metadata: name:emqx namespace:emqx spec: image:emqx:5.7.1 coreTemplate: spec: replicas:3 ## EMQX custom resources do not support updating this field at runtime volumeClaimTemplates: ## More content: https://docs.aws.amazon.com/eks/latest/userguide/storage-classes.html ## Please manage the Amazon EBS CSI driver as an Amazon EKS add-on. ## For more documentation please refer to: https://docs.aws.amazon.com/zh_cn/eks/latest/userguide/managing-ebs-csi.html storageClassName:gp3 resources: requests: storage:500Gi accessModes: -ReadWriteOnce dashboardServiceTemplate: metadata: ## More content: https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.4/guide/service/annotations/ annotations: ## Specifies whether the NLB is Internet-facing or internal. If not specified, defaults to internal. service.beta.kubernetes.io/aws-load-balancer-scheme:internal ## Specify the availability zone to which the NLB will route traffic. Specify at least one subnet, either subnetID or subnetName (subnet name label) can be used. # service.beta.kubernetes.io/aws-load-balancer-subnets: subnet-xxx1,subnet-xxx2 service.beta.kubernetes.io/aws-load-balancer-ssl-cert:arn:aws:acm:us-west-2:xxxxx:certificate/xxxx ## Specifies whether to use TLS for the backend traffic between the load balancer and the kubernetes pods. service.beta.kubernetes.io/aws-load-balancer-backend-protocol:tcp ## but direct access to K8S service port does not require TLS authentication service.beta.kubernetes.io/aws-load-balancer-ssl-ports:"18083" spec: type:LoadBalancer ## More content: https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.4/guide/service/nlb/ loadBalancerClass:service.k8s.aws/nlb listenersServiceTemplate: metadata: ## More content: https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.4/guide/service/annotations/ annotations: service.beta.kubernetes.io/aws-load-balancer-backend-protocol:tcp service.beta.kubernetes.io/aws-load-balancer-scheme:internet-facing spec: type:LoadBalancer ## More content: https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.4/guide/service/nlb/ loadBalancerClass:service.k8s.aws/nlb ports: ##- name: ssl-default ## nodePort: 31173 ## port: 8883 ## protocol: TCP ## targetPort: 8883 -name:tcp-default port:8883 protocol:TCP targetPort:8883 -name:tcp-default-2 port:1883 protocol:TCP targetPort:1883 -name:ws-default port:8084 protocol:TCP targetPort:8084 #- name: wss-default # nodePort: 30437 # port: 8084 # protocol: TCP # targetPort: 8084