Skip to content

Instantly share code, notes, and snippets.

View danielmciotti's full-sized avatar

Daniel Ciotti danielmciotti

  • Proprli
  • Curitiba, PR - Brazil
View GitHub Profile
@dimasch
dimasch / redis-clear
Last active April 8, 2025 15:56
Clear a redis cache in Docker
docker exec -it container-name redis-cli FLUSHALL
@ruanbekker
ruanbekker / cheatsheet-elasticsearch.md
Last active May 1, 2025 14:42
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
@matheus-goncalves
matheus-goncalves / kubectl commands
Last active March 23, 2021 20:21
Kubectl commands storage
DEBUG
kubectl get pods -n “namespace”
kubectl get services
kubectl get pods -n “namespace ”-o wide
kubectl logs {pod-name}
kubectl exec -it {pod-name} -- bin/bash
get all pods from all namespaces
kubectl get all -n namespace
kubectl describe endpoins
#It's a list of objects, so let's display the pod names
kubectl get pods -l app=hello-world -o jsonpath='{ .items[*].metadata.name }'
#Display all pods names, this will put the new line at the end of the set rather then on each object output to screen.
#Additional tips on formatting code in the examples below including adding a new line after each object
kubectl get pods -l app=hello-world -o jsonpath='{ .items[*].metadata.name }{"\n"}'
#It's a list of objects, so let's display the first (zero'th) pod from the output