This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM nginx:latest | |
| RUN for size in 1K 2K 10K 20K 512K 1M; do \ | |
| dd if=/dev/urandom of=/usr/share/nginx/html/${size}.dat bs=${size} count=1; \ | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sum by (namespace, pod) ( container_memory_working_set_bytes{image!="", container!="POD", container!="", source!="cadvisor", namespace="SOME_NAMESPACE"} ) | |
| * on (namespace, pod) group_left(deployment) | |
| ( | |
| label_copy(kube_replicaset_owner{namespace="SOME_NAMESPACE", owner_kind="Deployment"}, "owner_name", "deployment") | |
| * on (namespace, replicaset) group_left(pod) | |
| ( | |
| label_copy(kube_pod_info{namespace="SOME_NAMESPACE", created_by_kind="ReplicaSet"}, "created_by_name", "replicaset") | |
| * on (namespace, replicaset, pod) |
OlderNewer