Skip to content

unresolvable/k8s-wordpress

Repository files navigation

alt text

Install Helm

https://www.digitalocean.com/community/tutorials/how-to-install-software-on-kubernetes-clusters-with-the-helm-package-manager - 2.X

https://helm.sh/docs/intro/install/ - 3.X

Migrate from Helm v2 to Helm v3 (if necessary)

https://helm.sh/blog/migrate-from-helm-v2-to-helm-v3

Add stable repo for v3:

helm repo add stable https://kubernetes-charts.storage.googleapis.com/

Install NFS Server via Helm

https://docs.bitnami.com/tutorials/deploy-applications-nfs-kubernetes/

v2 helm install --name my-nfs-server stable/nfs-server-provisioner --set persistence.enabled=true,persistence.size=20Gi

v3 helm install my-nfs-server stable/nfs-server-provisioner --set persistence.enabled=true,persistence.size=20Gi

How To Set Up an Nginx Ingress on DigitalOcean Kubernetes Using Helm (Optional)

https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-on-digitalocean-kubernetes-using-helm#step-1-%E2%80%94-setting-up-hello-world-deployments

How to Set Up an Nginx Ingress with Cert-Manager on DigitalOcean Kubernetes

https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes#step-1-%E2%80%94-setting-up-dummy-backend-services

Create these mandatory resources:

https://kubernetes.github.io/ingress-nginx/deploy/#prerequisite-generic-deployment-command

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.30.0/deploy/static/mandatory.yaml

Create the LoadBalancer Service:

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.30.0/deploy/static/provider/cloud-generic.yaml

Create the cert-manager Custom Resource Definitions (CRDs). Create these by applying them directly from the cert-manager GitHub repository :

kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v0.14.0/cert-manager.crds.yaml

Next, we’ll add a label to the kube-system namespace, where we’ll install cert-manager, to enable advanced resource validation using a webhook:

kubectl label namespace kube-system certmanager.k8s.io/disable-validation="true"

Now, we’ll add the Jetstack Helm repository to Helm. This repository contains the cert-manager Helm chart.

helm repo add jetstack https://charts.jetstack.io

Finally, we can install the chart into the kube-system namespace:

v2 helm install --name cert-manager --namespace kube-system jetstack/cert-manager --version v0.13.0

v3 helm install cert-manager --namespace kube-system jetstack/cert-manager --version v0.13.0

CHECK FOR UPGRADES

https://cert-manager.io/docs/installation/upgrading/

kubectl delete -n kube-system deployment cert-manager cert-manager-cainjector cert-manager-webhook

helm upgrade cert-manager --namespace kube-system jetstack/cert-manager --version v0.14.0

Create Prod Certificate Issuer

kubectl apply -f prod_issuer.yaml

Install Wordpress

kubectl create secret generic mysql --from-literal=password=SOME-SECRET-PASSWORD

kubectl apply -f ./k8s-wordpress/

Install Linkerd

https://linkerd.io/2/getting-started/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published