https://rancher.com/ logo
#general
Title
# general
s

silly-solstice-24970

12/05/2022, 8:29 PM
Hi! We are running
rke version v1.3.12
, and while attempting to monitor with prometheus+grafana k8s services (without success) noticed they didn’t get and endpoint IP:
Copy code
kube-system      kube-prometheus-coredns                   ClusterIP      None            <none>            9153/TCP                                                       127m
kube-system      kube-prometheus-kube-controller-manager   ClusterIP      None            <none>            10257/TCP                                                      127m
kube-system      kube-prometheus-kube-etcd                 ClusterIP      None            <none>            2381/TCP                                                       127m
kube-system      kube-prometheus-kube-proxy                ClusterIP      None            <none>            10249/TCP                                                      127m
kube-system      kube-prometheus-kube-scheduler            ClusterIP      None            <none>            10259/TCP                                                      127m
kube-system      kube-prometheus-kubelet                   ClusterIP      None            <none>            10250/TCP,10255/TCP,4194/TCP                                   127m
Because of that, we are unable to monitor those metrics; this is an example configuration for one of our clusters:
Copy code
---
nodes:
- address: node1.localdomain
  hostname_override: node01
  user: rke
  role:
  - controlplane
  - worker
  - etcd
  labels:
    role: storage-node
- address: node02.localdomain
  hostname_override: node02
  user: rke
  role:
  - controlplane
  - worker
  - etcd
  labels:
    role: storage-node
- address: node03.localdomain
  hostname_override: node03
  user: rke
  role:
  - controlplane
  - worker
  - etcd
  labels:
    role: storage-node
- address: node04.localdomain
  hostname_override: node04
  user: rke
  role:
  - worker
  labels:
    role: storage-node
- address: node05.localdomain
  hostname_override: node05
  user: rke
  role:
  - worker
  labels:
    role: storage-node
services:
  etcd:
    image: ""
    extra_args: {}
    extra_binds: []
    extra_env: []
    external_urls: []
    ca_cert: ""
    cert: ""
    key: ""
    path: ""
    uid: 0
    gid: 0
    snapshot: null
    retention: ""
    creation: ""
    backup_config: null
  kube-api:
    image: ""
    extra_args: {}
    extra_binds: []
    extra_env: []
    service_cluster_ip_range: 10.43.0.0/16
    service_node_port_range: ""
    pod_security_policy: false
    always_pull_images: false
    secrets_encryption_config: null
    audit_log: null
    admission_configuration: null
    event_rate_limit: null
  kube-controller:
    image: ""
    extra_args: {}
    extra_binds: []
    extra_env: []
    cluster_cidr: 10.42.0.0/16
    service_cluster_ip_range: 10.43.0.0/16
  scheduler:
    image: ""
    extra_args: {}
    extra_binds: []
    extra_env: []
  kubelet:
    image: ""
    extra_args: {}
    extra_binds: []
    extra_env: []
    cluster_domain: cluster.local
    infra_container_image: ""
    cluster_dns_server: 10.43.0.10
    fail_swap_on: false
    generate_serving_certificate: false
  kubeproxy:
    image: ""
    extra_args: {}
    extra_binds: []
    extra_env: []
network:
  plugin: canal
  options: {}
  mtu: 0
  node_selector: {}
authentication:
  strategy: x509
  sans: []
  webhook: null
addons: ""
addons_include: []
ssh_key_path: ~/.ssh/id_rsa
ssh_cert_path: ""
ssh_agent_auth: false
authorization:
  mode: rbac
  options: {}
ignore_docker_version: false
kubernetes_version: "v1.23.7-rancher1-1"
..........
Is there anything I have to do to enable those metrics?
7 Views