diff --git a/kubernetes/service.yaml b/kubernetes/service.yaml new file mode 100644 index 0000000..a08e955 --- /dev/null +++ b/kubernetes/service.yaml @@ -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 +