How To Install WordPress App On An Existing Kubernetes (K8s) Cluster On DigitalOcean & Add A Domain
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