PCP_KUBE_PODS(1)
π PCP_KUBE_PODS(1) π
β¨ NAME β¨
okay bestie, the big reveal is pcp-kube-pods, and it lists Kubernetes pods to scan for running PCP services π¦ total scavenger hunt energy π§
πΈ SYNOPSIS πΈ
$PCP_BINADM_DIR/discover/pcp-kube-pods
π₯ DESCRIPTION π₯
this one is lowkey so cool, ngl. pcp-kube-pods uses kubectl(1) to hand you a list of IP addresses for PODs running in a local Kubernetes cluster π
those PODs might be running PCP services like pmcd(1) and pmproxy(1) π
it's used by pmfind(1) and the pmDiscoverServices(3) API as a "shell" command. main character behavior π
the script runs the kubectl get pod command line (see kubectl-get(1)) to find those IP addresses. it grabs the .status.podIP output field out of the Kubernetes pod object(s) β¨ you can tack on extra options through a configuration file, like -l service=database, to narrow the results using Kubernetes pod labels π«Ά the default configuration file is $PCP_SYSCONF_DIR/discover/pcp-kube-pods.conf π
plot twist: if there's no local kubectl command, nothing gets reported and an exit code indicating success comes back. no drama π
π DIAGNOSTICS π
all the diagnostics you'll see come straight from the kubectl command, so if something's sus, that's where it's coming from π
and the kubectl exit status gets passed along unchanged. no edits, no filter, just vibes π
π FILES π
$PCP_BINADM_DIR/discoverβ the default path to address discovery commands likepcp-kube-podsπ$PCP_SYSCONF_DIR/discover/pcp-kube-pods.confβ the config file holding the command line options passed along tokubectl-getπ$PCP_SYSCONF_DIR/discover/pcp-kube-pods.disabledβ if this file exists, the script reports nothing. the off switch, bestie π ββοΈ
π PCP ENVIRONMENT π
environment variables with the prefix PCP_ are used to parameterize the file and directory names PCP uses, so they're basically the boss of the paths π on each installation, the file /etc/pcp.conf holds the local values for these variables. want a different config file? the $PCP_CONF variable lets you point to one, as described in pcp.conf(5) π§
π¦ SEE ALSO π¦
kubectl-get(1), kubectl(1), pmcd(1), pmfind(1), pmDiscoverServices(3) and pcp.env(5) π
that's the tea β this page is from the Performance Co-Pilot (PCP) manual, PCP_KUBE_PODS(1) edition, and I'm obsessed. love you bestie π«Άπ
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.1.0-6.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu resolute: pcp 7.1.1-1
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2018 Red Hat
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms