What are Kubernetes Service Accounts?

  Рет қаралды 17,405

Peter Jausovec

Peter Jausovec

2 жыл бұрын

In this video, you'll learn all about Kubernetes service accounts.
#kubernetes #kubernetescourse
If you like the video, consider subscribing: / peterjausovec
▬▬▬▬▬▬ Connect with me ▬▬▬▬▬▬
➡️ Newsletter: learncloudnative.com/newsletter
➡️ Twitter: / pjausovec
➡️ LinkedIn: / pjausovec

Пікірлер: 32
@invalidred
@invalidred 11 ай бұрын
Very nice tutorial. Thank you soo much Peter!
@learncloudnative
@learncloudnative 10 ай бұрын
Glad you liked it!
@jmmtechnology4539
@jmmtechnology4539 Жыл бұрын
Very useful, thanks!
@learncloudnative
@learncloudnative Жыл бұрын
Thank you!
@tshaylatte9502
@tshaylatte9502 Жыл бұрын
thank you
@user-jh7rg5eo2p
@user-jh7rg5eo2p 7 ай бұрын
Hi Peter, thank you so much for your video. For the last missing part, I create a new service account and assign it to the pod, but still get 403 error. How can I give the new service account more permissions? Thanks.
@learncloudnative
@learncloudnative 6 ай бұрын
Check out this section that talks about how to update the permissions: kubernetes.io/docs/reference/access-authn-authz/rbac/#service-account-permissions
@theresevanyambah2466
@theresevanyambah2466 Жыл бұрын
WoW great tutorial !!!
@learncloudnative
@learncloudnative Жыл бұрын
thank you!
@ximengzhao2168
@ximengzhao2168 7 ай бұрын
Hi Peter, I created a namespace on K8s cluster (k8s cluster version is 1.25.x) and I didn't see the secret associated with the service account (default) when I run k get sa -n . I searched some docs online, it said after k8s version 1.24.x, the secret is no longer associated with the service account. Does it correct? Thanks
@learncloudnative
@learncloudnative 7 ай бұрын
Yes, you're correct. The k8s version in the video is older where the secrets were still associated with the SA. In the newer versions the serviceAccountToken projected volume is used that injects the token for the service account into the pod (e.g. /var/run/secrets/kubernetes.io/serviceaccount/token).
@flarierza33
@flarierza33 Жыл бұрын
absolute random question, what mouse and keyboard do you use? I like how it sounds.
@learncloudnative
@learncloudnative Жыл бұрын
It’s just mac laptop keyboard and trackpad :)
@emmanuelegbuniwe2023
@emmanuelegbuniwe2023 Жыл бұрын
Hey, thanks a lot for the video. I have a question. I created a service account but I cannot see the secret token associated to them. Please what might be wrong ?
@liveasawestruck2450
@liveasawestruck2450 Жыл бұрын
Same
@learncloudnative
@learncloudnative Жыл бұрын
Hi! It's probably due to a change in Kubernetes 1.22, where the secrets aren't created automatically anymore. You can use kubectl create token to create a token for a service account. Check more details here: kubernetes.io/docs/concepts/configuration/secret/#service-account-token-secrets
@UnknownSend3r
@UnknownSend3r Жыл бұрын
what kind of cliff hanger was that ? had me at the edge of my seat!
@bobfunk5055
@bobfunk5055 Жыл бұрын
Delete this pod…..
@TheJaycutler11
@TheJaycutler11 Жыл бұрын
Hi Peter, how u will give service account permission to SQS to poll the queue message. Thanks in advance.
@learncloudnative
@learncloudnative Жыл бұрын
This might help: docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html
@MegaJmanjman
@MegaJmanjman 5 ай бұрын
why i the api token mounted into the pod. Which process inside the pod would need access to it?
@learncloudnative
@learncloudnative 5 ай бұрын
You container might want to use the token to interact with the k8s API server
@taqitahmid50
@taqitahmid50 2 ай бұрын
Where is the rest of the video?
@mohamed.dorgham
@mohamed.dorgham 9 ай бұрын
love it
@learncloudnative
@learncloudnative 9 ай бұрын
Thank you!
@Hosavn
@Hosavn 10 ай бұрын
Hi, I did it, but I got an error with DNS like this curl: (6) Could not resolve host: kubernetes.default . Can you help me fix it?
@learncloudnative
@learncloudnative 10 ай бұрын
Are you running curl from within the cluster? Is kubernetes.default service there?
@AmanDeep-rv1sd
@AmanDeep-rv1sd 9 ай бұрын
Broo.. where is the 2nd part of the video.. Thats what i really wanted to watch :/
@learncloudnative
@learncloudnative 9 ай бұрын
there's a part missing at the end where I was to create a new service account (kubectl create sa my-sa) and then when creating the pod, explicitly assign that service account to the pod (instead of using the default SA). Or was there anything else you were expecting?
@ZillaYT
@ZillaYT Жыл бұрын
Dude, you need to use smaller fonts
@fkangalov
@fkangalov 11 ай бұрын
what's with the video ending in the middle of a thing
@learncloudnative
@learncloudnative 11 ай бұрын
haha :) you're completely right -- there's a part missing at the end where I was to create a new service account (kubectl create sa my-sa) and then when creating the pod, explicitly assign that service account to the pod (instead of using the default SA).
What is role-based access control (RBAC) in Kubernetes?
10:01
Peter Jausovec
Рет қаралды 3,8 М.
Getting started with Kubernetes service accounts
21:54
Geert Baeke
Рет қаралды 24 М.
Русалка
01:00
История одного вокалиста
Рет қаралды 7 МЛН
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 12 МЛН
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 251 М.
What are Service Accounts?
5:29
Google Cloud Tech
Рет қаралды 87 М.
Kubernetes Service Account in detail | Service Account tutorial
35:33
Most Common Kubernetes Deployment Strategies (Examples & Code)
20:06
How to run MongoDB with StatefulSet in Kubernetes?
9:33
Peter Jausovec
Рет қаралды 16 М.
RBAC in Kubernetes
20:27
Pavan Elthepu
Рет қаралды 30 М.
Kubernetes Explained - What is Kubernetes and How it works?
28:26
Kubernetes Deployment vs. StatefulSet vs. DaemonSet
6:43
Anton Putra
Рет қаралды 35 М.
Klavye İle Trafik Işığını Yönetmek #shorts
0:18
Osman Kabadayı
Рет қаралды 5 МЛН
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Игорь Линк
Рет қаралды 127 М.
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 14 МЛН
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Кинг Комп Shorts
Рет қаралды 1,9 МЛН
S24 Ultra and IPhone 14 Pro Max telephoto shooting comparison #shorts
0:15
Photographer Army
Рет қаралды 8 МЛН
Зачем ЭТО электрику? #секрет #прибор #энерголикбез
0:56
Александр Мальков
Рет қаралды 624 М.