How Do I Access Kubernetes API From Within a POD?

preview_player
Показать описание
In this short video, I'll answer the question of: How Do I Access Kubernetes API From Within a POD?

👀 Commands used during the video:
======================

[*] kubectl create role pod-reader --verb=get --verb=list --resource=pods

[*] kubectl create sa pod-reader-sa --namespace=default

[*] kubectl create rolebinding pod-reader-binding --role=pod-reader --serviceaccount=default:pod-reader-sa --namespace=default

[*] kubectl exec -it nginx -- sh

Hope you find it helpful, if the mood strike hit that like button.👍👍👍

=========
Subscribe
=========

🔥 Don't miss any future video! hit that subscribe button and click the bell 🔔 notification icon to be alerted of new videos I release.

====================
💡 You can follow me on :
====================
Комментарии
Автор

Your error was that you put double == in the token. The token was invalid as it started with =. The namespace was ok.

cabc
Автор

Why we need to give certificate here we have token right

brahmadarapaneni
Автор

why the hell the annoying music in background? I left watching after 40secs.

akyblr