Install Gremlin on Kubernetes manually
The Gremlin Kubernetes agent lets you run experiments and reliability tests on standard Kubernetes resources, as well as Argo Rollouts. This section will guide you through installing the Gremlin Agent using only YAML files. We only recommend using this method if installing via Helm is not suitable for your use case.
Gremlin provides an automatically generated YAML file with everything needed to deploy Gremlin to your cluster. Deploying Gremlin is as easy as downloading this file and applying it using kubectl.
- Log into your Gremlin account and navigate to the Getting Started page.
- Under step 1 ("Install the Gremlin agent"), look for the link to download
gremlin-k8s-installation.yaml
. Click on this link to download the file. - Optionally, to give your cluster a unique name, open the file, navigate to the "Chao" deployment, and change the value of
spec.template.spec.containers.args."cluster_id"
to your preferred cluster name. Otherwise, Gremlin will use a randomly generated value for the cluster name. - On your workstation, open a terminal, navigate to the folder containing the YAML file, then run the following command:
Verify your installation
On the cluster, you can run the following command to check that the Gremlin Agent was installed properly:
This should list one Gremlin Agent for each node in your cluster, plus one Pod named <span class="code-class-name">chao</span>. For example, this is the output for a three-node cluster:
The following example shows 2 pending pods, which means the installation is incomplete. Contact your cluster administrator to debug why Gremlin is unable to run on those nodes.
If you need additional troubleshooting help, see Gremlin Agent in the Gremlin Knowledge Base.
Uninstalling Gremlin from Kubernetes
To uninstall Gremlin from a Kubernetes cluster using YAML, simply delete the gremlin
namespace by running the following command: