Add service and route
This commit is contained in:
parent
2a5ae82830
commit
bfb5b385d2
12
example-app/route.yaml
Normal file
12
example-app/route.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: route.openshift.io/v1
|
||||||
|
kind: Route
|
||||||
|
metadata:
|
||||||
|
name: simple-example
|
||||||
|
spec:
|
||||||
|
port:
|
||||||
|
targetPort: 5000
|
||||||
|
to:
|
||||||
|
kind: Service
|
||||||
|
name: simple-example
|
||||||
|
weight: 100
|
||||||
|
wildcardPolicy: None
|
12
example-app/service.yaml
Normal file
12
example-app/service.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: simple-example
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 5000
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 5000
|
||||||
|
selector:
|
||||||
|
app: simple-example
|
||||||
|
type: ClusterIP
|
Loading…
x
Reference in New Issue
Block a user