Git Product home page Git Product logo

Comments (7)

khuedoan avatar khuedoan commented on June 2, 2024

Which command did you used to delete Gitea? Here's the bootstrap process:

  • make bootstrap
  • Bootstrap installs ArgoCD and root ApplicationSets
  • ApplicationSet platform looks into the directory structure of platform/ and creates Applications accordingly

Even if you deleted the gitea Application, the ApplicationSet will recreate it automatically.

from homelab.

sabhishek avatar sabhishek commented on June 2, 2024

gitea was intermittently degraded on my setup, I ended up kubectl delete namespace gitea , thinking exactly what you mentioned. Make bootstrap however, doesn't seem to recreate gitea NS.

homelab/homelab]# make bootstrap
make -C bootstrap
make[1]: Entering directory '/home/homelab/homelab/bootstrap'
kubectl create namespace argocd --dry-run=client --output=yaml \
	| kubectl apply -f -
namespace/argocd configured
cd argocd && ./apply.sh
NAME            CLASS   HOSTS              ADDRESS         PORTS     AGE
argocd-server   nginx   argocd.REDACTED.com   192.168.1.224   80, 443   53d
--
--
customresourcedefinition.apiextensions.k8s.io/applicationsets.argoproj.io condition met
cd root && ./apply.sh
Error from server (NotFound): namespaces "gitea" not found
applicationset.argoproj.io/bootstrap unchanged
applicationset.argoproj.io/system unchanged
applicationset.argoproj.io/platform unchanged
applicationset.argoproj.io/apps unchanged
make[1]: Leaving directory '/home/homelab/homelab/bootstrap'
[nix-shell:/homelab/homelab]#

from homelab.

khuedoan avatar khuedoan commented on June 2, 2024

Yeah I just included make bootstrap to explain the bootstrap process, but you don't need to run that again. Here's a few places to look:

  • Is the namespace deleted or still terminating?
  • Is there any dangling resources?
  • What is the status of ApplicationSet and Application (using kubectl describe)

I would recommend deleting the Application instead of deleting the namespace though, ArgoCD may try to reconcile the state while the namespace is being deleted.

from homelab.

sabhishek avatar sabhishek commented on June 2, 2024

Thanks for your comment.

  1. Namespace gitea has been deleted and I see no dangling resources
  2. [nix-shell:/home/homelab/homelab]# kubectl describe applicationset platform -n argocd
Name:         platform
Namespace:    argocd
Labels:       argocd.argoproj.io/instance=root
Annotations:  <none>
--
--
Status:
  Conditions:
    Last Transition Time:  2023-11-22T23:14:26Z
    Message:               error while checking out repo: Error during fetching repo: `git fetch origin master --tags --force --prune` failed exit status 128: fatal: unable to access 'https://github.com/sabhishek/homelab/': Could not resolve host: github.com
    Reason:                ApplicationGenerationFromParamsError
    Status:                True
    Type:                  ErrorOccurred

There was a DNS issue in my homelab which I have resolved now.

  1. [nix-shell:/home/homelab/homelab]# kubectl describe apps gitea -n argocd
Name:         gitea
Namespace:    argocd
Labels:       <none>
Annotations:  <none>
API Version:  argoproj.io/v1alpha1
Kind:         Application
--
--
Status:
  Conditions:
    Last Transition Time:  2023-11-27T00:35:14Z
    Message:               rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup argocd-repo-server on 10.43.0.10:53: read udp 10.42.0.116:43886->10.43.0.10:53: read: connection refused"
    Type:                  ComparisonError
    Last Transition Time:  2023-11-22T23:46:08Z
    Message:               dial tcp: lookup argocd-redis: i/o timeout
    Type:                  DeletionError
--
--
 Operation State:
    Finished At:  2023-11-04T01:09:23Z
    Message:      ComparisonError: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup argocd-repo-server on 10.43.0.10:53: read udp 10.42.0.116:34434->10.43.0.10:53: i/o timeout" (retried 10 times).
    Operation:
-- 
--
 Warning  StatusRefreshed  2m14s  argocd-application-controller  Unable to delete application resources: dial tcp: lookup argocd-redis: i/o timeout
  Warning  StatusRefreshed  2m13s  argocd-application-controller  Unable to delete application resources: dial tcp: lookup argocd-redis: i/o timeout
  Warning  StatusRefreshed  2m3s   argocd-application-controller  Unable to delete application resources: dial tcp: lookup argocd-redis: i/o timeout
  Warning  StatusRefreshed  2m3s   argocd-application-controller  Unable to delete application resources: dial tcp: lookup argocd-redis: i/o timeout

I have attempted to delete gitea app from the ArgoCD UI, it seems to be stuck :/

from homelab.

khuedoan avatar khuedoan commented on June 2, 2024

lookup argocd-repo-server on 10.43.0.10:53: read udp 10.42.0.116:43886->10.43.0.10:53: read: connection refused
lookup argocd-redis: i/o timeout

Are your argocd-repo-server, argocd-redis and coredns pods still healthy?

from homelab.

sabhishek avatar sabhishek commented on June 2, 2024

Sorry for the late comment . Coredns wasn't healthy, I fixed the host dns issue and it was fixed as well. A minor problem, The applications got synced from GitHub and all my homelab apps are *.khuedon.com . I should be able to fix it.
Thanks for your help. Let me know if I could buy you a coffee .

from homelab.

khuedoan avatar khuedoan commented on June 2, 2024

Thank you for the offer, a list of sponsoring options can be found in the project sidebar under the "Sponsor this Project" section 😄

from homelab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.