How to run a basic PostGreSQL in Kubernetes!

Поділитися
Вставка
  • Опубліковано 25 вер 2024
  • Subscribe to show your support! goo.gl/1Ty1Q2 .
    Patreon 👉🏽 / marceldempers
    Checkout the source code below 👇🏽 and follow along 🤓
    Also if you want to support the channel further, become a member 😎
    marceldempers....
    Checkout "That DevOps Community" too
    marceldempers....
    Source Code 🧐
    --------------------------------------------------------------
    github.com/mar...
    If you are new to Kubernetes, check out my getting started playlist on Kubernetes below :)
    Kubernetes Guide for Beginners:
    ---------------------------------------------------
    • Kubernetes development...
    Kubernetes Monitoring Guide:
    -----------------------------------------------
    • Kubernetes Monitoring ...
    Kubernetes Secret Management Guide:
    --------------------------------------------------------------
    • Kubernetes Secret Mana...
    Like and Subscribe for more :)
    Follow me on socials!
    marceldempers.dev
    Twitter | / marceldempers
    GitHub | github.com/mar...
    Facebook | thatdevop...
    LinkedIn | / marceldempers
    Instagram | / thatdevopsguy
    Music:
    Track: Reckoner - lofi hip hop chill beats for study~game~sleep | is licensed under a Creative Commons Attribution licence (creativecommon...)
    Listen: / reckoner-lofi-hip-hop-...
    Track: souKo - souKo - Parallel | is licensed under a Creative Commons Attribution licence (creativecommon...)
    Listen: / parallel

