Troubleshooting

Errors when using ArgoCD to deploy

If you are using ArgoCD to manage the operator, you will encounter the issue which complains the CRDs too long. A similar issue can be found here: issue. The recommended solution is to split the operator into two Argo apps, such as:

  • The first app is just for installing the CRDs with Replace=true directly, snippet:

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: ray-operator-crds
spec:
  project: default
  source:
    repoURL: <repo_url>
    targetRevision: HEAD
    path: helm/ray/crds
  destination:
    server: https://kubernetes.default.svc
  syncPolicy:
    syncOptions:
    - Replace=true
  • The second app that installs the Helm chart with skipCrds=true (new feature in Argo CD 2.3.0), snippet:

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: ray-operator
spec:
  source:
    repoURL: <repo_url>
    targetRevision: HEAD
    path: helm/ray
    helm:
      skipCrds: true
  destination:
    server: https://kubernetes.default.svc
    namespace: ray-operator
  syncPolicy:
    syncOptions:
    - CreateNamespace=true

Last updated