Skip to Content
Kubernetes Cookbook - Second Edition
book

Kubernetes Cookbook - Second Edition

by Hideto Saito, Hui-Chuan Chloe Lee, Ke-Jou Carol Hsu
May 2018
Intermediate to advanced
554 pages
13h 51m
English
Packt Publishing
Content preview from Kubernetes Cookbook - Second Edition

How it works...

Now we start to configure Jenkins to build your application. However, to access the WebUI of your custom Jenkins, you need to access the Kubernetes service that binds to your Jenkins pod. It is easier to use kubectl port-forward to access remotely to configure Jenkins:

//check pod name$ kubectl get podsNAME                         READY     STATUS    RESTARTS   AGEmy-jenkins-cbdd6446d-ttxj5   1/1       Running   0          1m//port forward from your machine :58080 to Jenkins :8080$ kubectl port-forward my-jenkins-cbdd6446d-ttxj5 58080:8080Forwarding from 127.0.0.1:58080 -> 8080

The initial configuration of Jenkins is done via the following steps:

  1. Access the http://127.0.0.1:58080 Jenkins WebUI; it asks you to input initialAdminPassword.
  2. Use kubectl exec to acquire the initialAdminPassword ...
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.
Start your free trial

You might also like

Kubernetes Cookbook

Kubernetes Cookbook

Sébastien Goasguen, Michael Hausenblas
DevOps with Kubernetes - Second Edition

DevOps with Kubernetes - Second Edition

Hideto Saito, Hui-Chuan Chloe Lee, Cheng-Yang Wu

Publisher Resources

ISBN: 9781788837606Supplemental Content