КОМЕНТАРІ • 41

  • @MarcelDempers
    @MarcelDempers  11 місяців тому +5

    The PostgreSQL Series -> ua-cam.com/play/PLHq1uqvAteVsnMSMVp-Tcb0MSBVKQ7GLg.html

  • @haraldhacker
    @haraldhacker 10 місяців тому +13

    Please continue this. Also focus for production grade setups

  • @la151212511111
    @la151212511111 11 місяців тому +5

    Hey Marcel, Thanks :) just thanks. I didn't go that route, but your series on k8s has been instrumental in my career direction ! now wih kuber abilities !! TY sir !

  • @intsanerarity9689
    @intsanerarity9689 6 місяців тому +3

    you are a legend, will there be the last part of this video series?

  • @Fullflexno
    @Fullflexno 6 місяців тому +1

    Hey, big guy, Marcel! Thanks for providing so much quality content, pleas hurry up and give us more 🥺❤

  • @ValleJulien
    @ValleJulien 5 місяців тому +1

    Thank you for this interesting and insightful series of videos on setting up a PostgreSQL cluster.
    When can we expect the next video? I need the following !
    I'm currently in the process of deploying my own PostgreSQL cluster on AKS. It would be great and helpful to have and see a demonstration of how to configure replication on Kubernetes and automate the primary promotion to the replica in case of failover (along with guidance on configuring for production environments).
    Excellent work :)
    I'm looking forward to the next video, which I hope will arrive very soon.

  • @andreasmewald2439
    @andreasmewald2439 2 місяці тому +1

    Bro where is the next video. You content is gold! I'd love if you add the next video about how to setup the replica. Thx!

  • @dillonhansen71
    @dillonhansen71 10 місяців тому

    I love that you keep saying "You will lose data". People need to hear that.

  • @azrafal
    @azrafal 11 місяців тому +1

    Sir please make some videos on Cassandra. Learned a lot from your videos. Thank you very much.

  • @tiagomedeiros7935
    @tiagomedeiros7935 10 місяців тому

    Thank you. I would like to suggest a future video about karpenter

  • @grupotradingcrypto861
    @grupotradingcrypto861 4 дні тому

    Did you ever do a tutorial on replication and failing over?

  • @mroshan74
    @mroshan74 11 місяців тому

    Hi Marcel, good to see you back. Always loved your delivery ❤

  • @tayyab_fayyaz
    @tayyab_fayyaz 6 місяців тому

    Great explanation sir, it would be helpful if your similar tutorial PG bouncer with a same of different namespace.

  • @sixwins-devops
    @sixwins-devops 10 місяців тому

    You just gotta love the swords.

  • @captain-daybyday
    @captain-daybyday 2 місяці тому

    Nice one @MarcelDempers , Did you post second part to cover replication ?

  • @Mr.Bellamy
    @Mr.Bellamy 3 місяці тому

    Bro, your channel is brilliant

  • @IIGrudge
    @IIGrudge 11 місяців тому +4

    You most likely won't be doing this in the real world as handling stateful workload robustly is quite a challenge on K8s. Better to use an operator like Zalando to handle things like HA, backups, upgrades.

    • @MarcelDempers
      @MarcelDempers  11 місяців тому +7

      It's all a double edged sword but the fundamental knowledge is crucial :
      1) Most teams don't know enough about PostgreSQL (including myself)
      2) Many also don't understand the nature of statefulsets in immutable hosted Kubernetes where nodes can be recreated by cloud providers. (nodes can come and go)
      3) Operators often trap new folks since the abstraction is too deep for folks to unfold and since they dont understand PostgreSQL replication. If the operator fails, the engineers are scratching their heads.
      Therefore it's crucial to understand the boundaries and the underlying configs and how they work before commiting to something like an Operator that automates it all.
      Operators are something we can cover in later parts of the series when a foundation of knowledge is met
      With all this information I would often resort to recommending a PostgreSQL-as-a-Service with your cloud provider instead. It's fairly cheap and takes the engineering burden away from the teams.
      Hope that helps folks who are evaluating databases on K8s

  • @splashinventor
    @splashinventor 6 місяців тому

    Hello Marcel,
    I am one of the subscribers to your channel. Your videos are quite informative and very helpful in understanding the technology. -:)
    I have couple of doubts related to tools that are used. Could you please help clarify these doubts please?
    In REAL WORLD projects, tools such as Jenkins, ELK stack, Databases, RabbitMQ/ActiveMQ, Kafka etc. are generally provisioned on EC2s (or) Vendor provided/managed cloud environments (SaaS) (or) Cloud Provider(AWS/Azure etc.) specific provided/managed environments but not on Kubernetes/EKS?
    And,
    Only microservices are deployed on K8s clusters and they connect to these tools via K8s environment configurations?
    It is very confusing and struggling to understand as most of the tutorials/examples in Internet are showcasing above mentioned tools to provision on K8s along with microservices.
    Kindly help clarifying the doubt!
    Thank you.. :-)

  • @RockyScenes
    @RockyScenes 5 місяців тому

    Thank you for this. If you have a replica of a pod, and the main one dies, then the replica dies, are you out of luck and the data is lost? Or are replicas constantly created?

  • @MrGenbu
    @MrGenbu 11 місяців тому +1

    can you please make one for mongodb replicaset its very frustrating

  • @lior3300
    @lior3300 7 місяців тому +1

    love your videos, you are a true professional and a grate tutor.
    waiting for your next video on the topic.

    • @Fullflexno
      @Fullflexno 6 місяців тому

      100% Agreed. Super videos! Waiging for more!

  • @pigrebanto
    @pigrebanto 11 місяців тому

    thanks and well done! Is the next video yet to come?

  • @Babbili
    @Babbili 6 місяців тому

    if i have 3 replicas StatfulSet, is the data automatically replicated into the 3 pods' volumes if i created the data through a client pod connecting to the headless postgres svc

  • @rachanadesai5996
    @rachanadesai5996 9 місяців тому

    Hi Marcel! why do i get this error "CreateContainerConfigError" instead of "Running" status when I run "kubectl -n postgresql get pods" command

  • @MrGenbu
    @MrGenbu 7 місяців тому

    When is the next videos coming out ?

  • @JuanNicolas
    @JuanNicolas 8 місяців тому

    hey Marcel, thanks for these videos, they helped me a lot. Is there any update on the replication 2nd part of this? I Tried to figure out how to create the secondary pods as replication server but, I'm still stuck on the configmap and if I need to use a second statefulset yaml file for that to provide new configmap configurations.

  • @idouxda
    @idouxda 11 місяців тому

    Do you have a Flyway Series?

  • @Fayaz-Rehman
    @Fayaz-Rehman 5 годин тому

    Thank you so much for sharing.

  • @tmortada
    @tmortada 5 місяців тому

    Thanks Marcel, great content!

  • @zhbitjean
    @zhbitjean 7 місяців тому

    how to install kind?

  • @bainscho3267
    @bainscho3267 6 місяців тому

    These videos are incredible

  • @zhbitjean
    @zhbitjean 7 місяців тому

    I feel like all these commands are running on my local machine, how do I push it to google Kubernetes? Anyone has similar issue?

    • @lior3300
      @lior3300 7 місяців тому

      when you want to run kubectl commands on your GCP cluster you have to "bind" to it using your cloud shell.
      go to the cluster page and click on the 3 dots of the cluster you want to run these commands on, then you will see a window that gives you the gcloud command to access the cluster.
      you can run it in the shell or on your machine.

  • @FireWyvern870
    @FireWyvern870 Місяць тому

    Well, you *can* do it, but should you?

  • @niranjann6937
    @niranjann6937 6 днів тому

    awesome ✌

  • @suhasadduri1691
    @suhasadduri1691 11 місяців тому

    you are a gem 💎

  • @zackinblack9
    @zackinblack9 Місяць тому

    Dude your arms are huge

  • @KhodeCamp
    @KhodeCamp 11 місяців тому

    Thank you so much and can't wait for next video!