Installing Gremlin on Pivotal Cloud Foundry (PCF)
Supported platforms:
Learn how to deploy the Gremlin agent to Pivotal Cloud Foundry (PCF). Start detecting services and running experiments in minutes.
You can use Gremlin to test the reliability of your Cloud Foundry workloads using agent-based experiments. Gremlin supports infrastructure-level experiments via the Gremlin agent and application-level experiments via Failure Flags. This article walks through deploying the Gremlin agent so you can run infrastructure-level experiments.
You can deploy Gremlin to Cloud Foundry and similar BOSH-managed environments using the Gremlin BOSH release. This article walks through the following steps:
- Gathering your credentials
- Adding Gremlin to your BOSH deployment
- Verifying your installation
Prerequisites
Before deploying to Cloud Foundry, you’ll need:
Gather your credentials and store them in CredHub
All Gremlin integration installations require authentication with the Gremlin Control Plane. For PCF, you will need three things:
- Your Gremlin Team ID
- Your team's certificate
- Your team's private key
You can access these in the Team Settings page in the Gremlin web app. If you wish to use another method of authenticating, see the Authentication docs.
Once you have your credentials, run the following commands to safely store them inCredHub. Make sure to replace <bosh-env>
, <YOUR_GREMLIN_TEAM_ID>
, <YOUR_GREMLIN_CERTIFICATE>
, and <YOUR_GREMLIN_PRIVATE_KEY>
with their respective values. If you use a different secrets management solution, you can skip this step.
Upload the Gremlin BOSH release to your environment
Next, upload the latest agent release to your environment. Please contact your Gremlin account manager for a link to the BOSH release.
With the release downloaded, run this command, replacing YOUR_ENV
with your Cloud Foundry environment name:
Add the release to your deployment
Now that the bosh-release is available, you can add it to your Cloud Foundry deployment. First, add the release to an ops file or a runtime config, replacing my-instance-group
with the name of the instance group(s) you want to deploy the agent to:
To update the runtime config on the Director use the following bosh command (be sure to change runtime-config.yml
to your manifest’s filename):
Once the runtime config is updated all deployments will be considered outdated. The Director will apply runtime config changes to each deployment during the next bosh deploy for that deployment.
Verify your installation
To verify that your release is working, open the Agents page in the Gremlin web app. Your Cloud Foundry instance(s) will be listed using the name format [instance-group-name]-[instance UUID].