show logs
Displays logs of specific pods.
Parameters
Modes
Logging mode
Examples
The following example shows sample output for the
show
logs command.
Edge-VM-1-867# logging
(logging)# show logs helm-install-clustermgr-5pdpj
------------------------
Displaying logs for pod: helm-install-clustermgr-5pdpj
------------------------
if [[ ${KUBERNETES_SERVICE_HOST} =~ .*:.* ]]; then
echo "KUBERNETES_SERVICE_HOST is using IPv6"
CHART="${CHART//%\{KUBERNETES_API\}%/[${KUBERNETES_SERVICE_HOST}]:${KUBERNETES_SERVICE_PORT}}"
else
CHART="${CHART//%\{KUBERNETES_API\}%/${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT}}"
fi
set +v -x
+ [[ '' != \t\r\u\e ]]
+ export HELM_HOST=127.0.0.1:44134
+ HELM_HOST=127.0.0.1:44134
+ helm_v2 init --skip-refresh --client-only --stable-repo-url https://charts.helm.sh/stable/
+ tiller --listen=127.0.0.1:44134 --storage=secret
Creating /home/klipper-helm/.helm
Creating /home/klipper-helm/.helm/repository
Creating /home/klipper-helm/.helm/repository/cache
Creating /home/klipper-helm/.helm/repository/local
Creating /home/klipper-helm/.helm/plugins
Creating /home/klipper-helm/.helm/starters
Creating /home/klipper-helm/.helm/cache/archive
Creating /home/klipper-helm/.helm/repository/repositories.yaml
Adding stable repo with URL: https://charts.helm.sh/stable/
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at /home/klipper-helm/.helm.
Not installing Tiller due to 'client-only' flag having been set
++ jq -r '.Releases | length'
++ timeout -s KILL 30 helm_v2 ls --all '^clustermgr$' --output json
[main] 2024/07/25 23:02:33 Starting Tiller v2.17.0 (tls=false)
[main] 2024/07/25 23:02:33 GRPC listening on 127.0.0.1:44134
[main] 2024/07/25 23:02:33 Probes listening on :44135
[main] 2024/07/25 23:02:33 Storage driver is Secret
[main] 2024/07/25 23:02:33 Max history per release is 0
[storage] 2024/07/25 23:02:33 listing all releases with filter
+ V2_CHART_EXISTS=
+ [[ '' == \1 ]]
+ [[ '' == \v\2 ]]
+ [[ -f /config/ca-file.pem ]]
+ [[ -n '' ]]
+ shopt -s nullglob
+ helm_content_decode
+ set -e
+ ENC_CHART_PATH=/chart/clustermgr.tgz.base64
+ CHART_PATH=/tmp/clustermgr.tgz
+ [[ ! -f /chart/clustermgr.tgz.base64 ]]
+ base64 -d /chart/clustermgr.tgz.base64
+ CHART=/tmp/clustermgr.tgz
+ set +e
+ [[ install != \d\e\l\e\t\e ]]
+ helm_repo_init
+ grep -q -e 'https\?://'
+ [[ helm_v3 == \h\e\l\m\_\v\3 ]]
+ [[ /tmp/clustermgr.tgz == stable/* ]]
+ [[ -n '' ]]
+ helm_update install
+ [[ helm_v3 == \h\e\l\m\_\v\3 ]]
++ tr '[:upper:]' '[:lower:]'
++ jq -r '"\(.[0].app_version),\(.[0].status)"'
++ helm_v3 ls --all -f '^clustermgr$' --namespace default --output json
+ LINE=0.1.0,deployed
+ IFS=,
+ read -r INSTALLED_VERSION STATUS _
+ VALUES=
+ for VALUES_FILE in /config/*.yaml
+ VALUES=' --values /config/values-01_HelmChart.yaml'
+ [[ install = \d\e\l\e\t\e ]]
+ [[ 0.1.0 =~ ^(|null)$ ]]
+ [[ deployed =~ ^(pending-install|pending-upgrade|pending-rollback)$ ]]
+ [[ deployed == \d\e\p\l\o\y\e\d ]]
+ echo 'Already installed clustermgr'
+ [[ helm_v3 == \h\e\l\m\_\v\3 ]]
+ helm_v3 mapkubeapis clustermgr --namespace default
Already installed clustermgr
2024/07/25 23:02:48 Release 'clustermgr' will be checked for deprecated or removed Kubernetes APIs and will be updated if necessary to supported API versions.
2024/07/25 23:02:48 Get release 'clustermgr' latest version.
2024/07/25 23:02:50 Check release 'clustermgr' for deprecated or removed APIs...
2024/07/25 23:02:50 Finished checking release 'clustermgr' for deprecated or removed APIs.
2024/07/25 23:02:50 Release 'clustermgr' has no deprecated or removed APIs.
2024/07/25 23:02:50 Map of release 'clustermgr' deprecated or removed APIs to supported versions, completed successfully.
+ echo 'Upgrading helm_v3 chart'
+ echo 'Upgrading clustermgr'
+ shift 1
+ helm_v3 upgrade clustermgr /tmp/clustermgr.tgz --values /config/values-01_HelmChart.yaml
Upgrading clustermgr
Release "clustermgr" has been upgraded. Happy Helming!
NAME: clustermgr
LAST DEPLOYED: Thu Jul 25 23:02:51 2024
NAMESPACE: default
STATUS: deployed
REVISION: 3
+ exit
History
| Release version | Command history |
|---|---|
| 1.0.0 | This command was introduced. |