Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Kubernetes Design Patterns and Extensions

You're reading from   Kubernetes Design Patterns and Extensions Enhance your container-cluster management skills and efficiently develop and deploy applications

Arrow left icon
Product type Paperback
Published in Sep 2018
Publisher Packt
ISBN-13 9781789619270
Length 106 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Onur Yılmaz Onur Yılmaz
Author Profile Icon Onur Yılmaz
Onur Yılmaz
Arrow right icon
View More author details
Toc

Chapter 2: Kubernetes Client Libraries

Following are the activity solutions for this chapter.

Activity: Using the Kubernetes Go Client inside the Cluster

  1. Create a deployment with the Docker image of the example client from the previous exercise:
kubectl run go-client --image=onuryilmaz/k8s-clientexample:go
  1. Wait until the pod is running by using the following command:
kubectl get pods -w
  1. Get the logs of the deployment pod with the following command:
kubectl logs $(kubectl get pods --selector run=go-client -o jsonpath="{.items[0].metadata.name}")
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image