Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update c.pod-design.md : test deployment from within a pod #303

Merged
merged 4 commits into from
Mar 4, 2023

Conversation

Redtef
Copy link
Contributor

@Redtef Redtef commented Nov 1, 2022

Hello,

In the Pod Design section in the last exercice : https://github.com/dgkanatsios/CKAD-exercises/blob/main/c.pod_design.md#implement-canary-deployment-by-running-two-instances-of-nginx-marked-as-versionv1-and-versionv2-so-that-the-load-is-balanced-at-75-25-ratio

In the solution it is needed to check if the deployment was successful by using the command :
curl $(kubectl get svc my-app-svc -o jsonpath="{.spec.clusterIP}") , however this command does not work if you don't have a nodePort Service to expose it to your local machine.

My suggestion is to test the deployment from whitin a pod by using a busyBox image and the wget command.

This is also a solution to the issue : #281

@kaizendae
Copy link

That's good, it teaches how to use busybox to debug connection issues from inside the cluster which is a good to know for any CKAD candidate.

Redtef and others added 2 commits November 2, 2022 23:17
Add a better one liner solution instead of having a shell to the busybox pod and running the command
@dgkanatsios dgkanatsios merged commit 8a86482 into dgkanatsios:main Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants