Git Product home page Git Product logo

Comments (10)

khuedoan avatar khuedoan commented on June 11, 2024

Have you export KUBECONFIG=metal/kubeconfig.yaml?

from homelab.

MCP-LTS avatar MCP-LTS commented on June 11, 2024

Thank you, after exporting KUBECONFIG kubectl works but still

[nix-shell:~/homelab-private]$ kubectl get pods -A
NAMESPACE     NAME                                                READY   STATUS    RESTARTS   AGE
argocd        argocd-application-controller-0                     1/1     Running   0          2d10h
argocd        argocd-applicationset-controller-558b95cdcf-67qqh   1/1     Running   0          2d10h
argocd        argocd-notifications-controller-f6ddf4fd7-9zlwz     1/1     Running   0          2d10h
argocd        argocd-redis-5db875d5cb-zdrdj                       1/1     Running   0          2d10h
argocd        argocd-repo-server-7dfb8c9fc7-dhgkt                 1/1     Running   0          2d10h
argocd        argocd-server-65978d79cb-62799                      1/1     Running   0          2d10h
kube-system   coredns-7b5bbc6644-bmhhq                            1/1     Running   0          2d10h
kube-system   metrics-server-667586758d-d5t22                     1/1     Running   0          2d10h
[nix-shell:~/homelab-private]$ kubectl get svc -A
NAMESPACE     NAME                               TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)                  AGE
argocd        argocd-applicationset-controller   ClusterIP   10.43.4.147     <none>        7000/TCP                 2d10h
argocd        argocd-redis                       ClusterIP   10.43.38.34     <none>        6379/TCP                 2d10h
argocd        argocd-repo-server                 ClusterIP   10.43.141.255   <none>        8081/TCP                 2d10h
argocd        argocd-server                      ClusterIP   10.43.206.158   <none>        80/TCP,443/TCP           2d10h
default       kubernetes                         ClusterIP   10.43.0.1       <none>        443/TCP                  2d10h
kube-system   kube-dns                           ClusterIP   10.43.0.10      <none>        53/UDP,53/TCP,9153/TCP   2d10h
kube-system   metrics-server                     ClusterIP   10.43.110.127   <none>        443/TCP                  2d10h

and make test log attached
make-test.log

Any suggestions?

from homelab.

khuedoan avatar khuedoan commented on June 11, 2024

Can you get the status of the applications?

kubectl get applications -n argocd

from homelab.

MCP-LTS avatar MCP-LTS commented on June 11, 2024
[nix-shell:~/homelab-private]$ kubectl get applications -n argocd
No resources found in argocd namespace.

few status terminating today

[nix-shell:~/homelab-private]$ kubectl get pods -A
NAMESPACE     NAME                                                READY   STATUS        RESTARTS   AGE
argocd        argocd-application-controller-0                     1/1     Running       0          2d17h
argocd        argocd-applicationset-controller-558b95cdcf-67qqh   1/1     Running       0          2d17h
argocd        argocd-notifications-controller-f6ddf4fd7-9zlwz     1/1     Running       0          2d17h
argocd        argocd-redis-5db875d5cb-zdrdj                       1/1     Running       0          2d17h
argocd        argocd-repo-server-7dfb8c9fc7-dhgkt                 1/1     Terminating   0          2d17h
argocd        argocd-repo-server-7dfb8c9fc7-jv8pn                 1/1     Running       0          5h47m
argocd        argocd-server-65978d79cb-62799                      1/1     Terminating   0          2d17h
argocd        argocd-server-65978d79cb-jzsvr                      1/1     Running       0          5h47m
kube-system   coredns-7b5bbc6644-bmhhq                            1/1     Running       0          2d17h
kube-system   metrics-server-667586758d-d5t22                     1/1     Terminating   0          2d17h
kube-system   metrics-server-667586758d-sb72k                     1/1     Running       0          5h47m

from homelab.

khuedoan avatar khuedoan commented on June 11, 2024

Look like there's no Application, here's another command to check the ApplicationSet:

kubectl get applicationsets -n argocd

from homelab.

MCP-LTS avatar MCP-LTS commented on June 11, 2024
[nix-shell:~/homelab-private]$ kubectl get applicationsets -n argocd
NAME        AGE
apps        2d19h
bootstrap   2d19h
platform    2d19h
system      2d19h

from homelab.

khuedoan avatar khuedoan commented on June 11, 2024

So there's ApplicationSet but no Application, look like there's a problem with Application generation. You can check it with one of the ApplicationSet, for example:

