Skip to content

Commit

Permalink
update ocp config for new nexus docker route
Browse files Browse the repository at this point in the history
  • Loading branch information
BraisVQ committed Jun 20, 2023
1 parent 0163f6d commit 95aef70
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
26 changes: 26 additions & 0 deletions nexus/ocp-config/route.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@ kind: Template
parameters:
- name: NEXUS_NAME
value: nexus
- name: NEXUS_DOCKER_NAME
value: docker-group
- name: NEXUS_HOST
description: Nexus host without protocol - which is attached based on the configuration in the route.yml
required: true
- name: OPENSHIFT_APPS_BASEDOMAIN
description: the domain of routes exposed on OCP.
required: true
- name: ODS_NAMESPACE
description: Central ODS namespace in OpenShift.
required: true
objects:
- apiVersion: v1
kind: Route
Expand All @@ -25,3 +33,21 @@ objects:
name: ${NEXUS_NAME}
weight: 100
wildcardPolicy: None
- apiVersion: v1
kind: Route
metadata:
labels:
app: ${NEXUS_NAME}
name: ${NEXUS_DOCKER_NAME}
spec:
host: ${NEXUS_DOCKER_NAME}-${ODS_NAMESPACE}${OPENSHIFT_APPS_BASEDOMAIN}
port:
targetPort: 5000-docker
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
name: ${NEXUS_NAME}
weight: 100
wildcardPolicy: None
4 changes: 4 additions & 0 deletions nexus/ocp-config/svc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ objects:
port: 8081
protocol: TCP
targetPort: 8081
- name: 5000-docker
port: 5000
protocol: TCP
targetPort: 5000
selector:
deploymentconfig: ${NEXUS_NAME}
sessionAffinity: None
Expand Down

0 comments on commit 95aef70

Please sign in to comment.