Install Gremlin on Kubernetes manually
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.
The steps for deploying to Kubernetes using pure YAML are:
- Gather your credentials
- Create a Kubernetes secret from your Gremlin certificates
- Download and apply the Gremlin configuration manifest
- Verify your installation
Gather your credentials
All Gremlin integration installations require you to use one of Gremlin's authentication methods. With Kubernetes, you can use either signature (i.e. certificate)-based authentication or secret authentication. Secret-based authentication is easier to implement, but we recommend using certificate-based authentication.
First, retrieve your Team ID from your team settings page. Next, generate a new certificate pair, or download an existing certificate pair if one exists. Unzip the folder containing your certificates, then continue to the next step.
Create a Kubernetes secret from your Gremlin certificates
Now that we have our credentials, let's create a Kubernetes Secret to store them securely.
First, we'll create a new namespace for our deployment:
Next, we'll create the secret. Replace "/path/to/gremlin.cert" and "/path/to/gremlin.key" with the actual filepath to your Gremlin certificate and key file, respectively:
Download and apply the Gremlin configuration manifest
Next, we'll deploy the Gremlin configuration manifest.
Download and apply the Gremlin client manifest
Next, we'll deploy the actual Gremlin Agent. This deploys a DaemonSet that will run a single instance of the Gremlin Agent on each node in your cluster.
If you are using certificate-based authentication, run the following command:
If you are using secret-based authentication, run this command instead:
Download and apply the K8s client (Chao) manifest
Last, we'll deploy the Chao client. This deploys a single Pod that handles communication between your Kubernetes cluster and Gremlin.
If you are using certificate-based authentication, run the following command:
If you are using secret-based authentication, run this command instead:
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, run the following command: