Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] configmaps "loki" not found leads loki cmpd Unavailable #8349

Open
tianyue86 opened this issue Oct 29, 2024 · 2 comments
Open

[BUG] configmaps "loki" not found leads loki cmpd Unavailable #8349

tianyue86 opened this issue Oct 29, 2024 · 2 comments
Assignees
Labels
kind/bug Something isn't working

Comments

@tianyue86
Copy link

Describe the bug

tianyue@192 kbcli % kbcli version
Kubernetes: v1.30.4-eks-a737599
KubeBlocks: 1.0.0-alpha.11
kbcli: 1.0.0-alpha.0

To Reproduce
Steps to reproduce the behavior:

  1. Set helm repo
tianyue@192 kbcli % helm repo add kubeblocks-addons https://jihulab.com/api/v4/projects/150246/packages/helm/stable
"kubeblocks-addons" has been added to your repositories
tianyue@192 kbcli % helm repo update                                                    
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "kubeblocks" chart repository
...Successfully got an update from the "kbcli-test-applications" chart repository
...Successfully got an update from the "kubeblocks-addons" chart repository
...Successfully got an update from the "kbcli-test-addons" chart repository
...Successfully got an update from the "kubeblocks-enterprise" chart repository
...Successfully got an update from the "kbcli-test-enterprise" chart repository
...Successfully got an update from the "jetstack" chart repository
...Successfully got an update from the "kubeblocks-applications" chart repository
Update Complete. ⎈Happy Helming!⎈

  1. search loki version
tianyue@192 kbcli % helm search repo kubeblocks-addons/loki --versions --devel | grep 1.0.0
kubeblocks-addons/loki        	1.0.0-alpha.2	3.0.0      	Loki is a horizontally-scalable, highly-availab...
kubeblocks-addons/loki        	1.0.0-alpha.0	3.0.0      	Loki is a horizontally-scalable, highly-availab...
kubeblocks-addons/loki-cluster	1.0.0-alpha.1	3.0.0      	A loki cluster Helm chart for KubeBlocks.         
kubeblocks-addons/loki-cluster	1.0.0-alpha.0	3.0.0      	A loki cluster Helm chart for KubeBlocks.
  1. install loki
tianyue@192 kbcli % helm upgrade -i kb-addon-loki kubeblocks-addons/loki --version 1.0.0-alpha.0 -n kb-system 
Release "kb-addon-loki" has been upgraded. Happy Helming!
NAME: kb-addon-loki
LAST DEPLOYED: Tue Oct 29 16:58:16 2024
NAMESPACE: kb-system
STATUS: deployed
REVISION: 3
TEST SUITE: None

  1. check cmpd status : Unavailable
tianyue@192 kbcli % k get cmpd | grep loki
loki-backend                        loki-backend       1.0.0             Unavailable   9m48s
loki-gateway                        loki-gateway       1.0.0             Unavailable   9m48s
loki-read                           loki-read          1.0.0             Unavailable   9m48s
loki-write                          loki-write         1.0.0             Unavailable   9m48s
  1. describe cmpd: error - failed to check config template: configmaps "loki" not found
tianyue@192 kbcli % k describe cmpd loki-backend
Name:         loki-backend
Namespace:    
Labels:       app.kubernetes.io/instance=kb-addon-loki
              app.kubernetes.io/managed-by=Helm
              app.kubernetes.io/name=loki
              app.kubernetes.io/version=3.0.0
              helm.sh/chart=loki-1.0.0-alpha.0
Annotations:  meta.helm.sh/release-name: kb-addon-loki
              meta.helm.sh/release-namespace: kb-system
API Version:  apps.kubeblocks.io/v1
Kind:         ComponentDefinition
Metadata:
  Creation Timestamp:  2024-10-29T08:49:31Z
  Finalizers:
    componentdefinition.kubeblocks.io/finalizer
  Generation:        3
  Resource Version:  34544590
  UID:               458b3e3c-a270-40ad-82a8-9fbb1a2f9837
Spec:
  Configs:
    Name:          loki-config
    Namespace:     kb-system
    Template Ref:  loki
    Volume Name:   config
    Name:          loki-runtime-config
    Namespace:     kb-system
    Template Ref:  loki-runtime
    Volume Name:   runtime-config
  Description:     A Loki component definition for Kubernetes
  Labels:
    app.kubernetes.io/part-of:  memberlist
  Min Ready Seconds:            0
  Provider:                     kubeblocks
  Runtime:
    Affinity:
      Pod Anti Affinity:
        Required During Scheduling Ignored During Execution:
          Label Selector:
            Match Labels:
              app.kubernetes.io/component:  backend
          Topology Key:                     kubernetes.io/hostname
    Automount Service Account Token:        true
    Containers:
      Env:
        Name:             METHOD
        Value:            WATCH
        Name:             LABEL
        Value:            loki_rule
        Name:             FOLDER
        Value:            /rules
        Name:             RESOURCE
        Value:            both
        Name:             WATCH_SERVER_TIMEOUT
        Value:            60
        Name:             WATCH_CLIENT_TIMEOUT
        Value:            60
        Name:             LOG_LEVEL
        Value:            INFO
      Image:              apecloud-registry.cn-zhangjiakou.cr.aliyuncs.com/apecloud/k8s-sidecar:1.24.3
      Image Pull Policy:  IfNotPresent
      Name:               loki-sc-rules
      Resources:
      Volume Mounts:
        Mount Path:  /rules
        Name:        sc-rules-volume
      Args:
        -config.file=/etc/loki/config/config.yaml
        -target=backend
        -legacy-read-mode=false
      Image Pull Policy:  IfNotPresent
      Name:               backend
      Ports:
        Container Port:  3100
        Name:            http-metrics
        Protocol:        TCP
        Container Port:  9095
        Name:            grpc
        Protocol:        TCP
        Container Port:  7946
        Name:            http-memberlist
        Protocol:        TCP
      Readiness Probe:
        Failure Threshold:  3
        Http Get:
          Path:                 /ready
          Port:                 http-metrics
          Scheme:               HTTP
        Initial Delay Seconds:  30
        Period Seconds:         10
        Success Threshold:      1
        Timeout Seconds:        1
      Resources:
      Security Context:
        Allow Privilege Escalation:  false
        Capabilities:
          Drop:
            ALL
      Volume Mounts:
        Mount Path:  /etc/loki/config
        Name:        config
        Mount Path:  /etc/loki/runtime-config
        Name:        runtime-config
        Mount Path:  /tmp
        Name:        tmp
        Mount Path:  /var/loki
        Name:        data
        Mount Path:  /rules
        Name:        sc-rules-volume
  Service Kind:      loki-backend
  Service Version:   1.0.0
  Services:
    Name:         loki-backend
    Pod Service:  false
    Spec:
      Ports:
        Name:         http-metrics
        Port:         3100
        Protocol:     TCP
        Target Port:  http-metrics
        Name:         grpc
        Port:         9095
        Protocol:     TCP
        Target Port:  grpc
  Update Strategy:    BestEffortParallel
Status:
  Message:              failed to check config template: configmaps "loki" not found
  Observed Generation:  3
  Phase:                Unavailable
Events:                 <none>

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@tianyue86 tianyue86 added the kind/bug Something isn't working label Oct 29, 2024
@shanshanying
Copy link
Contributor

configs api in loki is not supported yet

@Y-Rookie
Copy link
Collaborator

loki addons is unavailabe now, @sophon-zt will support it later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants