This template creates a load balancer healthcheck.
- Install gcloud
- Create a GCP project, set up billing, enable requisite APIs
- Create a network
- Grant the compute.networkAdmin IAM role to the project service account
Depend on the specified healthcheck type.
See the properties
section in the schema file(s):
- Clone the Deployment Manager Samples repository:
git clone https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit
- Go to the dm directory:
cd dm
- Copy the example DM config to be used as a model for the deployment; in this case, examples/healthcheck.yaml:
cp templates/healthcheck/examples/healthcheck.yaml my_healthcheck.yaml
- Change the values in the config file to match your specific GCP setup:
vim my_healthcheck.yaml # <== change values to match your GCP setup
- Create your deployment:
gcloud deployment-manager deployments create <YOUR_DEPLOYMENT_NAME> \
--config my_healthcheck.yaml
- In case you need to delete your deployment:
gcloud deployment-manager deployments delete <YOUR_DEPLOYMENT_NAME>