Skip to content

Latest commit

 

History

History

google-cloud

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Google kubernetes Engine

This deployment example is for deploying OpenWISP on Google Kubernetes Engine.

Requirements

  1. Make sure you meet all requirements from GCP module
  2. Make sure you meet all requirements from Kubernetes module
  3. You will need "Compute Engine API - Backend services" to be atleast 7 for this deployment.

Usage

Create

  1. Configure the options in the module. (examples/google-cloud/module.tf might be helpful)
  2. Apply the configurations: terraform apply
  3. Remember to set the NS records in your domain registrar before cert-manager start http01 verification of the domain.
  4. 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

  1. Destroy the resources using terraform terraform destroy
  2. 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 }}'