From dbe6e8f96ab96a04a3b39109733067200d500220 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 3 Dec 2023 15:00:06 +0000 Subject: [PATCH] Update 3 files - /internalproxy/templates/nexus.yaml - /internalproxy/templates/registry.yaml - /internalproxy/templates/wazuh.yaml --- internalproxy/templates/nexus.yaml | 122 ++++++++++++------------- internalproxy/templates/registry.yaml | 122 ++++++++++++------------- internalproxy/templates/wazuh.yaml | 124 +++++++++++++------------- 3 files changed, 184 insertions(+), 184 deletions(-) diff --git a/internalproxy/templates/nexus.yaml b/internalproxy/templates/nexus.yaml index bb80c51..7074102 100644 --- a/internalproxy/templates/nexus.yaml +++ b/internalproxy/templates/nexus.yaml @@ -1,64 +1,64 @@ -#apiVersion: v1 -#kind: Service -#metadata: -# name: nexus -#spec: -# ports: -# - name: app -# port: 8081 -# protocol: TCP -# targetPort: 8081 -# clusterIP: None -# type: ClusterIP -# -#--- -# -#apiVersion: v1 -#kind: Endpoints -#metadata: -# name: nexus -#subsets: -#- addresses: -# - ip: 192.168.20.253 -# ports: -# - name: app -# port: 8081 -# protocol: TCP -# -#--- -# -#apiVersion: traefik.containo.us/v1alpha1 -#kind: IngressRoute -#metadata: -# name: nexus-ingress -#spec: -# entryPoints: -# - websecure -# routes: -# - match: Host(`nexus.durp.info`) && PathPrefix(`/`) -# kind: Rule -# services: -# - name: nexus -# port: 8081 -# tls: -# secretName: nexus-tls -# -#--- -# -#apiVersion: cert-manager.io/v1 -#kind: Certificate -#metadata: -# name: nexus-tls -#spec: -# secretName: nexus-tls -# issuerRef: -# name: letsencrypt-production -# kind: ClusterIssuer -# commonName: "nexus.durp.info" -# dnsNames: -# - "nexus.durp.info" -# -#--- +apiVersion: v1 +kind: Service +metadata: + name: nexus +spec: + ports: + - name: app + port: 8081 + protocol: TCP + targetPort: 8081 + clusterIP: None + type: ClusterIP + +--- + +apiVersion: v1 +kind: Endpoints +metadata: + name: nexus +subsets: +- addresses: + - ip: 192.168.20.253 + ports: + - name: app + port: 8081 + protocol: TCP + +--- + +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + name: nexus-ingress +spec: + entryPoints: + - websecure + routes: + - match: Host(`nexus.durp.info`) && PathPrefix(`/`) + kind: Rule + services: + - name: nexus + port: 8081 + tls: + secretName: nexus-tls + +--- + +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: nexus-tls +spec: + secretName: nexus-tls + issuerRef: + name: letsencrypt-production + kind: ClusterIssuer + commonName: "nexus.durp.info" + dnsNames: + - "nexus.durp.info" + +--- kind: Service apiVersion: v1 diff --git a/internalproxy/templates/registry.yaml b/internalproxy/templates/registry.yaml index e848920..b4ac19a 100644 --- a/internalproxy/templates/registry.yaml +++ b/internalproxy/templates/registry.yaml @@ -1,64 +1,64 @@ -#apiVersion: v1 -#kind: Service -#metadata: -# name: registry -#spec: -# ports: -# - name: app -# port: 5000 -# protocol: TCP -# targetPort: 5000 -# clusterIP: None -# type: ClusterIP -# -#--- -# -#apiVersion: v1 -#kind: Endpoints -#metadata: -# name: registry -#subsets: -#- addresses: -# - ip: 192.168.20.253 -# ports: -# - name: app -# port: 5000 -# protocol: TCP -# -#--- -# -#apiVersion: traefik.containo.us/v1alpha1 -#kind: IngressRoute -#metadata: -# name: registry-ingress -#spec: -# entryPoints: -# - websecure -# routes: -# - match: Host(`registry.durp.info`) && PathPrefix(`/`) -# kind: Rule -# services: -# - name: registry -# port: 5000 -# tls: -# secretName: registry-tls -# -#--- -# -#apiVersion: cert-manager.io/v1 -#kind: Certificate -#metadata: -# name: registry-tls -#spec: -# secretName: registry-tls -# issuerRef: -# name: letsencrypt-production -# kind: ClusterIssuer -# commonName: "registry.durp.info" -# dnsNames: -# - "registry.durp.info" -# -#--- +apiVersion: v1 +kind: Service +metadata: + name: registry +spec: + ports: + - name: app + port: 5000 + protocol: TCP + targetPort: 5000 + clusterIP: None + type: ClusterIP + +--- + +apiVersion: v1 +kind: Endpoints +metadata: + name: registry +subsets: +- addresses: + - ip: 192.168.20.253 + ports: + - name: app + port: 5000 + protocol: TCP + +--- + +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + name: registry-ingress +spec: + entryPoints: + - websecure + routes: + - match: Host(`registry.durp.info`) && PathPrefix(`/`) + kind: Rule + services: + - name: registry + port: 5000 + tls: + secretName: registry-tls + +--- + +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: registry-tls +spec: + secretName: registry-tls + issuerRef: + name: letsencrypt-production + kind: ClusterIssuer + commonName: "registry.durp.info" + dnsNames: + - "registry.durp.info" + +--- kind: Service apiVersion: v1 diff --git a/internalproxy/templates/wazuh.yaml b/internalproxy/templates/wazuh.yaml index af88d4e..ec08dfa 100644 --- a/internalproxy/templates/wazuh.yaml +++ b/internalproxy/templates/wazuh.yaml @@ -1,65 +1,65 @@ -#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" -# -#--- -# +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" + +--- + kind: Service apiVersion: v1 metadata: