Skip to content

Instantly share code, notes, and snippets.

@kennycyb
Last active September 1, 2023 02:54
Show Gist options
  • Save kennycyb/6bd4d5c300549a1fbdc9b042a95a2fd4 to your computer and use it in GitHub Desktop.
Save kennycyb/6bd4d5c300549a1fbdc9b042a95a2fd4 to your computer and use it in GitHub Desktop.

CURL

Run a curl command in kubernetes

kubectl run curl-x --image=radial/busyboxplus:curl -i --tty --rm

REDIS

Run redis-cli

kubectl run -i --tty --rm redis-cli --image=redis --restart=Never -- bash

Connect to redis

redis-cli -h <REDIS_HOST> -p <REDIS_PORT>

Example connecting to AWS MEMORY DB

redis-cli --tls --insecure -h <cluster>.memorydb.ap-southeast-1.amazonaws.com -p 6379

Run some command

SET mykey Hello EX 60
GET mykey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment