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

k8tz sidecar container: pulling from private registry fails #49

Open
hrbu opened this issue Dec 6, 2022 · 3 comments · May be fixed by #51
Open

k8tz sidecar container: pulling from private registry fails #49

hrbu opened this issue Dec 6, 2022 · 3 comments · May be fixed by #51
Labels
area/admission Admission controller area area/injection Patch Injections area bug Something isn't working

Comments

@hrbu
Copy link

hrbu commented Dec 6, 2022

In our project we pull images from a secured internal container-registry. Therefore we provide an imagePullSecret.
grafik

Pulling the image for the k8tz controller deployment works as expected.

Problem: Pulling the image for sidecar container usage fails.

Seems like the imagePullSecret isn't considered in that case.

@yonatankahana
Copy link
Member

hi, can you provide me the full error message?
and show the full repository value that cutted in the image?
a print of kubectl get pod -oyaml -n <namespace> <podName> can be useful as well.

@hrbu
Copy link
Author

hrbu commented Dec 6, 2022

Providing full error messages is not that easy ... the problem exists on multinode k8s environments only. So reproducing on my local k3d setup is not possible. For more detailed error messages I've to roll-back a pre-production environment in that error state. Would like to avoid this if possible. During investigation of the deployment incident I've seen error messages containing "access denied" when pulling the image for sidecar-container usage. Within the related pod deployment description I've missed the imagePullSecrets section for the k8tz sidecar-container.

The following screenshot is what I can provide without much effort:

grafik

@yonatankahana
Copy link
Member

yonatankahana commented Dec 6, 2022

you are right, imagePullSecrets not propagated from controller to sidecars and it will cause this problem. I but I am not sure it can be fixed automatically since the secret should exist in the pod namespace. Could be that the correct way to fix it is you specify the imagePullSecrets manually on your pods or service accounts. ill check it and update you soon

@yonatankahana yonatankahana added bug Something isn't working area/admission Admission controller area area/injection Patch Injections area labels Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/admission Admission controller area area/injection Patch Injections area bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants