apiVersion: v1
kind: Service
metadata:
  name: appserver-k8s-service
spec:
  type: ClusterIP
  ports:
   - name: "http-port"
     protocol: "TCP"
     port: 8080
     targetPort: 8080
  selector:
    app: appserver-k8s
