https://github.com/zemanlx/tfpress
The deployment of WordPress into Google Kubernetes Engine using Helm and Terraform
https://github.com/zemanlx/tfpress
Last synced: 4 months ago
JSON representation
The deployment of WordPress into Google Kubernetes Engine using Helm and Terraform
- Host: GitHub
- URL: https://github.com/zemanlx/tfpress
- Owner: zemanlx
- Created: 2019-10-22T14:15:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-22T14:26:43.000Z (over 6 years ago)
- Last Synced: 2025-06-27T14:08:21.327Z (12 months ago)
- Language: HCL
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TFpress
TFpress is an example of deployment WordPress into Google Kubernetes Engine using Helm and Terraform.
## Prerequisites
- Installed `terraform` version `0.12.0` or higher. See installation [instructions](https://learn.hashicorp.com/terraform/getting-started/install.html).
- Installed and initialized [Google Cloud SDK](https://cloud.google.com/sdk/) for a project that will be used for deployment.
## Setup
- Configure the environment for Terraform:
```shell
gcloud auth application-default login
```
- Check all variables in `variables.tf`. The only required is `project_id`. Variables can be set as environment variables with `TF_VAR_` prefix
```shell
export TF_VAR_project_id=your_project_id
```
- Initialize Terraform
```shell
terraform init
```
## Deployment
Apply configuration
```shell
terraform apply
```
After successful deployment, you should see access information like this
```ini
Outputs:
wordpress_URL = https://34.76.58.252
wordpress_user_name = user
wordpress_user_password = 9K3ZkcMqLQ
```
## Cleanup
To delete all resources created for this deployment run
```shell
terraform destroy
```