<p>I am quite new to Tekton.</p>
<p>I am facing an issue currently - replication of pods using tekton.</p>
<p>What I want to achieve?</p>
<ul>
<li>I want to create a pipeline with two tasks.</li>
<li>First task creates an echo hello pod</li>
<li>Second task creates an echo goodbye pod.</li>
<li>Both pods needs to have 2 replicas.</li>
</ul>
<p>Error - unknown field &quot;replicas&quot; while running the tasks or pipeline.</p>
<p>I have tried to add replicas in spec section for both tasks and pipeline, but it does not work.
<strong>Any idea where I went wrong?</strong></p>
<p>Here is my script -
First task -</p>
<pre><code>kind: Task
metadata:
  name: hello
spec:
  replicas: 2
  steps:
    - name: hello
      image: ubuntu
      command:
        - echo
      args:
        - &quot;Hello World!&quot;
</code></pre>
<p>Second Task</p>
<pre><code>kind: Task
metadata:
  name: goodbye
spec:
  replicas: 2
  steps:
    - name: goodbye
      image: ubuntu
      script: |
        #!/bin/bash
        echo &quot;Goodbye World!&quot;
</code></pre>
<p>Pipeline script -</p>
<pre><code>kind: Pipeline
metadata:
  name: hello-goodbye
spec:
  replicas: 2
  tasks:
  - name: hello
    taskRef:
      name: hello
  - name: goodbye
    runAfter:
     - hello
    taskRef:
      name: goodbye
</code></pre>

Shresth Suman
<p>There is no such thing as &quot;replicas&quot; in Tekton Pipelines.</p>
<p>A Tekton Pipeline is a pipeline of Tasks that execute in a <a href="https://en.wikipedia.org/wiki/Directed_acyclic_graph" rel="nofollow noreferrer"><em>directed acyclic graph</em></a>.</p>
