hajimari icon indicating copy to clipboard operation
hajimari copied to clipboard

Hajimari dont find ingress or dont store config

Open JuezFenix opened this issue 3 years ago • 5 comments

Describe the bug Hajimari dont find ingress or dont store config (or maybe delete defaultEnable in config file)

To Reproduce

apiVersion: apps/v1
kind: Deployment
metadata:
  name: hajimari
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/instance: hajimari
      app.kubernetes.io/name: hajimari
  template:
    metadata:
      labels:
        app.kubernetes.io/instance: hajimari
        app.kubernetes.io/name: hajimari
    spec:
      volumes:
        - name: config
          persistentVolumeClaim:
            claimName: hajimari-config
      containers:
        - name: hajimari
          image: ghcr.io/toboshii/hajimari:latest
          ports:
            - name: http
              containerPort: 3000
              protocol: TCP
          env:
            - name: TZ
              value: UTC
          resources: {}
          volumeMounts:
            - name: config
              mountPath: /config
          livenessProbe:
            tcpSocket:
              port: 3000
            timeoutSeconds: 1
            periodSeconds: 10
            successThreshold: 1
            failureThreshold: 3
          readinessProbe:
            tcpSocket:
              port: 3000
            timeoutSeconds: 1
            periodSeconds: 10
            successThreshold: 1
            failureThreshold: 3
          startupProbe:
            tcpSocket:
              port: 3000
            timeoutSeconds: 1
            periodSeconds: 5
            successThreshold: 1
            failureThreshold: 30
          imagePullPolicy: Always
      restartPolicy: Always
      terminationGracePeriodSeconds: 30
      serviceAccountName: hajimari
      serviceAccount: hajimari
  strategy:
    type: Recreate
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: hajimari-config
  namespace: default
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi
  volumeMode: Filesystem`
apiVersion: v1
kind: Service
metadata:
  name: hajimari
  namespace: default
spec:
  ports:
    - name: http
      protocol: TCP
      port: 3000
      targetPort: http
  selector:
    app.kubernetes.io/instance: hajimari
    app.kubernetes.io/name: hajimari
  type: ClusterIP
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: hajimari
  namespace: default
spec:
  ingressClassName: nginx
  tls:
    - hosts:
        - 
      secretName: 
  rules:
    - host: www.ardasar.com
      http:
        paths:
          - path: /haji(/|$)(.*)
            pathType: Prefix
            backend:
              service:
                name: hajimari
                port:
                  number: 3000
customApps: []
defaultEnable: true
groups: []

Expected behavior Hajimari discover ingress on kubernetes cluster

Additional context RBAC are deployed.

JuezFenix avatar May 27 '22 11:05 JuezFenix

It looks like you're missing a namespaceSelector? This is required to control which namespaces are monitored.

toboshii avatar Oct 02 '22 13:10 toboshii

Whatever change i do in config It's dont stored

JuezFenix avatar Oct 16 '22 02:10 JuezFenix

I have the same problem, I cannot make ingress auto-discovery work. My dashboard is empty.

Screenshot_2023-07-19-15-11-28_1920x1080

Here is the Flux Helm Release I use. I am expecting Hajimari to detect it's own ingress and show it with a Plex icon in the dashboard.

---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: hajimari
  namespace: flux-system
spec:
  chart:
    spec:
      chart: hajimari
      reconcileStrategy: ChartVersion
      sourceRef:
        kind: HelmRepository
        name: hajimari
  install:
    createNamespace: true
  interval: 1m0s
  targetNamespace: hajimari
  values:
    defaultEnable: true
    ingress:
      main:
        annotations:
          hajimari.io/icon: plex
        enabled: true
        hosts:
        - host: start.exemple.com
          paths:
          - path: /
            pathType: Prefix
        ingressClassName: nginx
        tls:
        - hosts:
          - start.exemple.com
    namespaceSelector:
      matchNames:
      - hajimari

lapwat avatar Jul 19 '23 13:07 lapwat

mine is also empty, added Namespaceselectors, added annotations, enabled "defaultEnable" but nothing shows up

lachnerd avatar Jan 15 '24 08:01 lachnerd