This deployment example is for deploying OpenWISP on Google Kubernetes Engine.
- Make sure you meet all requirements from GCP module
- Make sure you meet all requirements from Kubernetes module
- You will need "Compute Engine API - Backend services" to be atleast 7 for this deployment.
- Configure the options in the module. (
examples/google-cloud/module.tf
might be helpful) - Apply the configurations:
terraform apply
- Remember to set the NS records in your domain registrar before
cert-manager
starthttp01
verification of the domain. - Destroy resources only required for management (Creation / Updation)
terraform destroy \
--target=module.infrastructure.google_compute_router.openwisp_cluster_router \
--target=module.infrastructure.google_compute_router_nat.openwisp_connection_nat
- Destroy the resources using terraform
terraform destroy
- Remove Finalizers
GKE adds finalizers in persistent volumes claims to protect data from being accidentally deleted, remove these finalizers from the the volume claims when terraform is trying to destroy the claims:
$ kubectl get pvc --no-headers -o custom-columns=":metadata.name" |
xargs kubectl patch pvc --patch '{"metadata":{"finalizers": null }}'