loft-sh / loft

Namespace & Virtual Cluster Manager for Kubernetes - Lightweight Virtual Clusters, Self-Service Provisioning for Engineers and 70% Cost Savings with Sleep Mode
https://loft.sh/docs/introduction
Other
737 stars 65 forks source link

Install loft by Argo CD seems stucking in Syncing, except first time #153

Closed yaosiang closed 2 years ago

yaosiang commented 3 years ago

I am using OpenShift + Argo CD to install loft, the following is my Argo CD manifest. The manifest tells Argo CD to use helm to install loft and feeding some vaules to do customization.

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: loft
spec:
  destination:
    namespace: loft
    server: https://kubernetes.default.svc
  project: default
  source:
    repoURL: https://charts.loft.sh
    targetRevision: 1.15.0
    chart: loft
    helm:
      values: |
        ingress:
          enabled: false
  syncPolicy:
    syncOptions:
    - CreateNamespace=true 
    automated:
      prune: true
      selfHeal: true

It can be sync loft succssfully at first time.

But, after deleting all resource installed by loft, including loft-agent, APIService, CRD, RBAC...everything. It seems unable to sync loft again and Argo CD keep stucking in Syncing status.

Any suggestion or experience for how to install loft by Argo CD or any other GitOps tools?

FabianKramm commented 3 years ago

Hello @yaosiang! Sorry for letting this hang so long, it sounds like not all resources are correctly cleaned up, are there any leftover apiservices or validatingwebhookconfigurations that might prevent argo from syncing?

carlmontanari commented 2 years ago

I'm going to close this out as it is pretty old at this point, but absolutely re-open if this is still an issue as we definitely would want to figure out what is going on if its still happening!