Issues pulling nginx-plus-ingress:2.3.0 #2952
-
|
Hello, I am having an issue pulling the nginx-plus-ingress:2.3.0 image from the private registry. Any note on what I am doing wrong? Followed the steps in https://docs.nginx.com/nginx-ingress-controller/installation/using-the-jwt-token-docker-secret/ Ubuntu K8s 1.24.4 cluster apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-ingress
namespace: nginx-ingress
spec:
replicas: 1
selector:
matchLabels:
app: nginx-ingress
template:
metadata:
labels:
app: nginx-ingress
#annotations:
#prometheus.io/scrape: "true"F
#prometheus.io/port: "9113"
#prometheus.io/scheme: http
spec:
serviceAccountName: nginx-ingress
containers:
- image: private-registry.nginx.com/v2/nginx-ic-nap/nginx-plus-ingress:2.3.0
imagePullPolicy: IfNotPresent
name: nginx-plus-ingress
ports:
- name: http
containerPort: 80
- name: https
containerPort: 443
- name: readiness-port
containerPort: 8081
- name: prometheus
containerPort: 9113
readinessProbe:
httpGet:
path: /nginx-ready
port: readiness-port
periodSeconds: 1
securityContext:
allowPrivilegeEscalation: true
runAsUser: 101 #nginx
capabilities:
drop:
- ALL
add:
- NET_BIND_SERVICE
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
args:
- -nginx-plus
- -nginx-configmaps=$(POD_NAMESPACE)/nginx-config
- -default-server-tls-secret=$(POD_NAMESPACE)/default-server-secret
- -enable-cert-manager
- -enable-app-protect
#- -enable-app-protect-dos
#- -v=3 # Enables extensive logging. Useful for troubleshooting.
#- -report-ingress-status
#- -external-service=nginx-ingress
#- -enable-prometheus-metrics
#- -global-configuration=$(POD_NAMESPACE)/nginx-configurationapiVersion: v1
data:
.dockerconfigjson: <Removed>
kind: Secret
metadata:
creationTimestamp: "2022-08-05T20:58:53Z"
name: regcred
namespace: nginx-ingress
resourceVersion: "650867"
uid: b8e08a4e-d807-4299-a21b-7012b028ac0b
type: kubernetes.io/dockerconfigjsonName: nginx-ingress
Namespace: nginx-ingress
Labels: <none>
Annotations: <none>
Image pull secrets: regcred
Mountable secrets: nginx-ingress-token-z89gx
Tokens: nginx-ingress-token-z89gx
Events: <none> |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
|
Hey @BrianVinsonF5 , can you share the error message? Also, did you try the cURL command to test your credential by listing the images? |
Beta Was this translation helpful? Give feedback.
-
|
It looks to me that the issue is probably the image name you have in the deployment - there is an erroneous |
Beta Was this translation helpful? Give feedback.
-
|
Hello, can I ask how can I customize the image path from private-registry.nginx.com to my personal docker hub private image ? |
Beta Was this translation helpful? Give feedback.
-
|
Answered, closing. |
Beta Was this translation helpful? Give feedback.
It looks to me that the issue is probably the image name you have in the deployment - there is an erroneous
v2which is required for the curl command (because it is querying the docker registry API), but it is not part of the image name. Try changing- image: private-registry.nginx.com/v2/nginx-ic-nap/nginx-plus-ingress:2.3.0->- image: private-registry.nginx.com/nginx-ic-nap/nginx-plus-ingress:2.3.0. The rest looks OK I think!