devops-release/kubernetes/service.yaml
2023-06-25 22:08:30 +02:00

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