To connect to Gremlin services from our Kubernetes cluster, we will need to store our Gremlin credentials as a Kubernetes Secret.
Let's perform the following steps to configure our Gremlin credentials:
- Log in to the Gremlin service at https://app.gremlin.com/.
- From the account menu, click on Company Settings:
- Click on the Teams tab and select your team:
- Click on the Configuration tab and download your certificates:
- Copy the certificates.zip file to your host where kubectl has been configured.
- Extract the files:
$ unzip certificate.zip
- Rename the certificate files accordingly:
$ mv Me-client.pub_cert.pem gremlin.cert && mv Me-client.priv_key.pem gremlin.key
- Create a Secret resource in your cluster:
$ kubectl create secret generic gremlin-team-cert --from-file=./gremlin.cert --from-file=./gremlin.key
With that, we have converted our credentials into secret resources in Kubernetes. This secret will be used later to connect Gremlin to our cluster.