wazuh / wazuh-kubernetes

Wazuh - Wazuh Kubernetes
https://wazuh.com/
GNU General Public License v2.0
235 stars 146 forks source link

I cannot join wazuh agent with ingress port 443 #586

Open soknang-khna opened 5 months ago

soknang-khna commented 5 months ago

Dear wazuh support team, I face issue with wazuh relate wazuh agent cannot join to wazuh server via kubernetes ingress that using dns port 443. this sample me create ingress point to wazuh backend service as below: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: nginx.ingress.kubernetes.io/backend-protocol: HTTPS nginx.ingress.kubernetes.io/force-ssl-redirect: "true" nginx.ingress.kubernetes.io/proxy-body-size: "500m" name: wazuh-master namespace: wazuh spec: ingressClassName: nginx rules:

Thorgrym commented 3 months ago

I'm not an expert but wazhu agent are using 1514 and 1515 ports by default so they won't use the 443 of the ingress. What is your agent config ? Also If you want to expose wazuh to the outside there is no need for an Ingress because the nodes are configured in LoadBalancer (you could use an Ingress If you want but it's not necessary that's just what I mean)