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

Why do I have 2 versions of a deployment? #94

Open
guai opened this issue Jan 24, 2023 · 1 comment
Open

Why do I have 2 versions of a deployment? #94

guai opened this issue Jan 24, 2023 · 1 comment

Comments

@guai
Copy link

guai commented Jan 24, 2023

Hi
I'm launching ktunnel with my custom bat which creates non-privileged deployment/svc for ktunnel proxy server and then starts ktunnel.exe with -r
Also ktunnel image is changed to point to my inner docker registry. Beside that the deployment/svc are identical to what ktunnel creates. Ktunnel server starts ok with that deployment/svc.

Something like so:

oc login --token=...
oc delete deployment,service mysvc
oc create -f mysvc-ktunnel-deployment.yml
oc wait --for=condition=Ready pod -l "app.kubernetes.io/instance=mysvc"
ktunnel.exe expose -n foo -p 9000 mysvc 8080:9000 -r

For some reason I see the second deployment version. It creates a pod that is stuck in tryin to download ktunnel image using its original url. And oc wait waits for this second pod until timeout.
So even before ktunnel.exe itself is called.
Why does this happen? Does ktunnel server create it? And how do I prevent that?

@guai
Copy link
Author

guai commented Jan 25, 2023

upd: I was wrong about the second deployment being created before ktunnel.exe is called. openshift's terminating pods got me confused. definitely ktunnel.exe makes it despite of -r flag

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

No branches or pull requests

1 participant