How To Install WordPress App On An Existing Kubernetes (K8s) Cluster On DigitalOcean & Add A Domain

Channel:
Subscribers:
30,400
Published on ● Video Link: https://www.youtube.com/watch?v=M0XpyJ78h1U



Duration: 0:00
89 views
3


In this video, you will learn how to install the WordPress application (app) on an existing Kubernetes (K8s) cluster. WordPress is an open source content management system (CMS), allowing users to create a website, blog, or an online shop. To achieve this, Helm and kubectl will be used. Helm is a package manager for k8s and kubectl is a command-line tool for interacting with k8s cluster. From the command line interface (CLI), the WordPress external IP (WordPress URL) and admin credentials will be extracted. The WordPress app is running on a DigitalOcean load balancer which ensures traffic is distributed across your K8s cluster and the external IP is the load balancers public IP address. Finally, I will show you how to purchase (if necessary), add a Namecheap domain name to your WordPress site and point or direct the domain name to your load balancers external IP address. This is done by using DigitalOcean's custom name servers and adding a wildcard A record to DigitalOceans DNS records.

How To Create A Kubernetes (K8s) CPU or GPU Cluster On DigitalOcean    • How To Create A Kubernetes (K8s) CPU or GP...  

🔵 Free $200 DigitalOcean cloud credits using my referral link: https://digitalocean.pxf.io/c/1245219/1377287/15890

How To Get $200 In Free DigitalOcean Cloud Credits    • How To Get $200 In Free DigitalOcean Cloud...  

🟠Buy your first .COM with Namecheap hhttps://namecheap.pxf.io/c/1245219/408750/5618
How To Buy A Domain Name    • How To Buy A Domain Name  

DigitalOcean Marketplace hhttps://marketplace.digitalocean.com/Kubernetes 1-Click Install Apps hhttps://marketplace.digitalocean.com/category/kubernetesWordPress Kubernetes hhttps://marketplace.digitalocean.com/apps/wordpress-kubernetes
Steps To Install WordPress K8s On A K8s Cluster And Add A Domain Name:
1. Setup a DigitalOcean K8s cluster (DOKS) to act as the existing k8s cluster. If you haven't made a DOKS cluster yet, you can do so by following this step by step video of mine    • How To Create A Kubernetes (K8s) CPU or GP...  
2. Once you have created your K8s cluster, navigate to hhttps://marketplace.digitalocean.com/apps/wordpress-kubernetesin your browser and click on Install App, to install WordPress Kubernetes
3. Select your desired existing cluster from the dropdown list, and click Install
4. Once installed, you will have the latest version of WordPress k8s by DigitalOcean
5. Run the commands below in order

Commands:

snap install helm
snap install helm --classic

Confirm that helm and WordPress have been successfully installed using the following helm command:

helm ls -n wordpress

snap install kubectl
snap install kubectl --classic

Check the external IP address of the WordPress Load Balancer:

kubectl get svc -n wordpress

Extract the WordPress admin credentials:

kubectl get secret --namespace wordpress wordpress-kubernetes -o jsonpath="{.data.wordpress-password}" | base64 --decode

6. Replace $WORDPRESS_IP with the extracted WordPress load balancers IP in http://$WORDPRESS_IP/admin and navigate to that URL address by pasting it into a browser

E.g.
If extracted IP = 157.230.201.206
Then WordPress Admin login page = http://157.230.201.206/admin

7. Login to your WordPress site using the extracted admin credentials
8. If you don't already have a domain name you can purchase one using the following URL hhttps://namecheap.pxf.io/c/1245219/408750/5618or by watching this step by step video of mine hhttps://namecheap.pxf.io/c/1245219/408750/56189. In the nameservers section of your Namecheap domain, change Namecheap BasicDNS to Custom DNS and paste in the following DigitalOcean nameservers.

DigitalOcean Nameservers:
ns1.digitalocean.com
ns2.digitalocean.com
ns3.digitalocean.com

