Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Embedded etcd monitoring #4

Open
cablespaghetti opened this issue Jan 30, 2021 · 2 comments
Open

Embedded etcd monitoring #4

cablespaghetti opened this issue Jan 30, 2021 · 2 comments

Comments

@cablespaghetti
Copy link
Owner

Currently can't monitor embedded etcd when that is enabled. When a release of k3s has been cut with this PR, we can revisit.

k3s-io/k3s#2750

@plsnotracking
Copy link

Looks like the underlying PR has been merged, is it okay to now enable the etcd metrics?

@knweiss
Copy link

knweiss commented Mar 2, 2022

FWIW: I've just tested this successfully with k3s v1.22.6+k3s1 (stable channel).

I.e. start k3s with --etcd-expose-metrics=true and then configure the local kube-prometheus-stack-32.2.1 values.yaml to a) enable kubeEtcd b) list the IP endpoints of the k3s server nodes where embedded etcd is running and c) switch the etcd port from 2379 to 2381.

kubeEtcd:
  enabled: true

  ## If your etcd is not deployed as a pod, specify IPs it can be found on
  ##
  endpoints:
    - ...insertyourips...
    - ...insertyourips...
    - ...insertyourips...

  ## Etcd service. If using kubeEtcd.endpoints only the port and targetPort are used
  ##
  service:
    enabled: true
    port: 2381
    targetPort: 2381

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants