Example pipeline

One of the benefits to this install is that jobs you create can run pipelines that completely build and run within the Kubernetes cluster. Pipelines can be defined as something you build using the tooling within Jenkins, you can enter them directly, or you can load them from source control.

The example code for the Python/Flask application has a basic Jenkinsfile to show you how this can work. The Jenkinsfile was added to the 0.7.0 branch, and you can view it online at https://github.com/kubernetes-for-developers/kfd-flask/blob/0.7.0/Jenkinsfile.

The pipeline is set up to be used from source control, build a Docker image, and interact with Kubernetes. The example does not push the image to a repository or deploy the image, ...

Get Kubernetes for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.