Skip to Content
Hands-On Microservices with Kubernetes
book

Hands-On Microservices with Kubernetes

by Gigi Sayfan
July 2019
Intermediate to advanced
502 pages
14h
English
Packt Publishing
Content preview from Hands-On Microservices with Kubernetes

Verifying that the service now uses the green pods to serve requests

Let's do this methodically, starting with the selector in the service:

$ kubectl get svc link-manager -o jsonpath="{.spec.selector.deployment}" green

OK – the selector is green. Let's get the links again and see if the [green] prefix shows up:

$ http "${DELINKCIOUS_URL}/v1.0/links" "Access-Token: ${DELINKCIOUS_TOKEN}"'  HTTP/1.0 200 OK Content-Length: 221 Content-Type: application/json Date: Tue, 30 Apr 2019 06:19:43 GMT Server: Werkzeug/0.14.1 Python/3.7.2  {  "err": "",  "links": [  {  "CreatedAt": "2019-04-30T06:01:47Z",  "Description": "[green] nothing to see here...",  "Status": "invalid",  "Tags": null,  "Title": "gg",  "UpdatedAt": "2019-04-30T06:01:47Z",  "Url": ...
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 Microservices

Kubernetes Microservices

Richard Chesterwood
Cloud Native DevOps with Kubernetes

Cloud Native DevOps with Kubernetes

John Arundel, Justin Domingus
Microservices: Up and Running

Microservices: Up and Running

Ronnie Mitra, Irakli Nadareishvili

Publisher Resources

ISBN: 9781789805468Supplemental Content