kuttl
kuttl copied to clipboard
Exec Cmd From Pod
There is a need to be able to exec a command from a pod... the value includes the ability to connect or perform actions from within the cluster that may not be possible from outside the cluster; including dns resolution.
setting up test scripts for MWT ran into a need to establish communication with the prometheus service. Example:
curl "prometheus-kubeaddons-prom-prometheus.kubeaddons.svc.cluster.local:9090/api/v1/query?query=kafka_server_BrokerTopicMetrics_MessagesIn_total\{namespace='kafka-mwt',service='kafka-instance-svc',topic=''\}" | jq -r .data.result[].value[1] | awk '{ sum += $1 } END { print sum }'