From f888d8c00b16618f48f203ab493b8e1cab6af639 Mon Sep 17 00:00:00 2001 From: developerdurp Date: Sun, 12 Nov 2023 07:32:49 -0600 Subject: [PATCH] update --- internalproxy/templates/wazuh.yaml | 59 ++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 internalproxy/templates/wazuh.yaml diff --git a/internalproxy/templates/wazuh.yaml b/internalproxy/templates/wazuh.yaml new file mode 100644 index 0000000..f02dce0 --- /dev/null +++ b/internalproxy/templates/wazuh.yaml @@ -0,0 +1,59 @@ +apiVersion: v1 +kind: Service +metadata: + name: wazuh +spec: + ports: + - name: app + port: 443 + protocol: TCP + targetPort: 443 + clusterIP: None + type: ClusterIP + +--- + +apiVersion: v1 +kind: Endpoints +metadata: + name: wazuh +subsets: +- addresses: + - ip: 192.168.20.102 + ports: + - name: app + port: 443 + protocol: TCP + +--- + +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + name: wazuh-ingress +spec: + entryPoints: + - websecure + routes: + - match: Host(`wazuh.durp.info`) && PathPrefix(`/`) + kind: Rule + services: + - name: wazuh + port: 443 + tls: + secretName: wazuh-tls + +--- + +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: wazuh-tls +spec: + secretName: wazuh-tls + issuerRef: + name: letsencrypt-production + kind: ClusterIssuer + commonName: "wazuh.durp.info" + dnsNames: + - "wazuh.durp.info"