Skip to content

Instantly share code, notes, and snippets.

@pidah
Created November 23, 2016 17:53
Show Gist options
  • Save pidah/6ccc0f2a76c1731ece020eb2dc3bdd3a to your computer and use it in GitHub Desktop.
Save pidah/6ccc0f2a76c1731ece020eb2dc3bdd3a to your computer and use it in GitHub Desktop.
# kubectl describe rs es-client-3602079238
Name: es-client-3602079238
Namespace: default
Image(s): quay.io/pires/docker-elasticsearch-kubernetes:2.3.5_1
Selector: component=elasticsearch,pod-template-hash=3602079238,role=client
Labels: component=elasticsearch,pod-template-hash=3602079238,role=client
Replicas: 2 current / 2 desired
Pods Status: 2 Running / 0 Waiting / 0 Succeeded / 0 Failed
Volumes:
storage:
Type: EmptyDir (a temporary directory that shares a pod's lifetime)
Medium:
No events.
#Select one of the labels that is applied to all pods in the replicaset above
# kubectl get pods --selector=pod-template-hash=3602079238 -o jsonpath='{.items[*].status.podIP}'
192.168.88.6 192.168.7.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment