mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-21 05:55:35 +00:00
e294e1246b
Prior to this change, the installation instructions directly use the resource urls in the Catalog repo, which results in tight coupling between the organization and how users fetch resources (as described in TEP-0110). This commit updates the installation guide to install Tekton Catalog resources via Tekton Hub Api: https://github.com/tektoncd/hub/pull/539 This change decouples the Tekton Catalog organization from resouces resolution, which enables Tekton Catalog reorganization.
2.0 KiB
2.0 KiB
Install Tekton & Components
This task can be used to install Tekton pipelines and also it's components using Tekton Operator on a new cluster.
Install the Task
kubectl apply --filename https://api.hub.tekton.dev/v1/resource/tekton/task/tekton-operator-install/0.1/raw
Parameters
- OPERATOR_VERSION: Tekton Operator release version to be used for installing tekton components. (Default : "latest")
- INSTALL_TRIGGERS: If Triggers needs to be installed. (Default : "false")
- INSTALL_DASHBOARD: If Tekton Dashboard needs to be installed. (Default : "false")
- INSTALL_EXTENSION_WEBHOOKS: If Tekton Extension Webhooks needs to be installed. (Default : "false")
Note: The last three parameters accepts value "true"/"false". Default being "false" means we don't want to install that component.
Workspaces
- kubeconfig: The workspace consisting of the
kubeconfig
file of the new cluster on which tekton pipelines & components needs to be installed.
Sample Usage
- Create the
ConfigMap
kubectl create configmap kubeconfig --from-file="path/to/kubeconfig"
- Create a TaskRun in case you want to install Triggers
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: operator-run
spec:
taskRef:
name: tekton-operator-install
params:
- name: INSTALL_TRIGGERS
value: "true"
workspaces:
- name: kubeconfig
configMap:
name: kubeconfig
- Create a TaskRun in case you want to install Triggers as well as Dashboard
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: operator-run
spec:
taskRef:
name: tekton-operator-install
params:
- name: INSTALL_TRIGGERS
value: "true"
- name: INSTALL_DASHBOARD
value: "true"
workspaces:
- name: kubeconfig
configMap:
name: kubeconfig