Tekton is a powerful and flexible open-source framework for creating CI/CD systems, allowing developers to build, test, and deploy across cloud providers and on-premise systems. https://tekton.dev/
Questions tagged [tekton-pipelines]
95 questions
1
vote
1 answer
Kaniko: How to cache folders from Gatsby build in Kubernetes using Tekton?
I am building a CI/CD pipeline using Tekton on a bare metal Kubernetes Cluster. I have managed to cache the necessary images (Node & Nginx) and the layers, but how can I cache the .cache / public folders created by Gatsby build? These folders are…

Espen Finnesand
- 475
- 7
- 22
1
vote
1 answer
What are the best practices for Tekton implementation with multiple repositories with multiple deployments
We have multiple repositories that have multiple deployments in K8S.
Today, we have Tekton with the following setup:
We have 3 different projects, that should be build the same and deploy (they are just different repo and different name)
We defined…

Himberjack
- 5,682
- 18
- 71
- 115
1
vote
1 answer
Volume Write Permissions
How can I give the non-root user full access to the mounted volume path in Kubernetes (pod)?
I'm using a volume on the host (/workspace/projects path) and writing to the directory as below.
volumeMounts:
-name: workspace
mountPath:…

testbg testbg
- 193
- 2
- 11
1
vote
1 answer
Automatically reclaim PersistentStorage (NFS mount) after PersistentStorageClaim is deleted?
Situation: Using Tekton tasks to build and deploy following this tutorial. After running the pipeline, it creates a pod that requires persistent volume. A persistent volume claim is automatically created to try and bind to a PV.
However, what if I…

Cat
- 15
- 7
0
votes
0 answers
Failed when waiting for zonal op: rpc error: code = Internal desc = operation operation-1693482096842-6043686d0d6bc-22ff6e1f-02d71dbf failed
GCP Kubernetes with tekton pipeline for GitClone task
Bind the service account to the cluster role
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: file-system-access-binding
subjects:
- kind: ServiceAccount
…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
1 answer
How to pass the a VolumeClaimTemplate through tkn CLI and use them when starting a Pipeline so it applies to a PipelineRun
Is there a way to pass the claim as VolumeClaimTemplate and then provide its values to the pipeline so those are used when the PipelineRun is created at the execution of the pipeline instead of a PVC?
I have this VolumeClaimTemplate (see the image)…

3learner
- 29
- 5
0
votes
0 answers
Using taskRunSpecs for service account to clone, build, test and publish to gcp artifact library to maven failed
In the pipeline run, I have use taskRunSpecs to set the service account, the git clone is working fine, however with the GCP publish with the maven library failed with error message as
Failed to publish publication 'maven' to repository…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
0 answers
How to make tekton task to fail if curl command is failed inside task
I am working on a Tekton task that makes a cURL command request, extracts a response to a JSON file, and then extracts attributes from that JSON. I have noticed a behavior with my task that even if my cURL command fails, it does not fail the…

Karthik Peddineni
- 81
- 4
0
votes
0 answers
Authentication failed for artifact registry maven in GCP using tekton pipeline to publish the java library
I have a requirement to publish the jar in the artifact registry of GCP using the tekton pipeline. So I have created a pipeline and pipeline run in local env as minikube for the below task
Clone the source code from bitbucket
Clean, build and…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
1 answer
"URL(\"xxxxxxx.git\") appears to need SSH authentication but no SSH credentials have been provided" Tekton pipeline
Using the tekton hub catalog git-clone task to clone the private repository for bitbucket. Keep getting an error as no SSH credentials have been provided
I have created a new namespace for the security context issue pods "xxxx" is forbidden:…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
1 answer
CronJob: unknown field "jobTemplate"
apiVersion: tekton.dev/v1beta1
kind: CronJob
metadata:
name: nightly-test
namespace: team-dev
spec:
schedule: "0 1 * * *"
jobTemplate:
spec:
backoffLimit: 6
ttlSecondsAfterFinished: 30
template:
metadata:
…

Cees Timmerman
- 17,623
- 11
- 91
- 124
0
votes
1 answer
pods "xxxx" is forbidden: violates PodSecurity "restricted:latest": allowPrivilegeEscalation != false (containers "prepare", "place-scripts",
Install the git clone task from tekton hub
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/git-clone/0.9/git-clone.yaml
Git Secret.yaml
apiVersion: v1
kind: Secret
metadata:
name: git-ssh-key-secret
namespace:…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
0 answers
Tekton git-cli v0.4 escaping problems with eval and sed
We are currently experiencing failures of a (previously working) tekton pipeline, while updating a task (git-cli).
Our goal:
Clone as repo
Update a single line in a single file
Commit and push
It seems to me, that the single quotes around our sed…

René Jahn
- 1,155
- 1
- 10
- 27
0
votes
1 answer
Tekton: debugging why a when-clause is evaluated as false
I created a very simple task that checks if the current branch on a git repo is a release branch
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: check-git-remote-release-branches
spec:
params:
- default: .
description: The…

Otrebor
- 416
- 4
- 12
0
votes
0 answers
Exception with google bigquery select query to get count of rows in tekton task
I am working on a tekton task to get the count of rows from bigquery table and assign it to a variable for further validation, I have written below query to get the results in tekton task but it is failing with some json…

Karthik Peddineni
- 81
- 4