Skip to content

Instantly share code, notes, and snippets.

@monodot
Last active November 7, 2016 15:46
Show Gist options
  • Save monodot/1b59560df4c2e1882686eb91eb2ebfda to your computer and use it in GitHub Desktop.
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
# 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