No 101 user in 3.0.3 image? #585
-
When upgrading to 3.0.2 under Kubernetes, the pod crash-loops, and this are the very last lines of the
Is this related to #546? This is was not happening with 3.0.1. Please note that I'm using the LDAP image variant in an air-gapped environment, and this is part of the pod spec: spec:
containers:
- name: redis
imagePullPolicy: Always
image: example.com/redis:6.2.4
- name: netbox
imagePullPolicy: Always
image: example.com/netbox:v3.0.2-ldap
ports:
- name: http
protocol: TCP
containerPort: 8080
envFrom:
- configMapRef:
name: netbox The manifests have been in use for some time now, including upgrading. EDIT: added the note about the image variant and a fragment of the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
I can confirm that the issue occurs with version |
Beta Was this translation helpful? Give feedback.
-
I know you've already seen it @carloscarnero, but I should mention that I anticipate this is a bug that snuck in as a result of #546. I filed #586 for it. |
Beta Was this translation helpful? Give feedback.
-
I can confirm that netbox 3.0.2 worked before release of netbox-docker 1.4.0. Today I tested to upgrade from working netbox 3.0.2 + netbox-docker 1.3.0 to netbox 3.0.3 + netbox-docker 1.4.0 (digest: 720bc808e53d) and that gives me the same error described in this discussion. |
Beta Was this translation helpful? Give feedback.
-
You need to make sure the container entrypoint is executed as user 101. @haxorof confirmed that it was the issue he faced in #586. I'm not that familiar with Kubernetes, but I believe you should configure it with a securityContext:
|
Beta Was this translation helpful? Give feedback.
You need to make sure the container entrypoint is executed as user 101. @haxorof confirmed that it was the issue he faced in #586.
I'm not that familiar with Kubernetes, but I believe you should configure it with a securityContext:
https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
runAsUser: 101
might suffice.