<p>I'm currently trying to add ArgoCD to my project and am struggling with pulling an image from my GitLab container registry.</p>
<p>Here's my values yaml:</p>
<pre class="lang-yaml prettyprint-override"><code># Default values for oc-backend.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

image:
  repository: registry.gitlab.com/open-concepts/open-concepts-backend
  tag: master
  pullPolicy: Always

imagePullSecrets:
  - name: registry-credentials
nameOverride: &quot;oc-app&quot;
fullnameOverride: &quot;oc-backend-test&quot;

serviceAccount:
  # Specifies whether a service account should be created
  create: true
  # The name of the service account to use.
  # If not set and create is true, a name is generated using the fullname template
  name: &quot;&quot;

podSecurityContext:
  {}
  # fsGroup: 2000

securityContext:
  {}
  # capabilities:
  #   drop:
  #   - ALL
  # readOnlyRootFilesystem: true
  # runAsNonRoot: true
  # runAsUser: 1000

service:
  type: NodePort
  port: 80

ingress:
  enabled: false
  annotations:
    {}
    # kubernetes.io/ingress.class: nginx
    # kubernetes.io/tls-acme: &quot;true&quot;
  hosts:
    - host: chart-example.local
      paths: []

  tls: []
  #  - secretName: chart-example-tls
  #    hosts:
  #      - chart-example.local

resources:
  {}
  # We usually recommend not to specify default resources and to leave this as a conscious
  # choice for the user. This also increases chances charts run on environments with little
  # resources, such as Minikube. If you do want to specify resources, uncomment the following
  # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  # limits:
  #   cpu: 100m
  #   memory: 128Mi
  # requests:
  #   cpu: 100m
  #   memory: 128Mi

nodeSelector: {}

tolerations: []

affinity: {}
</code></pre>
<p>And the secret yaml:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
kind: Secret
metadata:
  name: registry-credentials
  namespace: argocd
type: kubernetes.io/dockerconfigjson
data:
  .dockerconfigjson: xxxx
</code></pre>
<p>I know for a fact that the dockerconfigjson works because I've tested it beforehand.</p>
<pre><code>➜ kubectl get secret registry-credentials --namespace=argocd
NAME                   TYPE                             DATA   AGE
registry-credentials   kubernetes.io/dockerconfigjson   1      56m
</code></pre>
<p>Yet, I'm still getting denied errors via ArgoCD. Can someone check whether my configuration is correct?</p>
<p>TIA</p>

<p>Solution: I'd removed the user, password and email before encoding it. It's now working!</p>
