apiVersion: v1
kind: Service
metadata:
  name: tomcat-service
  namespace: demo-tomcat
spec:
  selector:
    app: tomcat
    target: demo
  ports:
    - protocol: TCP
      port: 80
      targetPort: 8080
      name: tomcat-http
  type: LoadBalancer
