TKN-TASK-START(1)
π NAME π
okay so bestie, welcome to TKN-TASK-START(1) β that's the tkn-task-start page from the tkn manual, section 1, and she is entirely about starting Tasks. Like, tkn task start. That's the whole vibe. πΈ
β¨ SYNOPSIS β¨
tkn task start [RESOURCES...] [PARAMS...] [SERVICEACCOUNT]
π DESCRIPTION π
Start Tasks. That's the description, no notes, she said what she said. π If you wanna kick off a Task, this is the command, periodt.
π¦ OPTIONS π¦
okay this is the long part, stay with me bestie, we're going through every single one π
--dry-run[=false]β preview the TaskRun without actually running it. very "look but don't touch" energy π-f,--filename=""β a local or remote file name that contains a Task definition to start a TaskRun from-h,--help[=false]β help forstart. the classic-i,--image=""β use an oci bundle-l,--labels=[]β pass labels aslabel=value.-L,--last[=false]β re-run the Task using the last TaskRun values. rerun queen behavior π--output=""β format of the TaskRun (yamlorjson)-p,--param=[]β pass the param askey=valuefor string type, orkey=value1,value2,...for array type, orkey="key1:value1, key2:value2"for object type--pod-template=""β local or remote file containing a PodTemplate definition--prefix-name=""β specify a prefix for the TaskRun name (must be lowercase alphanumeric characters, so no shouting please)--remote-bearer=""β a Bearer token to authenticate against the repository--remote-password=""β a password to pass to the registry for basic auth. must be used with--remote-username(they're a package deal fr fr)--remote-skip-tls[=false]β skip TLS certificate verification and allow plain-HTTP connections to the registry (an opt-in insecure mode). bestie this one is literally opt-in insecure, so like, be aware π«Ά--remote-username=""β a username to pass to the registry for basic auth. must be used with--remote-password-s,--serviceaccount=""β pass the serviceaccount name--showlog[=false]β show logs right after starting the Task--skip-optional-workspace[=false]β skips the prompt for optional workspaces--timeout=""β timeout for the TaskRun--use-param-defaults[=false]β use the default parameter values without prompting for input. no questions asked, she just goes β¨--use-taskrun=""β specify a TaskRun name to use its values to re-run the TaskRun-w,--workspace=[]β pass one or more workspaces to map to the corresponding physical volumes
π OPTIONS INHERITED FROM PARENT COMMANDS π
these ones come from the parent command, they're not hers, she's just borrowing π
-c,--context=""β name of the kubeconfig context to use (default:kubectl config current-context)-k,--kubeconfig=""β kubectl config file (default:$HOME/.kube/config)-n,--namespace=""β namespace to use (default: from$KUBECONFIG)-C,--no-color[=false]β disable coloring (default:false)
π₯ EXAMPLE π₯
Start Task foo by creating a TaskRun named "foo-run-xyz123" from namespace 'bar':
tkn task start foo -s ServiceAccountName -n bar
The Task can either be specified by reference in a cluster using the positional argument, an oci bundle using the --image argument and the positional argument, or in a file using the --filename argument. three whole ways, pick your fighter π
π Authentication π
There are three ways to authenticate against your registry when using the --image argument.
- By default, your
docker.configin your home directory and podman'sauth.jsonare used. - Additionally, you can supply a Bearer Token via
--remote-bearer - Additionally, you can use Basic auth via
--remote-usernameand--remote-password
π Params π
For params values, if you want to provide multiple values, provide them comma separated like cat,foo,bar
π§ Passing the workspaces via flags π§
- In case of emptyDir, you can pass it like
-w name=my-empty-dir,emptyDir= - In case of configMap, you can pass it like
-w name=my-config,config=rpg,item=ultimav=1 - In case of secrets, you can pass it like
-w name=my-secret,secret=secret-name - In case of pvc, you can pass it like
-w name=my-pvc,claimName=pvc1 - In case of volumeClaimTemplate, you can pass it like
-w name=my-volume-claim-template,volumeClaimTemplateFile=workspace-template.yamlbut before you need to create aworkspace-template.yamlfile. Sample contents of the file are as follows:spec: accessModes:ReadWriteOnce resources: requests: storage: 1Gi
- In case of binding a CSI workspace, you can pass it like
-w name=my-csi,csiFile=csi.yamlbut you need to create acsi.yamlfile before hand. Sample contents of the file are as follows:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: "vault-database"
π SEE ALSO π
tkn-task(1)β go say hi to the parent, iykyk π¦
okay that's the whole page bestie, you ate that π β¨
and for the cute little sign-off: this page is Auto generated by spf13/cobra, and yes, the header and footer both just say TKN-TASK-START(1) again because she likes her symmetry π periodt.
π¦ where this page comes from
- nixpkgs unstable: tektoncd-cli 0.46.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms