Add service manifest
This commit is contained in:
parent
f53d46c441
commit
c6df41a50a
14
kubernetes/service.yaml
Normal file
14
kubernetes/service.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service # Type of kubernetes resource
|
||||||
|
metadata:
|
||||||
|
name: vehicles-service
|
||||||
|
spec:
|
||||||
|
type: NodePort # A port is opened on each node in your cluster via Kube proxy.
|
||||||
|
ports: # Take incoming HTTP requests on port 9090 and forward them to the targetPort of 8080
|
||||||
|
- name: http
|
||||||
|
port: 8080
|
||||||
|
targetPort: 8080
|
||||||
|
selector:
|
||||||
|
app: vehicles-blue
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user