RSS Amplifier

Tom Schlick · Oct 15, 2023

Fixing Kubernetes error: unable to find api field in struct Container for the json field imagePullSecrets

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Recently when deploying a new Kubernetes service I ran into this error... Nothing I could find online described what the issue was and it took a few days to realize the answer was simple. I had put the imagePullSecrets inside the......

Recently when deploying a new Kubernetes service I ran into this error...

 unable to find api field in struct Container for the json field "imagePullSecrets"

Nothing I could find online described what the issue was and it took a few days to realize the answer was simple.

I had put the imagePullSecrets inside the containers spec definition in the deployment. Instead it needs to be at the same level, directly inside the spec.

Once I moved the imagePullSecrets block up, everything started working again.

Read on tomschlick.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.