Gitlab Pipeline after port-forward is closed

Viewed 23

We are using gitlab-ee and kubernetes cluster on ubuntu 18.04 os. When the pipeline is running the port-forward command line, if a user sends a request to service while port-forward command is active the port-forward command stops.

When I run the pipeline commands myself, I don't get any errors.I think gitlab pipeline is broken .

Example, I keep request the service and return the shell running port-forward command is working , not closed the port-forward.

How can i solve the this problem?

kind: Service
apiVersion: v1
metadata:
  name: project_name
  namespace: branch_name
  labels:
    app: project_name
spec:
  clusterIP: None
  ports:
    - name: tcp-port_number
      protocol: TCP
      port: port_number
      targetPort: port_number
  selector:
    app: project_name
kubectl port-forward -n xxx service/xxxx 80:80 --address=0.0.0.0 

Thank you.

0 Answers
Related