Last active
November 7, 2016 15:46
-
-
Save monodot/1b59560df4c2e1882686eb91eb2ebfda to your computer and use it in GitHub Desktop.
Creates an endpoint and service inside OpenShift to proxy an external Nexus instance running on (e.g.) 10.1.2.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pass this file to openshift using `oc process -f openshift-nexus-proxy.yaml | oc create -f -` | |
# | |
apiVersion: v1 | |
kind: Template | |
metadata: | |
creationTimestamp: null | |
name: nexus-service | |
objects: | |
- apiVersion: v1 | |
kind: Endpoints | |
metadata: | |
creationTimestamp: null | |
name: nexus | |
subsets: | |
- addresses: | |
- ip: 10.1.2.1 | |
ports: | |
- name: nexus | |
port: 8081 | |
protocol: TCP | |
- apiVersion: v1 | |
kind: Service | |
metadata: | |
creationTimestamp: null | |
name: nexus | |
spec: | |
ports: | |
- name: nexus | |
port: 8081 | |
protocol: TCP | |
targetPort: 8081 | |
sessionAffinity: None | |
type: ClusterIP | |
status: | |
loadBalancer: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment