15 lines
426 B
YAML
15 lines
426 B
YAML
---
|
|
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
|
|
|