From b3d0591502fe2f1fc5aa2547187e7fd3dc77d6e9 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Thu, 20 Apr 2023 10:20:02 +0000 Subject: [PATCH] Update file nexus.yaml --- internalproxy/templates/nexus.yaml | 59 ++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 internalproxy/templates/nexus.yaml diff --git a/internalproxy/templates/nexus.yaml b/internalproxy/templates/nexus.yaml new file mode 100644 index 0000000..dd6d469 --- /dev/null +++ b/internalproxy/templates/nexus.yaml @@ -0,0 +1,59 @@ +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" \ No newline at end of file