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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access