Skip to content

Latest commit

 

History

History

okteto-wordpress-mysql

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

okteto-wordpress-mysql

Example of running wordpress-mysql on okteto-cloud using pure terraform

Prerequisites

Steps:

  1. Clone repo: git clone git@github.com:jhole89/terraform-k8s-example.git
  2. Change to this directory: cd okteto-wordpress-mysql
  3. Initialise terraform: terraform init
  4. Copy tfvars template: cp terraform.tfvars.template terraform.tfvars
  5. Fill in terraform.tfvars with Okteto values (found in your okteto-kube.config - make sure your okteto-kube.config is also in your ~/.kube/config)
  6. Apply terraform plan: terraform apply --auto-approve - you should see the following output
    Apply complete! Resources: 7 added, 0 changed, 0 destroyed.
    
    Outputs:
    
    frontend_url = https://wordpress-jhole89.cloud.okteto.net/
    
  7. The plan outputs the url exposed through the kubernetes service. You can now hit the endpoint using any web browser and set up your wordpress instance.
  8. Once no longer required you can remove all resources: terraform destroy --auto-approve