0

I am running tekton-pipeline v.0.45.0 in a Kubernetes cluster v1.26.2. When I run this task :


apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
  name: hello
spec:
  steps:
    - name: echo
    image: ubuntu
    script: |
      echo "hello"

-> it's working like a charm.

But when I remove the script instruction :


apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
  name: hello
spec:
  steps:
    - name: echo
    image: ubuntu

-> I got the following error : 'failed to create task run pod "pipelinerun-hello": translating TaskSpec to Pod: Get "https://index.docker.io/v2/": dial tcp 34.205.13.154:443: i/o timeout. Maybe missing or invalid Task default/hello'.

For instance I have the same problem when using kaniko task (https://hub.tekton.dev/tekton/task/kaniko) which tries to pull from gcr registry : 'failed to create task run pod "build-bash-build-bash-image": translating TaskSpec to Pod: Get "https://gcr.io/v2/": dial tcp 142.251.31.82:443: i/o timeout. Maybe missing or invalid Task default/kaniko'

I am able to pull the exact same kaniko image from the host and from a pod within the cluster.

Do you have any idea what's the issue here ?

Thanks a lot,

BR

L.B
  • 1
  • 2

0 Answers0