Your secret is in default namespace but needs to be in argocd namespace!
# You have this (wrong):
kubectl get secret cased-cd-registry -n default
# You need this (correct):
kubectl get secret cased-cd-registry -n argocdkubectl delete secret cased-cd-registry -n defaultTry this kubectl command (all one line):
kubectl create secret docker-registry cased-cd-registry --docker-server=registry.cased.com --docker-username="Josh Customer" --docker-password="g8Nlw7kMhKTTTlbLsnUCrsWm3t8R4ZfFxWzXTLlVnC8" -n argocdIf that still fails with the "exactly one NAME is required" error, use the YAML approach:
Create registry-secret.yaml:
apiVersion: v1
kind: Secret
metadata:
name: cased-cd-registry
namespace: argocd
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: eyJhdXRocyI6IHsicmVnaXN0cnkuY2FzZWQuY29tIjogeyJ1c2VybmFtZSI6ICJKb3NoIEN1c3RvbWVyIiwgInBhc3N3b3JkIjogImc4Tmx3N2tNaEtUVFRsYkxzblVDcnNXbTN0OFI0WmZGeFd6WFRMbFZuQzgiLCAiYXV0aCI6ICJTbTl6YUNCRGRYTjBiMjFsY2pwbk9FNXNkemRyVFdoTFZGUlViR0pNYzI1VlEzSnpWMjB6ZERoU05GcG1SbmhYZWxoVVRHeFdia000In19fQ==Then apply:
kubectl apply -f registry-secret.yamlkubectl get secret cased-cd-registry -n argocdYou should see:
NAME TYPE DATA AGE
cased-cd-registry kubernetes.io/dockerconfigjson 1 5s
helm uninstall cased-cd -n argocd 2>/dev/null || echo "No existing installation found"helm repo add cased https://cased.github.io/cased-cd
helm repo update
helm install cased-cd cased/cased-cd --namespace argocd --set enterprise.enabled=true --set enterprise.auditTrail.enabled=true --set enterprise.image.repository=registry.cased.com/cased/cased-cd-enterprise --set imagePullSecrets[0].name=cased-cd-registrykubectl get pods -n argocd -wWait for cased-cd-* pods to show Running and 1/1 ready. Press Ctrl+C when done.
kubectl port-forward svc/cased-cd 8080:80 -n argocdThen visit: http://localhost:8080
Always use -n argocd for all commands! The secret, Helm install, and pods all need to be in the same namespace where ArgoCD is installed.
- Registry:
registry.cased.com - Username:
Josh Customer - Token:
g8Nlw7kMhKTTTlbLsnUCrsWm3t8R4ZfFxWzXTLlVnC8 - Expires: 2025-11-27
Support: support@cased.com