@@ -21,7 +21,7 @@ The following steps are examples to demonstrate the required changes to enable P
21211 . Run the following command to patch the Deployment and add the ` --pprof-bind-address=:8082 ` flag:
2222
2323``` shell
24- kubectl patch deployment $( kubectl get deployments -n olmv1-system -l control-plane =operator-controller-controller-manager -o jsonpath=' {.items[0].metadata.name}' ) \
24+ kubectl patch deployment $( kubectl get deployments -n olmv1-system -l apps.kubernetes.io/name =operator-controller -o jsonpath=' {.items[0].metadata.name}' ) \
2525-n olmv1-system --type=' json' -p=' [
2626 {
2727 "op": "add",
@@ -127,7 +127,7 @@ go tool pprof -http=:8080 ./operator-controller-profile.pprof
1271271 . Run the following command to patch the Deployment and add the ` --pprof-bind-address=:8083 ` flag:
128128
129129``` shell
130- kubectl patch deployment $( kubectl get deployments -n olmv1-system -l control-plane =catalogd-controller-manager -o jsonpath=' {.items[0].metadata.name}' ) \
130+ kubectl patch deployment $( kubectl get deployments -n olmv1-system -l apps.kubernetes.io/name =catalogd -o jsonpath=' {.items[0].metadata.name}' ) \
131131-n olmv1-system --type=' json' -p=' [
132132 {
133133 "op": "add",
@@ -235,7 +235,7 @@ go tool pprof -http=:8080 ./catalogd-profile.pprof
2352351 . Run the following command to bind to ` --pprof-bind-address ` the value ` 0 ` in order to disable the endpoint.
236236
237237``` shell
238- kubectl patch deployment $( kubectl get deployments -n olmv1-system -l control-plane =operator-controller-controller-manager -o jsonpath=' {.items[0].metadata.name}' ) \
238+ kubectl patch deployment $( kubectl get deployments -n olmv1-system -l apps.kubernetes.io/name =operator-controller -o jsonpath=' {.items[0].metadata.name}' ) \
239239-n olmv1-system --type=' json' -p=' [
240240 {
241241 "op": "replace",
@@ -266,7 +266,7 @@ kubectl delete pod curl-oper-con-pprof -n olmv1-system
266266
2672671 . Run the following command to bind to ` --pprof-bind-address ` the value ` 0 ` in order to disable the endpoint.
268268``` shell
269- kubectl patch deployment $( kubectl get deployments -n olmv1-system -l control-plane =catalogd-controller-manager -o jsonpath=' {.items[0].metadata.name}' ) \
269+ kubectl patch deployment $( kubectl get deployments -n olmv1-system -l apps.kubernetes.io/name =catalogd -o jsonpath=' {.items[0].metadata.name}' ) \
270270-n olmv1-system --type=' json' -p=' [
271271 {
272272 "op": "replace",
@@ -294,4 +294,4 @@ re-start the deployment `kubectl rollout restart deployment -n olmv1-system cata
294294kubectl delete pod curl-catalogd-pprof -n olmv1-system
295295```
296296
297- [ pprof ] : https://github.com/google/pprof/blob/main/doc/README.md
297+ [ pprof ] : https://github.com/google/pprof/blob/main/doc/README.md
0 commit comments