Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1.35 KB

File metadata and controls

31 lines (18 loc) · 1.35 KB

Simple kubernetes related tasks sample

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.

  1. 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

    Toolchain overview

  2. Add the definitions:

    • for the tasks and the sample (kubernetes-service and kubernetes-service/sample paths)

    Tekton pipeline definitions

  3. Add the environment properties:

    • apikey to provide an API key used for the ibmcloud login/access
    • cluster-name to indicate the name of the IKS cluster that you want to target
    • resource-group to indicate the resource group being used. Example defaults to default

    Tekton pipeline environment properties

  4. Create a manual trigger to start the sample listener

    Tekton pipeline sample trigger

  5. Run the pipeline