Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A Quick Look at Tekton

Aykut Bulgu
February 21, 2020

A Quick Look at Tekton

Aykut Bulgu

February 21, 2020
Tweet

More Decks by Aykut Bulgu

Other Decks in Technology

Transcript

  1. @systemcraftsman
    A Quick Look at Tekton
    Aykut M. Bulgu
    Technology Consultant | Software Architect
    @systemcraftsman

    View full-size slide

  2. @systemcraftsman
    #oc apply -f aykutbulgu.yaml
    apiVersion: redhat/v1.7
    kind: Middleware & AppDev Consultant
    metadata:
    name: Aykut Bulgu
    namespace: Red Hat Consulting - CEMEA
    Annotations:
    twitter: @systemcraftsman
    email: [email protected]
    organizer: Software Craftsmanship Turkey
    founder: System Craftsman
    labels:
    married: yes
    children: daughter
    interests: tech (kubernetes/openshift, spring boot, middleware, camel,
    kafka, strimzi, ci/cd), aikido
    spec:
    replicas: 1
    containers:
    - image: aykut:latest
    My Custom Resource

    View full-size slide

  3. @systemcraftsman
    What is this
    anyway?

    View full-size slide

  4. @systemcraftsman
    Tekton is an open source project that provides a framework to create
    cloud-native CI/CD pipelines quickly. As a Kubernetes-native framework,
    Tekton makes it easier to deploy across multiple cloud providers or hybrid
    environments. By leveraging the Custom Resource Definitions (CRDs) in
    Kubernetes, Tekton uses the Kubernetes control plane to run pipeline tasks.
    Tekton is one of the initial projects in Continuous Delivery Foundation (CDF)
    with 25+ members which serves as a governing body for fast-growing CI/CD
    projects to encourage and sustain vendor-neutral collaboration and
    participation.

    View full-size slide

  5. @systemcraftsman
    Kubernetes-style Pipelines
    Runs serverless
    Integrated CI/CD experience (on OpenShift)
    Use CRDs to define pipelines that run as containers and scale on-demand.
    Full control over team’s delivery pipelines, plugins and access control with no central CI/CD server to manage.
    A streamlined user experience through the OpenShift Console developer perspective, CLIs, and IDEs.

    View full-size slide

  6. @systemcraftsman
    An application used to create, configure and manage other complex applications
    Contains domain-specific domain knowledge
    Operator works based on input from Custom Resource Definitions (CRDs)
    User describes the desired state
    Controller applies this state to the application
    It watches the *desired* state and the *actual* state and makes forward progress to
    reconcile
    OperatorHub.io
    Observe
    Analyze
    Act
    The Operator Pattern

    View full-size slide

  7. @systemcraftsman
    Tekton Concepts

    View full-size slide

  8. @systemcraftsman
    Tekton Concepts
    ➔ Task
    ➔ Pipeline
    ➔ PipelineRun
    ➔ TaskRun
    ➔ PipelineResource

    View full-size slide

  9. @systemcraftsman
    Tasks
    A Task is a collection of sequential steps that run as part of a continuous integration
    flow. A Task runs in the pod on your cluster.
    A Task declares:
    ➔ Inputs
    ➔ Outputs
    ➔ Steps

    View full-size slide

  10. @systemcraftsman
    Pipeline Resources
    ➔ Git Resource
    ➔ Pull Request Resource
    ➔ Image Resource
    ➔ Cluster Resource
    ➔ Storage Resource
    ➔ Cloud Event Resource

    View full-size slide

  11. @systemcraftsman
    Installing Tekton

    View full-size slide

  12. @systemcraftsman
    Installing Tekton
    ➔ Using YAML sources
    ➔ Via Operatorhub in OpenShift OLM
    ➔ By creating a subscription YAML in
    OLM

    View full-size slide

  13. @systemcraftsman
    Tekton CLI

    View full-size slide

  14. @systemcraftsman
    Tekton CLI
    tkn [command or options] [arguments… ]
    Syntax
    Samples
    tkn pipeline start
    tkn pipeline list
    tkn pipeline ls
    tkn resource ls
    tkn taskrun logs

    View full-size slide

  15. @systemcraftsman
    Workshop
    http://bit.ly/tekton-workshop

    View full-size slide