Open ShaikhMJAM opened 3 months ago
In your screenshot dex is running, not crashing, can you provide more information on your installation steps, and the yaml of the dex Deployment?
I have installed using manifest file from https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml and I ran kubectl apply -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml.. I am not getting the exact solution some time it work and some time doesnt work. Last week what I did I deleted argocd-dev-server pod by running "kubectl delete pod argocd-dev-server" and new pod gets created now its working fine. Could you please help me why some time its work for me and sometime it doesn't and this is not for first time.
Can you provide:
kubectl get (...) -o yaml
)kubectl get events -n (namespace)
dex deployment YAML
apiVersion: apps/v1 kind: Deployment metadata: annotations: deployment.kubernetes.io/revision: "1" kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app.kubernetes.io/component":"dex-server","app.kubernetes.io/name":"argocd-dex-server","app.kubernetes.io/part-of":"argocd"},"name":"argocd-dex-server","namespace":"default"},"spec":{"selector":{"matchLabels":{"app.kubernetes.io/name":"argocd-dex-server"}},"template":{"metadata":{"labels":{"app.kubernetes.io/name":"argocd-dex-server"}},"spec":{"affinity":{"podAntiAffinity":{"preferredDuringSchedulingIgnoredDuringExecution":[{"podAffinityTerm":{"labelSelector":{"matchLabels":{"app.kubernetes.io/part-of":"argocd"}},"topologyKey":"kubernetes.io/hostname"},"weight":5}]}},"containers":[{"command":["/shared/argocd-dex","rundex"],"env":[{"name":"ARGOCD_DEX_SERVER_DISABLE_TLS","valueFrom":{"configMapKeyRef":{"key":"dexserver.disable.tls","name":"argocd-cmd-params-cm","optional":true}}}],"image":"ghcr.io/dexidp/dex:v2.30.2","imagePullPolicy":"Always","name":"dex","ports":[{"containerPort":5556},{"containerPort":5557},{"containerPort":5558}],"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}},"volumeMounts":[{"mountPath":"/shared","name":"static-files"},{"mountPath":"/tmp","name":"dexconfig"},{"mountPath":"/tls","name":"argocd-dex-server-tls"}]}],"initContainers":[{"command":["/bin/cp","-n","/usr/local/bin/argocd","/shared/argocd-dex"],"image":"quay.io/argoproj/argocd:v2.10.0","imagePullPolicy":"Always","name":"copyutil","securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}},"volumeMounts":[{"mountPath":"/shared","name":"static-files"},{"mountPath":"/tmp","name":"dexconfig"}]}],"serviceAccountName":"argocd-dex-server","volumes":[{"emptyDir":{},"name":"static-files"},{"emptyDir":{},"name":"dexconfig"},{"name":"argocd-dex-server-tls","secret":{"items":[{"key":"tls.crt","path":"tls.crt"},{"key":"tls.key","path":"tls.key"},{"key":"ca.crt","path":"ca.crt"}],"optional":true,"secretName":"argocd-dex-server-tls"}}]}}}} creationTimestamp: "2024-03-21T04:53:34Z" generation: 1 labels: app.kubernetes.io/component: dex-server app.kubernetes.io/name: argocd-dex-server app.kubernetes.io/part-of: argocd name: argocd-dex-server namespace: default resourceVersion: "42192983" uid: 91372fae-e1ab-4600-af7d-2c7f823451dc spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app.kubernetes.io/name: argocd-dex-server strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: creationTimestamp: null labels: app.kubernetes.io/name: argocd-dex-server spec: affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution:
Logs for dex pod
kubectl logs argocd-dex-server-fdf8896df-l2lz7 Defaulted container "dex" out of: dex, copyutil (init) time="2024-03-27T05:29:46Z" level=info msg="ArgoCD Dex Server is starting" built="2024-02-06T14:28:43Z" commit=2175939ed6156ddd743e60f427f7f48118c971bf namespace=default version=v2.10.0+2175939 time="2024-03-27T05:29:46Z" level=info msg="Generating self-signed TLS certificate for this session" time="2024-03-27T05:29:46Z" level=info msg="Starting configmap/secret informers" time="2024-03-27T05:29:46Z" level=info msg="Configmap/secret informer synced" time="2024-03-27T05:29:46Z" level=info msg="0xc000e88360 subscribed to settings updates" time="2024-03-27T05:29:46Z" level=info msg="dex is not configured"
Based on the Deployment status, it appears the Deployment is not in crashloopbackoff.
I have installed Argocd through manifest file. Every pod are working but Arocd-dev-server is get CrashBackLoopoff, I have chech the logs for the pod it is showing secrete key is missing, Can someone help me how to resolve this issue.