kubectl describe applicationset -n argocd system

from homelab.

MCP-LTS avatar MCP-LTS commented on June 11, 2024
  1. hmm shouldn't these variables be replaced by their values?
    Name: {{path.basename}} .... ?

  2. "error while checking out repo: Error during fetching repo: git fetch origin master --tags --force --prune failed exit status 128: fatal: could not read Username for 'https://github.com': No such device or address"

this maybe because i have it in a private repo? although git commands work commit push pull etc

[nix-shell:~/homelab-private]$ kubectl describe applicationset -n argocd system
Name:         system
Namespace:    argocd
Labels:       <none>
Annotations:  <none>
API Version:  argoproj.io/v1alpha1
Kind:         ApplicationSet
Metadata:
  Creation Timestamp:  2023-05-23T21:43:53Z
  Generation:          1
  Managed Fields:
    API Version:  argoproj.io/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .:
          f:kubectl.kubernetes.io/last-applied-configuration:
      f:spec:
        .:
        f:generators:
        f:template:
          .:
          f:metadata:
            .:
            f:name:
          f:spec:
            .:
            f:destination:
              .:
              f:name:
              f:namespace:
            f:project:
            f:source:
              .:
              f:path:
              f:repoURL:
              f:targetRevision:
            f:syncPolicy:
              .:
              f:automated:
                .:
                f:prune:
                f:selfHeal:
              f:retry:
                .:
                f:backoff:
                  .:
                  f:duration:
                  f:factor:
                  f:maxDuration:
                f:limit:
              f:syncOptions:
    Manager:      kubectl-client-side-apply
    Operation:    Update
    Time:         2023-05-23T21:43:53Z
    API Version:  argoproj.io/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:status:
        .:
        f:conditions:
    Manager:         argocd-applicationset-controller
    Operation:       Update
    Subresource:     status
    Time:            2023-05-23T21:44:29Z
  Resource Version:  1145
  UID:               970f7965-38da-4e9e-9034-3bd77eb70aeb
Spec:
  Generators:
    Git:
      Directories:
        Path:    system/*
      Repo URL:  https://github.com/MCP-LTS/homelab-private
      Revision:  master
  Template:
    Metadata:
      Name:  {{path.basename}}
    Spec:
      Destination:
        Name:       in-cluster
        Namespace:  {{path.basename}}
      Project:      default
      Source:
        Path:             {{path}}
        Repo URL:         https://github.com/MCP-LTS/homelab-private
        Target Revision:  master
      Sync Policy:
        Automated:
          Prune:      true
          Self Heal:  true
        Retry:
          Backoff:
            Duration:      1m
            Factor:        2
            Max Duration:  16m
          Limit:           10
        Sync Options:
          CreateNamespace=true
          ApplyOutOfSyncOnly=true
          ServerSideApply=true
Status:
  Conditions:
    Last Transition Time:  2023-05-23T21:44:29Z
    Message:               error while checking out repo: Error during fetching repo: `git fetch origin master --tags --force --prune` failed exit status 128: fatal: could not read Username for 'https://github.com': No such device or address
    Reason:                ApplicationGenerationFromParamsError
    Status:                True
    Type:                  ErrorOccurred
    Last Transition Time:  2023-05-23T21:44:29Z
    Message:               error while checking out repo: Error during fetching repo: `git fetch origin master --tags --force --prune` failed exit status 128: fatal: could not read Username for 'https://github.com': No such device or address
    Reason:                ErrorOccurred
    Status:                False
    Type:                  ParametersGenerated
    Last Transition Time:  2023-05-23T21:44:29Z
    Message:               error while checking out repo: Error during fetching repo: `git fetch origin master --tags --force --prune` failed exit status 128: fatal: could not read Username for 'https://github.com': No such device or address
    Reason:                ApplicationGenerationFromParamsError
    Status:                False
    Type:                  ResourcesUpToDate
Events:                    <none>


from homelab.

khuedoan avatar khuedoan commented on June 11, 2024
  1. No it will be generated by ApplicationSet.
  2. Yes, it can't clone without authentication because you have a private repo.

Closing as private repo is not supported (see the license). Please open a new one if you have a different issue after you've made the repo public.

from homelab.

MCP-LTS avatar MCP-LTS commented on June 11, 2024

Sorry my bad i did not do it intentionally to break the license terms.
What i suggest and hence i tried a private repository is to avoid publishing at github the homelab url. Maybe should be kept with the rest secrets. The first part with fixes i sent here for shell.nix i think should be added to the main branch.
Thank you.

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.