How to use Vault Secrets Operator in Kubernetes

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

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

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

    I appreciate your clear and understandable explanations, until now I haven't seen anything like it.

  • @ButchHammer
    @ButchHammer 5 หลายเดือนก่อน +1

    Didn't watch till the end but it's definitely valuable content ! Subscribed for next topics !

  • @soufiane22v
    @soufiane22v 10 หลายเดือนก่อน +3

    Great video... it's like the External Secret Operator (ESO).
    in VSO we use the VaultAuth and VaultStaticSecrets CRDs instead of SecretStore and ExternalSecrets CRDs in ESO.
    The only limitation I know on the ESO is that it support only the KV secret Engine in Vault.

    • @soufiane22v
      @soufiane22v 10 หลายเดือนก่อน

      @@shabbirsaifee7497 yes please. good stuff , keep up the good work sir

    • @cookncode
      @cookncode  10 หลายเดือนก่อน +6

      Thats correct. If you already have vault, i'd use VSO since its a hashicorp solution. But before VSO, ESO was another generic approach.
      Let me know if you'd like to see a similar video for VaultDynamicSecrets with databases and other dynamic engines in vault.

    • @cookncode
      @cookncode  8 หลายเดือนก่อน +1

      Checkout the dynamic credentials for databases video as well on the channel!

    • @premierde
      @premierde 3 หลายเดือนก่อน

      very nice. Can you do OIDC vault auth

  • @alexanderfitterling
    @alexanderfitterling 15 วันที่ผ่านมา

    Is quite good actually. Thank you!

  • @notme-q9h
    @notme-q9h 2 หลายเดือนก่อน

    Great video, very informative..
    can you do a tutorial for kubernetes + vault hosted outside of kubernetes . or guide on the configuration

  • @XiaoboLiang
    @XiaoboLiang 2 หลายเดือนก่อน

    Greate video! Very clear. Would you suggest to use Vault Secrets Operator other than the Vault CSI Provider ?

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

    Great video! Hello from Brazil. Thanks

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

      @@renatosouza1k glad you found it useful!

  • @Kk-rl7nv
    @Kk-rl7nv 7 หลายเดือนก่อน

    Thanks for the video, if we have multiples micro services then we have to use single operator vso or should deploy seperate for all micro services separately?

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

      You only need to deploy 1 vso per cluster. It will manage secrets for any number of applications deployed to you cluster through the custom resources that you configure.

  • @testaccount-e5y
    @testaccount-e5y 6 หลายเดือนก่อน

    Awesome video! Can you help me understand something? If we have a deployment named
    dep1 with three replicas, will updating the credentials happen on all pods simultaneously or one by one when the deployment is updated as per your video sync 10.40, in my understanding as per your video suppose we are setting for 10s to refresh as you said but need to understand will this refreshment will be done in all pods together or 1:1?

    • @cookncode
      @cookncode  6 หลายเดือนก่อน

      Vso will update the kubernetes secrets resource and then it does a rollout restart on the deployment.
      The way rollout restart works (default) is it will bring up new 1 pod at a time, wait for it to be ready and then delete the old pod.
      So it will do it 3 times for 3 replicas

  • @shishirroy1516
    @shishirroy1516 3 หลายเดือนก่อน

    its a great video. how can i implement dynamic cred for postgres with given ttl

    • @cookncode
      @cookncode  3 หลายเดือนก่อน

      @@shishirroy1516 th-cam.com/video/tski0aNbXk4/w-d-xo.htmlsi=fhqRu2MY6GWjnPC3
      Its covered in the next video

    • @shishirroy1516
      @shishirroy1516 2 หลายเดือนก่อน

      @@cookncode thanks. I gone through it and successfully implemented. Now I am trying to use the credential to query the database. I have a micro service which interaction with postgres db.
      Another thing, is this setup hold good for enterprise vault ( saas )?

    • @cookncode
      @cookncode  2 หลายเดือนก่อน

      @@shishirroy1516 yeah it will work with vault enterprise too. Enterprise version has additional features like performance replication, auto snapshots etc but the common functionality works the same way

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

    Thank you for the video, but I have a question. In my case, I have a Kubernetes cluster. If I use Vault server in dev mode, the storage is in-memory, so when restarting the VM, the data created will be lost. Can I use Vault server and Vault Secrets Operator (VSO) in this scenario?

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

      Yes! Remember that dev mode is only when you are testing! In production you’ll setup vault in high availability mode! Yes you can use vso as well

  • @Kk-rl7nv
    @Kk-rl7nv 4 หลายเดือนก่อน

    Can you suggest here if we Hashicorp vault running in vm in cloud seperate from k8s then in this scenario can we use vso?

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

      @@Kk-rl7nv VSO is specifically for kubernetes workloads. You can have vault deployed anywhere but if you have applications deployed to kubernetes then you can use vso to deliver the secrets

  • @sudothai
    @sudothai 5 หลายเดือนก่อน

    How are you automating things like enabling kv2 and popping in secrets?

    • @cookncode
      @cookncode  5 หลายเดือนก่อน

      Not sure i follow! In the video i am enabling the kvv2 and adding secrets manually!
      Are you asking how you’d automate that process in a production setup?

    • @sudothai
      @sudothai 5 หลายเดือนก่อน

      @@cookncode Yeah, I was just wondering how you go about enabling kvv2 and secrets automatically. Im using a bash script currently. But theres probably better ways to do it :)

    • @cookncode
      @cookncode  5 หลายเดือนก่อน +1

      Gotcha! Yeah so for kvv2 which are static secrets there is always the secret 0 problem of how you populate the secrets.
      You’ll have to either manually add them in ui or from cli or can use scripts or awx playbooks etc.

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

      @@cookncode Came to that conclusion as well. Thx!

  • @savagesamurai9196
    @savagesamurai9196 3 หลายเดือนก่อน

    why are vso and the application and vault sts in different namespaces?
    vault in vault, vso in vault-secrets-operator-system, and the vaultAuth and the application deployment in the fakeapp namespace??
    Is there any special reason for this?

    • @cookncode
      @cookncode  2 หลายเดือนก่อน

      @@savagesamurai9196 its just for segregation!

    • @savagesamurai9196
      @savagesamurai9196 2 หลายเดือนก่อน

      @@cookncode K thanks.