This sample
sub-directory contains an EventListener definition kubernetes-service-no-resources
that you can include in your tekton pipeline configuration to run an example usage of the iks-fetch-config
and iks-contextual-execution
tasks.
-
Create a toolchain (or update a toolchain) to include:
- the git repository that you want to clone, which can be private
- the repository containing this tekton task
- a tekton pipeline definition
-
Add the definitions:
- for the tasks and the sample (
kubernetes-service
andkubernetes-service/sample
paths)
- for the tasks and the sample (
-
Add the environment properties:
apikey
to provide an API key used for the ibmcloud login/accesscluster-name
to indicate the name of the IKS cluster that you want to targetresource-group
to indicate the resource group being used. Example defaults todefault
-
Create a manual trigger to start the sample listener
-
Run the pipeline