mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 16:09:08 +00:00
7 lines
582 B
Plaintext
7 lines
582 B
Plaintext
|
You can connect to the container running modem-stats. To open a shell session in the pod run the following:
|
||
|
|
||
|
- kubectl exec -i -t --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "modem-stats.fullname" . }} -o jsonpath='{.items[0].metadata.name}') /bin/sh
|
||
|
|
||
|
To trail the logs for the modem-stats pod run the following:
|
||
|
|
||
|
- kubectl logs -f --namespace {{ .Release.Namespace }} $(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "modem-stats.fullname" . }} -o jsonpath='{ .items[0].metadata.name }')
|