10. Go back to your DigitalOcean dashboard, click the green Create button
12. Click Domains/DNS
13. Click Domains
14. Enter your Namecheap domain name and click Add Domain
15. Click A record, in the hostname section enter @
16. In the "Will Direct To" section, select the load balance resource that matches the external IP address of the WordPress load balancer
17. Click Create Record
18. Under DNS records, copy the hostname of the A type record and paste it into a new browser tab
19. Click Continue to site if you're using Google Chrome browser as the link is http
20. Login by adding /admin to your domain URL address and the same credentials in step 7.

Congratulations, you have successfully installed the WordPress app on an existing DigitalOcean K8s cluster, added a Namecheap domain name & pointed the WordPress K8 load balancer's IP address to a Domain.

Timestamps:
0:00 - Intro & Context
0:47 - Install WordPress On An Existing K8s Cluster
9:31 - Point A Domain To A WordPress K8s Load Balancer's IP Address
16:31 - Closing & Outro

DigitalOcean Kubernetes (DOKS), K8s Cluster, doctl & kubectl (Playlist)    • DigitalOcean Kubernetes (DOKS), K8s Cluste...  

More DigitalOcean Server Guides (Playlist)    • DigitalOcean Cloud Computing Guides  

#WordPress #Kubernetes #K8s




Other Videos By Websplaining


2025-06-27How To Get, Install, And Use Amnezia Premium VPN
2025-06-24How To Get And Use Amnezia Free VPN - Connect In 2 Clicks Or Obtain A Key In Amnezia Telegram Bot
2025-06-20How To Create A XRay REALITY Proxy Using Amnezia Self-hosted VPN And An Ubuntu Cloud Server or VPS
2025-06-18How To Install WooCommerce Via WordPress Admin & WooCommerce Plugin Setup Wizard On Cloud Server/VPS
2025-06-18How To Install A WordPress Website On DigitalOcean, Add A Domain Name, And A SSL Certificate (HTTPS)
2025-06-12How To Turn On Or Off Clipboard History & Use It To Save, View & Paste Multiple Items In Windows 11
2025-06-11How To Make A Task Manager Desktop Shortcut And Pin To Taskbar On Windows 11
2025-06-11How To Hide Or Show Time And Date In The System Tray On Windows 11
2025-06-11How To Stop Using Vibration And Haptics On Android - Turn Off Keyboard Haptics, And All Vibration
2025-06-11How To Destroy Kubernetes (K8s) Cluster, Worker Nodes And All Associated Resources On DigitalOcean
2025-06-10How To Install WordPress App On An Existing Kubernetes (K8s) Cluster On DigitalOcean & Add A Domain
2025-06-03How To Create A Kubernetes (K8s) CPU or GPU Cluster On DigitalOcean
2025-02-14How To Build An AI Agent Or AI ChatBot Using GenAI Platform On DigitalOcean & Add It To Your Website
2025-02-08How To Setup Open WebUI And Run Any AI LLM ChatBot On A DigitalOcean GPU Cloud Server
2025-02-05How To Generate A SSH Public And Private Key Pair Using PuTTYgen To Connect To Your VPS
2025-02-04How To Setup DeepSeek-R1 LLM AI ChatBot Using Ollama On An Ubuntu Linux GPU Cloud Server (VPS)
2024-11-19How To Setup Ollama LLM AI Chatbot With Open WebUI, An Open-source AI User Interface On Ubuntu VPS
2024-11-15How To Set Your Domain Name As Your Bluesky Handle
2024-11-13How To Make An OpenVPN Access Server With Web-Based User Interface (UI) On DigitalOcean
2024-11-07How To Create PiVPN Server Using A Self-hosted Ubuntu Linux VPS And WireGuard Client
2024-11-04How To Make A WireGuard Easy (wg-easy) VPN Server With Web-Based Admin UI On An Ubuntu Linux VPS