What are Kubernetes Service Accounts?

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • 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: learncloudnati...
    ➡️ Twitter: / pjausovec
    ➡️ LinkedIn: / pjausovec

ความคิดเห็น • 29

  • @invalidred
    @invalidred ปีที่แล้ว +3

    Very nice tutorial. Thank you soo much Peter!

  • @UnknownSend3r
    @UnknownSend3r ปีที่แล้ว +2

    what kind of cliff hanger was that ? had me at the edge of my seat!

    • @bobfunk5055
      @bobfunk5055 ปีที่แล้ว

      Delete this pod…..

  • @jmmtechnology4539
    @jmmtechnology4539 ปีที่แล้ว +2

    Very useful, thanks!

  • @theresevanyambah2466
    @theresevanyambah2466 ปีที่แล้ว

    WoW great tutorial !!!

  • @mohamed.dorgham
    @mohamed.dorgham 10 หลายเดือนก่อน

    love it

  • @user-jh7rg5eo2p
    @user-jh7rg5eo2p 8 หลายเดือนก่อน

    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  8 หลายเดือนก่อน

      Check out this section that talks about how to update the permissions: kubernetes.io/docs/reference/access-authn-authz/rbac/#service-account-permissions

  • @TheJaycutler11
    @TheJaycutler11 ปีที่แล้ว +1

    Hi Peter, how u will give service account permission to SQS to poll the queue message. Thanks in advance.

    • @learncloudnative
      @learncloudnative  ปีที่แล้ว +1

      This might help: docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html

  • @ximengzhao2168
    @ximengzhao2168 8 หลายเดือนก่อน

    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  8 หลายเดือนก่อน

      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).

  • @MegaJmanjman
    @MegaJmanjman 7 หลายเดือนก่อน

    why i the api token mounted into the pod. Which process inside the pod would need access to it?

    • @learncloudnative
      @learncloudnative  7 หลายเดือนก่อน

      You container might want to use the token to interact with the k8s API server

  • @flarierza33
    @flarierza33 ปีที่แล้ว

    absolute random question, what mouse and keyboard do you use? I like how it sounds.

    • @learncloudnative
      @learncloudnative  ปีที่แล้ว +1

      It’s just mac laptop keyboard and trackpad :)

  • @tshaylatte9502
    @tshaylatte9502 ปีที่แล้ว

    thank you

  • @taqitahmid50
    @taqitahmid50 4 หลายเดือนก่อน

    Where is the rest of the video?

  • @Hosavn
    @Hosavn ปีที่แล้ว

    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  ปีที่แล้ว +1

      Are you running curl from within the cluster? Is kubernetes.default service there?

  • @AmanDeep-rv1sd
    @AmanDeep-rv1sd 11 หลายเดือนก่อน

    Broo.. where is the 2nd part of the video.. Thats what i really wanted to watch :/

    • @learncloudnative
      @learncloudnative  11 หลายเดือนก่อน +1

      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 ปีที่แล้ว +1

    Dude, you need to use smaller fonts

  • @fkangalov
    @fkangalov ปีที่แล้ว

    what's with the video ending in the middle of a thing

    • @learncloudnative
      @learncloudnative  ปีที่แล้ว +2

      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).