apiVersion: v1
kind: Service
metadata:
  name: commandsnpservice-srv
  namespace: microservice-practice
spec:
  type: NodePort
  selector:
    app: commandservice
  ports:
    - name: commandservice
      protocol: TCP
      port: 80
      targetPort: 80