apiVersion: v1
kind: Service
metadata:
  name: api
  labels:
    component: api
spec:
  type: NodePort
  ports:
  - port: 8080
    targetPort: 8080
    protocol: TCP
    name: http
  selector:
    app: spring-boot