Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 1.3 KB

File metadata and controls

13 lines (9 loc) · 1.3 KB

KubeCon Europe Day 2 - Accessing Kubernetes platform data from within a pod

Introduction

I use this Pac-Man application quite a lot in my Kubernetes testing and demos. One of components is the UI should show some basic information about where the pod is that your connected to for the UI. However this wasn't working on my deployments on Tanzu Kubernetes Grid. I managed to find the fault eventually. The pods were unable to query the Kubernetes API due to the wrong RBAC. I fixed this in my application with this commit.

Research

Kubernetes in Action - Book - Ch 6 - Accessing pod metadata and other resources from applications Kubernetes error - cannot get resource "nodes" in API group "" at the cluster scope Kubernetes Documentation - Accessing Clusters

Try yourself

Run a basic pod on your infrastructure, exec into that pod, and then try to connect to your Kubernetes cluster API to output some information. The above links should help you.