Add service manifest

This commit is contained in:
Jan Bongers 2023-06-25 20:34:41 +02:00
parent f53d46c441
commit c6df41a50a

14
kubernetes/service.yaml Normal file
View 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