From 50013095a0c7a24f7a503ac3f0c57e22b6956904 Mon Sep 17 00:00:00 2001 From: dawidstrozak <123395719+dawidstrozak@users.noreply.github.com> Date: Wed, 8 Jan 2025 17:19:43 +0000 Subject: [PATCH 1/3] Update pod related kubectl commands in the tutorial - Update kubectl command to get pods by the label because the pod label is no longer in "app.kubernetes.io/name: pod" format, it is "app.kubernetes.io/instance: pod" now - Add couple less specific commands to aid finding the pods if the name is less obvious for some reason --- docs/index.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/docs/index.md b/docs/index.md index 15b9725..3f5fe63 100644 --- a/docs/index.md +++ b/docs/index.md @@ -147,11 +147,23 @@ To confirm your change has been applied in the cluster, you can connect to the c az aks get-credentials --resource-group cft-sbox-00-rg --name cft-sbox-00-aks --subscription DCD-CFTAPPS-SBOX --overwrite-existing ``` -To make sure your pod is running as expected and to check the status of your HelmRelease run the following commands (make sure to swap YourGithubUsername with your GitHub username): +To make sure your pod is running as expected and to check the status of your HelmRelease run the following command (make sure to swap YourGithubUsername with your GitHub username): ```command - kubectl get hr labs-YourGithubUsername-nodejs -n labs - kubectl get pods -l app.kubernetes.io/name=labs-YourGithubUsername-nodejs -n labs +kubectl get hr labs-YourGithubUsername-nodejs -n labs +kubectl get pods -l app.kubernetes.io/instance=labs-YourGithubUsername-nodejs -n labs +``` + +Alternatively, if you are having trouble finding your pods you can display all pods in the labs namespace: + +```command +kubectl get pods -n labs +``` + +For more detailed information about your pod you can run: + +```command +kubectl describe pod ``` ### Access application From 693b677d298a95e022c2023cde8e891c3f0f8ca4 Mon Sep 17 00:00:00 2001 From: dawidstrozak <123395719+dawidstrozak@users.noreply.github.com> Date: Wed, 8 Jan 2025 17:32:46 +0000 Subject: [PATCH 2/3] Add information about checking for flux commit in the flux repo --- docs/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/index.md b/docs/index.md index 3f5fe63..777ee06 100644 --- a/docs/index.md +++ b/docs/index.md @@ -195,6 +195,9 @@ We are going to update the application by changing the text on the home page. 10. Reload your application in your browser and check it now shows your change to the heading: ![Hello World](images/HelloWorld.png) +If you are having any issues you might want to confirm that the Flux has picked up your new image by [checking for the commit related to your application in the cnp-flux-config repository](https://github.com/hmcts/cnp-flux-config/commits/master/). +Keep in mind that new changes are commited very frequently in this repository so if you made the change long time ago you might need to scroll through a lot of commits. + ## Feedback [comment]: <> (As of March 2022) From 1bfabf6cf1be6641abfb74dd7f64142d8411c011 Mon Sep 17 00:00:00 2001 From: dawidstrozak <123395719+dawidstrozak@users.noreply.github.com> Date: Thu, 9 Jan 2025 13:36:16 +0000 Subject: [PATCH 3/3] Add back the plural form of "commands" --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 777ee06..254f60e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -147,7 +147,7 @@ To confirm your change has been applied in the cluster, you can connect to the c az aks get-credentials --resource-group cft-sbox-00-rg --name cft-sbox-00-aks --subscription DCD-CFTAPPS-SBOX --overwrite-existing ``` -To make sure your pod is running as expected and to check the status of your HelmRelease run the following command (make sure to swap YourGithubUsername with your GitHub username): +To make sure your pod is running as expected and to check the status of your HelmRelease run the following commands (make sure to swap YourGithubUsername with your GitHub username): ```command kubectl get hr labs-YourGithubUsername-nodejs -n labs