Skip to content

Commit 7b77c87

Browse files
committed
update labels in documentation
1 parent f968b25 commit 7b77c87

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ A helper container to switch into and run st2 CLI commands against the deployed
6363
All resources like credentials, configs, RBAC, packs, keys and secrets are shared with this container.
6464
```
6565
# obtain st2client pod name
66-
ST2CLIENT=$(kubectl get pod -l app=st2client -o jsonpath="{.items[0].metadata.name}")
66+
ST2CLIENT=$(kubectl get pod -l app.kubernetes.io/name=st2client -o jsonpath="{.items[0].metadata.name}")
6767
6868
# run a single st2 client command
6969
kubectl exec -it ${ST2CLIENT} -- st2 --version
@@ -320,12 +320,12 @@ This mirrors the how pack registration works. Make sure to review any upgrade no
320320
## Tips & Tricks
321321
Grab all logs for entire StackStorm cluster with dependent services in Helm release:
322322
```
323-
kubectl logs -l release=<release-name>
323+
kubectl logs -l app.kubernetes.io/instance=<release-name>
324324
```
325325

326326
Grab all logs only for stackstorm backend services, excluding st2web and DB/MQ/redis:
327327
```
328-
kubectl logs -l release=<release-name>,tier=backend
328+
kubectl logs -l app.kubernetes.io/instance=<release-name>,app.kubernetes.io/component=backend
329329
```
330330

331331
## Running jobs before/after install, upgrade, or rollback

templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.data.ST2_AUTH_PA
4646
username: {{ .Values.st2.username }}
4747

4848
4. Use st2 CLI:
49-
export ST2CLIENT=$(kubectl get --namespace {{ .Release.Namespace }} pod -l app=st2client,release={{ .Release.Name }} -o jsonpath="{.items[0].metadata.name}")
49+
export ST2CLIENT=$(kubectl get --namespace {{ .Release.Namespace }} pod -l app.kubernetes.io/name=st2client,app.kubernetes.io/instance={{ .Release.Name }} -o jsonpath="{.items[0].metadata.name}")
5050
kubectl exec -it ${ST2CLIENT} --namespace {{ .Release.Namespace }} -- st2 --version
5151

5252
-----------------------------------------------------

0 commit comments

Comments
 (0)