Deploying WordPress on Kubernetes, Step-by-Step

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • See a step-by-step deployment of WordPress on kubernetes. You'll create separate mysql and wordpress pods, each with their own data volumes. This is a quick practical demonstration -- watch the videos after this to see a detailed breakdown of each concept and step.
    LINKS:
    Github repo for this course: github.com/gro...
    DigitalOcean Signup Link: m.do.co/c/0380... (I make some money if you sign up using this)
    My step-by-step project-based Linux course for beginners: www.udemy.com/...
    Free Linux Sysadmin Course Playlist: • The Linux Basics Cours...
    Patreon: / tutorialinux
    Official Site & e-mail list: tutorialinux.com/
    Twitter: / tutorialinux
    Facebook: / tutorialinux
    Podcast: kernelpanicpodc...

Комментарии • 52

  • @AtlayGaming
    @AtlayGaming 4 года назад +6

    As a playlist this seems to have died off, but I've found the content so far really useful over a year after it was posted. If anyone is having trouble with mysql login (as some comments suggest), there's a thing that's not clear in the video... the 'real password' in the comments in wp-mysql-secrets file is HIS real password, not YOUR real password. You need to take YOUR base64 encoded password (the one you pasted into the secrets file) and use the command 'echo -n YOURBASE64PASSWORD | base64 -d' to get YOUR plain text real password. This is in the git instructions, but is not really clearly explained, and not mentioned in the video at all. #peace

  • @Kurukx
    @Kurukx 5 лет назад

    Nice series :) I am enjoying it. It interesting to watch open source go back to closes source as in its all a cloud provider who does it all for you now behind the curtain.

  • @hugomichielsen1176
    @hugomichielsen1176 Месяц назад

    Just wanted to give an update that following the repo's directions (plus some minor debugging with the help of some comments) still works 5 years later

    • @tutoriaLinux
      @tutoriaLinux  Месяц назад +1

      Woah, that's actually amazing. I'll check to see if there are any open issues on the repo and do a bit of updating this week, if necessary. Thanks for that!

    • @hugomichielsen1176
      @hugomichielsen1176 17 дней назад

      @@tutoriaLinux Personally, the only issues I ran into was that I had to apply a different version of the DCCOM (v0.1.53). Figured out to apply this one just from looking at the latest releases of the DCCOM (makes sense that there would be newer versions than when the video was uploaded). The second thing wasn't really an issue but there was some confusion of what password to put into the secrets file, which some other comments on this video clear up.

  • @thebephele980
    @thebephele980 4 года назад +1

    Awesome Tutorial. So with this exact setup, will nodes be automatically added when the load increases and auto deleted when the load goes down?

  • @blocSonic
    @blocSonic 4 года назад +1

    Why didn't you use the mysql image env variable MYSQL_DATABASE to create the "wordpress" database?

  • @TomBelknapRoc
    @TomBelknapRoc 4 года назад

    Fantastic tutorial. Thanks so much for the help!

  • @Alig96
    @Alig96 5 лет назад +1

    Hi Dave, can you explain how Terraform
    and Kubernetes both fit together into a Dev ops cycle? Both these tools seems to do the same thing (provision servers) but in slightly different ways. Should I be using one or the other or even both?

  • @chasim1982
    @chasim1982 3 года назад

    Nice Video, but I am trying to understand for database, why not statefulset is setup? further there is no need to mount the frontend Wordpress you build your image every thing will in frontend wordpress image

  • @ezegarat5748
    @ezegarat5748 5 лет назад +2

    Mate, been watching for a long time, your content is great. I'm working as a classic Windows/Linux SysAdmin and i have as an objective to become an SRE. I've been following the DevOps RoadMap 2018 and i'm doing some courses to learn Web Dev. Any recommendations or projects i could make to get better? Thank you!

  • @zulhilmizainudin
    @zulhilmizainudin 4 года назад +1

    If I follow this tutorial exactly, how much does it cost (monthly) to run everything like yours?

    • @arlandmv4053
      @arlandmv4053 4 года назад

      1 check what instances will be running, think how much use per month you are expecting.. consider that everythin will probably scale up and down and give you the best availability for the least usage needed. thats why people use it.. to save money and secure your delivery of service.

  • @blocSonic
    @blocSonic 4 года назад

    Just a heads up that ReplicaSet's apiVersion is now "apps/v1". mysql-replicaset.yaml currently has "extensions/v1beta1".

  • @kensingtoncloud9069
    @kensingtoncloud9069 5 лет назад

    following all your step but it says es not have host assigned... did it change now?

  • @KhimanandaOli
    @KhimanandaOli 5 лет назад

    I wan to create the multiple pod and tried creating by increasing replica value but got this error Multi-Attach error for volume "pvc-0ea2e5ee-9109-11e9-8417-c24091b62dcc" Volume is already used by pod(s) mysql-kl564. Will you please help me ?

  • @valentin7773
    @valentin7773 4 года назад

    If i type : kubectl get pods - i see that the status is in pending state, further inspection using - kubectl describe pods (pods name) - i see that it tells me that there is insufficient memory...
    It means i have insufficient memory on my VM ?
    help would be appreciated !!

  • @rahimrani77
    @rahimrani77 5 лет назад

    DO Kubernetes can also install multi-site WordPress right?

  • @umniktechnology9717
    @umniktechnology9717 5 лет назад

    Thank you for the tuts! but Im getting this pod mysql-4cs85 does not have a host assigned when I did the bash mysql command..

  • @LovePlane
    @LovePlane 5 лет назад

    Thanks dave !

  • @Samos667
    @Samos667 4 года назад

    when i apply the three file mysql-* i have this message: "error: unable to recognize "manifests/mysql-replicaset.yaml": no matches for kind "ReplicaSet" in version "extensions/v1beta1"". I have test to set apiVersion in apps/v1, the pods is created but when i do kubectl describe pods mysql-xxxxx i have this message "pod has unbound immediate PersistentVolumeClaims (repeated 2 times)" . I use kubernetes v1.16.1 on 3 VM. Can you help me ?

    • @KrsnaRodriguez
      @KrsnaRodriguez 4 года назад

      Hi dude, you need to config persistent volume in your kube cluster. here a good guide to do that with NFS. "www.draconpern.com/2019/10/10/using-nfs-storage-for-dynamic-provisioning-on-kubernetes/"

  • @Mattias1995
    @Mattias1995 5 лет назад

    How would a staging environment work in this setup?

  • @muhammadmunir3737
    @muhammadmunir3737 5 лет назад

    hey can you try wordpress having mysql and persistent volumes in microk8s??

  • @exploretheworld17
    @exploretheworld17 4 года назад

    are these commands to be enter in my personal computer or in the server of digitalocean?

    • @tutoriaLinux
      @tutoriaLinux  4 года назад

      If you follow along you can see the parts that I'm running locally (in a local shell) and on DigitalOcean (in the browser).

  • @flakkanon
    @flakkanon 5 лет назад

    I'm not sure why but i get:
    `ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)`
    even after generating the passwords (base64 & plain), updating the secret file, applying it, and starting volume claim, replica set and service.
    When the terminal prompts for root's password, I paste the unencoded password that i put in a comment in wp-mysql-secrets.yml.

    • @michaelivliev4378
      @michaelivliev4378 5 лет назад

      Hi! I have also the same issue, have you solved it somehow?

    • @cmtopher
      @cmtopher 5 лет назад

      I get the same problem .. Anyone figure it out.?

  • @boot-strapper
    @boot-strapper 5 лет назад

    Everything so far has worked but when I do `kubectl exec -it mysql-l8578 -- bash` I get a time out. Is this token related?

    • @boot-strapper
      @boot-strapper 5 лет назад

      Specificallly: `Error from server: error dialing backend: dial tcp {{IP}}:10250: i/o timeout`

    • @boot-strapper
      @boot-strapper 5 лет назад

      and also, my machine is in DMZ and has no firewall running - I was thinking maybe it was a networking thing on my side. I have no idea how to proceed :'(

  • @lotengproject
    @lotengproject 3 года назад

    mysql databases is error connection

  • @abdulshaikh6807
    @abdulshaikh6807 5 лет назад

    Hey need some guidance,how make a career in devops docker and kubernetes how to start I m working as a Windows admin

  • @abdulshaikh6807
    @abdulshaikh6807 5 лет назад

    I have done devops training

    • @tutoriaLinux
      @tutoriaLinux  5 лет назад

      I'm not sure what that means. What skills have you learned? What practical projects have you worked on or created (using those skills)? What kind of devops roles or jobs have you applied to, and how did the interviews go? Did you get feedback from interviewers, and if so, where did they say you were weak?

  • @michaelivliev4378
    @michaelivliev4378 5 лет назад

    Hi, i have always the same Error when i am try to login to mysql "ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)"
    maybe somebody can help me with solution?

    • @cmtopher
      @cmtopher 5 лет назад

      I get the same here, anyone figure it out.

    • @emalov98
      @emalov98 5 лет назад

      Same :(

  • @rafaelpinto4957
    @rafaelpinto4957 4 года назад

    wow.....8k plus views.....141 likes.....c'mon

  • @jKomwa02
    @jKomwa02 5 лет назад

    Is he using Ubuntu?

    • @Clobercow1
      @Clobercow1 5 лет назад

      Probably yes. He uses it with i3.

    • @FabianBarajas
      @FabianBarajas 5 лет назад

      based on the name of the terminal window I think he is.

  • @emalov98
    @emalov98 5 лет назад

    mysql -u root -p -> Access denied for user 'root'@'localhost' (using password: YES)

    • @LtdJorge
      @LtdJorge 5 лет назад +1

      if you are logging in with root, just do "sudo mysql" and enter your password. Should always work. Unless you have root login disabled, turn it on in my.cnf file.

    • @LtdJorge
      @LtdJorge 4 года назад

      @Alisha Lopes you are already root. You can just type mysql

  • @saitmty
    @saitmty 4 года назад

    apps/v1 para k8s v1.16
    en replicaset.yaml

    • @manmeetsingh1712
      @manmeetsingh1712 4 года назад

      Thanks a lot.
      To expand in mysql-replicaset.yaml
      apiVersion: extensions/v1beta1
      should be
      apiVersion: apps/v1