# Run a Pipeline

#### Run a Pipeline Manually

* Click the **Start Manual Execution** button to run a pipeline manually as shown below.

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FqFR6nfLV1OzsufDFRERZ%2F42.png?alt=media\&token=79ba6209-55d2-4707-ae07-298c6871c3da)

* A confirmation dialog box will appear. You can enter the required parameters and execute the pipeline.

The parameters depend on the pipeline. There will be no parameters if it is a simple pipeline with no configurations. You must enter the parameters if the pipeline has been configured. We will see examples of each.

#### **Simple pipeline**

* When manually executing the pipeline, we have configured a simple pipeline that deploys nginx, and we are not passing any parameters.

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2F5ko7q2uhMNQtefbEbkEQ%2F43.png?alt=media\&token=eed19ec0-db8f-4a7b-a55a-5e19722f72cd)

* In the above screenshot we can see a pipeline named ’LF-test-pipeline’. No changes have been made to the **configuration stage**. A Deploy(Manifest) stage has been configured, which deploys a Kubernetes manifest yaml/json file. **deploy-nginx** is the name of the stage. The screenshot is shown below. The details of adding stages are covered in previous sections.

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FfZgxDnFg1jEz8DVDlTqX%2F44.png?alt=media\&token=0448c786-f8d8-40c8-91aa-ca8e78216ec4)

* In 'Manifest Configuration,' we chose a Text-based manifest as the **Manifest Source,** and we put the Kubernetes manifest yaml file to deploy nginx there.

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FUUAvP87sLzSGF9i2W8hM%2F45.png?alt=media\&token=75edb10a-1168-42a0-b38e-3ef51adddd49)

* Save our configuration by selecting the Save Changes option at the bottom right of the screen, as shown in the screenshot below.

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FsZLHBFYTOPXsYqvVhSyp%2F46.png?alt=media\&token=f992795a-9a07-40e0-aa63-fff3e09bc728)

![](https://lh4.googleusercontent.com/Rb0joOXtXUNPZ6ut-tlWOnM94lqWnlXdQMURVjX7V0JWLLPik_0wrsoWMY5WoRu2X1A1hupZwTPfNIHZW1_Us1Hwb7a8jLxNbQ7MeR4TSIHDbPQPEfZUQMrNknEp-K9d_OTBcdnH)

* After saving our pipeline, we'll return to the screen where all of our pipelines are shown, configured for the appropriate application, by selecting the **Pipeline** tab at the top left of your screen as shown below.

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2F1SDbOUTM5IDMdCiXGDBF%2F47.png?alt=media\&token=ffc97dba-8144-4234-a1b5-1cd8069e0b9a)

The pipeline that we have configured is under the **testapp** application as shown in the screenshot. Configuring application has been explained in previous lessons.

* Click the **PIPELINES** option and we will see the below screen.

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FucZeKkeBSXQcYSBma2l8%2F48.png?alt=media\&token=ff9bb762-8b91-4e4c-b5fd-5ee070472a10)

* Click on **Start Manual Execution** to run this pipeline.

  We'll get a confirmation window, and we'll see that we don't need to pass any parameters to run the pipeline, as we have not configured any.

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2F4W9lrFZ2sttcqilExHLp%2F49.png?alt=media\&token=e084e8f6-7ab0-4ead-84a3-66a35b670a10)

We can see in the above screenshot that it says to select execution parameters, however as mentioned there is no parameter configured hence we do not need to pass any.

* Click on **Run** and the pipeline will be executed.

```
Comment:
Kubernetes manifest yaml file for nginx deployment:
apiVersion: v1
kind: Service
metadata:
  name: my-nginx-svc
  labels:
    app: nginx
spec:
  type: LoadBalancer
  ports:
  - port: 80
  selector:
    app: nginx
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-nginx
  labels:
    app: nginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.14.2
        ports:
        - containerPort: 80
```
