Update 2 files

- /internalproxy/templates/nexus.yaml
- /internalproxy/templates/registry.yaml
This commit is contained in:
2023-12-03 14:25:23 +00:00
parent 95986b3438
commit 44029e6d92
2 changed files with 122 additions and 122 deletions

View File

@@ -1,64 +1,64 @@
apiVersion: v1 #apiVersion: v1
kind: Service #kind: Service
metadata: #metadata:
name: nexus # name: nexus
spec: #spec:
ports: # ports:
- name: app # - name: app
port: 8081 # port: 8081
protocol: TCP # protocol: TCP
targetPort: 8081 # targetPort: 8081
clusterIP: None # clusterIP: None
type: ClusterIP # type: ClusterIP
#
--- #---
#
apiVersion: v1 #apiVersion: v1
kind: Endpoints #kind: Endpoints
metadata: #metadata:
name: nexus # name: nexus
subsets: #subsets:
- addresses: #- addresses:
- ip: 192.168.20.253 # - ip: 192.168.20.253
ports: # ports:
- name: app # - name: app
port: 8081 # port: 8081
protocol: TCP # protocol: TCP
#
--- #---
#
apiVersion: traefik.containo.us/v1alpha1 #apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute #kind: IngressRoute
metadata: #metadata:
name: nexus-ingress # name: nexus-ingress
spec: #spec:
entryPoints: # entryPoints:
- websecure # - websecure
routes: # routes:
- match: Host(`nexus.durp.info`) && PathPrefix(`/`) # - match: Host(`nexus.durp.info`) && PathPrefix(`/`)
kind: Rule # kind: Rule
services: # services:
- name: nexus # - name: nexus
port: 8081 # port: 8081
tls: # tls:
secretName: nexus-tls # secretName: nexus-tls
#
--- #---
#
apiVersion: cert-manager.io/v1 #apiVersion: cert-manager.io/v1
kind: Certificate #kind: Certificate
metadata: #metadata:
name: nexus-tls # name: nexus-tls
spec: #spec:
secretName: nexus-tls # secretName: nexus-tls
issuerRef: # issuerRef:
name: letsencrypt-production # name: letsencrypt-production
kind: ClusterIssuer # kind: ClusterIssuer
commonName: "nexus.durp.info" # commonName: "nexus.durp.info"
dnsNames: # dnsNames:
- "nexus.durp.info" # - "nexus.durp.info"
#
--- #---
kind: Service kind: Service
apiVersion: v1 apiVersion: v1

View File

@@ -1,64 +1,64 @@
apiVersion: v1 #apiVersion: v1
kind: Service #kind: Service
metadata: #metadata:
name: registry # name: registry
spec: #spec:
ports: # ports:
- name: app # - name: app
port: 5000 # port: 5000
protocol: TCP # protocol: TCP
targetPort: 5000 # targetPort: 5000
clusterIP: None # clusterIP: None
type: ClusterIP # type: ClusterIP
#
--- #---
#
apiVersion: v1 #apiVersion: v1
kind: Endpoints #kind: Endpoints
metadata: #metadata:
name: registry # name: registry
subsets: #subsets:
- addresses: #- addresses:
- ip: 192.168.20.253 # - ip: 192.168.20.253
ports: # ports:
- name: app # - name: app
port: 5000 # port: 5000
protocol: TCP # protocol: TCP
#
--- #---
#
apiVersion: traefik.containo.us/v1alpha1 #apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute #kind: IngressRoute
metadata: #metadata:
name: registry-ingress # name: registry-ingress
spec: #spec:
entryPoints: # entryPoints:
- websecure # - websecure
routes: # routes:
- match: Host(`registry.durp.info`) && PathPrefix(`/`) # - match: Host(`registry.durp.info`) && PathPrefix(`/`)
kind: Rule # kind: Rule
services: # services:
- name: registry # - name: registry
port: 5000 # port: 5000
tls: # tls:
secretName: registry-tls # secretName: registry-tls
#
--- #---
#
apiVersion: cert-manager.io/v1 #apiVersion: cert-manager.io/v1
kind: Certificate #kind: Certificate
metadata: #metadata:
name: registry-tls # name: registry-tls
spec: #spec:
secretName: registry-tls # secretName: registry-tls
issuerRef: # issuerRef:
name: letsencrypt-production # name: letsencrypt-production
kind: ClusterIssuer # kind: ClusterIssuer
commonName: "registry.durp.info" # commonName: "registry.durp.info"
dnsNames: # dnsNames:
- "registry.durp.info" # - "registry.durp.info"
#
--- #---
kind: Service kind: Service
apiVersion: v1 apiVersion: v1