Skip to content

sync_argocd_apps.sh fails with argocd cli version 2.9.0+ #70

Description

@abasu0713

Checks

  • I have searched the existing issues.
  • This issue is NOT specific to the CLI. (If so, please open an issue on the CLI repo)

deployKF Version

0.1.3

Kubernetes Version

Client Version: v1.28.4
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.26.9+k3s1

Description

I was trying to follow the documentationto deploy Kubeflow locally on my Ubuntu 22.04 personal laptop. I run into a blocker here with the following error:

$ bash ./deploykf/scripts/sync_argocd_apps.sh

==========================================================================================
Getting admin password from 'Secret/argocd-initial-admin-secret'...
==========================================================================================
>>> DONE

==========================================================================================
Logging in to ArgoCD...
==========================================================================================
FATA[0000] cannot find pod with selector: [app.kubernetes.io/name=] - use the --{component}-name flag in this command or set the environmental variable (Refer to https://argo-cd.readthedocs.io/en/stable/user-guide/environment-variables), to change the Argo CD component name in the CLI 

I tried using the ArgoCD Web UI as well to sync the application states. But it didn't work either:

$ kubectl get Application -A
NAMESPACE   NAME                                             SYNC STATUS   HEALTH STATUS
argocd      dkf-core--deploykf-auth                          OutOfSync     Missing
argocd      dkf-core--deploykf-dashboard                     OutOfSync     Missing
argocd      dkf-core--deploykf-istio-gateway                 OutOfSync     Missing
argocd      dkf-core--deploykf-profiles-generator            OutOfSync     Healthy
argocd      dkf-dep--cert-manager                            OutOfSync     Missing
argocd      dkf-dep--istio                                   OutOfSync     Missing
argocd      dkf-dep--kyverno                                 OutOfSync     Missing
argocd      dkf-opt--deploykf-minio                          OutOfSync     Missing
argocd      dkf-opt--deploykf-mysql                          OutOfSync     Missing
argocd      kf-dep--argo-workflows                           OutOfSync     Missing
argocd      kf-tools--katib                                  OutOfSync     Missing
argocd      kf-tools--notebooks--jupyter-web-app             OutOfSync     Missing
argocd      kf-tools--notebooks--notebook-controller         OutOfSync     Missing
argocd      kf-tools--pipelines                              OutOfSync     Missing
argocd      kf-tools--poddefaults-webhook                    OutOfSync     Missing
argocd      kf-tools--tensorboards--tensorboard-controller   OutOfSync     Missing
argocd      kf-tools--tensorboards--tensorboards-web-app     OutOfSync     Missing
argocd      kf-tools--training-operator                      OutOfSync     Missing
argocd      kf-tools--volumes--volumes-web-app               OutOfSync     Missing
argocd      deploykf-app-of-apps                             Synced        Healthy

No updates to sample yaml was made.

Any suggestions will be much appreciated.
I am trying to do this to test and understand pipelines without having to spin up a Cloud VM or use a Cloud Kubernetes solution. This is only for development purpose. My laptop is Alienware r17 x1. It has a 3080TI. I wanna use the GPU addons and try local pipelines and hyper-parameter tuning. ANY help in getting me running will be much appreciated.

Please don't hesitate to reach out in case you have any follow up questions.

Relevant Logs

$ bash ./deploykf/scripts/sync_argocd_apps.sh

==========================================================================================
Getting admin password from 'Secret/argocd-initial-admin-secret'...
==========================================================================================
>>> DONE

==========================================================================================
Logging in to ArgoCD...
==========================================================================================
FATA[0000] cannot find pod with selector: [app.kubernetes.io/name=] - use the --{component}-name flag in this command or set the environmental variable (Refer to https://argo-cd.readthedocs.io/en/stable/user-guide/environment-variables), to change the Argo CD component name in the CLI

deployKF Values (Optional)

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: deploykf-app-of-apps
  namespace: argocd
  labels:
    app.kubernetes.io/name: deploykf-app-of-apps
    app.kubernetes.io/part-of: deploykf
spec:
  project: "default"
  source:
    ## source git repo configuration
    ##  - we use the 'deploykf/deploykf' repo so we can read its 'sample-values.yaml'
    ##    file, but you may use any repo (even one with no files)
    ##
    repoURL: "https://github.com/deployKF/deployKF.git"
    targetRevision: "v0.1.3"
    path: "."

    ## plugin configuration
    ##
    plugin:
      name: "deploykf"
      parameters:

        ## the deployKF generator version
        ##  - available versions: https://github.com/deployKF/deployKF/releases
        ##
        - name: "source_version"
          string: "0.1.3"

        ## paths to values files within the `repoURL` repository
        ##  - the values in these files are merged, with later files taking precedence
        ##  - we strongly recommend using 'sample-values.yaml' as the base of your values
        ##    so you can easily upgrade to newer versions of deployKF
        ##
        - name: "values_files"
          array:
            - "./sample-values.yaml"
  destination:
    server: "https://kubernetes.default.svc"
    namespace: "argocd"

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugkind - things not working properlypriority/criticalpriority - drop everything and work on this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions