adamant-kite-43734
06/15/2023, 5:19 AMmagnificent-vr-88571
06/15/2023, 5:21 AMhostnetwork as true
by default.
I tried making it as false. Though rke2-metric-server
came up it ended up in different issue.magnificent-vr-88571
06/15/2023, 5:22 AMError from server: Get "https://<ip addr1>:10250/containerLogs/anamespace/lb987c5bc4-4vlzp/api?follow=true": x509: certificate is valid for 127.0.0.1, not <ip addr1>
magnificent-vr-88571
06/15/2023, 5:23 AMmagnificent-vr-88571
06/15/2023, 5:26 AM>>> k get nodes
E0615 14:24:39.179242 83498 memcache.go:287] couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0615 14:24:39.188277 83498 memcache.go:287] couldn't get resource list for <http://custom.metrics.k8s.io/v1beta1|custom.metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0615 14:24:39.190885 83498 memcache.go:121] couldn't get resource list for <http://custom.metrics.k8s.io/v1beta1|custom.metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0615 14:24:39.193944 83498 memcache.go:121] couldn't get resource list for <http://custom.metrics.k8s.io/v1beta1|custom.metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0615 14:24:39.195687 83498 memcache.go:121] couldn't get resource list for <http://custom.metrics.k8s.io/v1beta1|custom.metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
NAME STATUS ROLES AGE VERSION
server-1 Ready control-plane,etcd,master 35d v1.24.12+rke2r1
creamy-pencil-82913
06/15/2023, 4:45 PMmagnificent-vr-88571
06/15/2023, 9:16 PMcreamy-pencil-82913
06/15/2023, 9:21 PMcreamy-pencil-82913
06/15/2023, 9:22 PMmagnificent-vr-88571
06/15/2023, 9:23 PMcreamy-pencil-82913
06/15/2023, 9:24 PMmagnificent-vr-88571
06/15/2023, 9:25 PMcreamy-pencil-82913
06/15/2023, 9:25 PMcreamy-pencil-82913
06/15/2023, 9:27 PMkubectl get helmchart -n kube-system rke2-metrics-server -o yaml |grep chart-url
and kubectl get pod -n kube-system -l <http://helmcharts.helm.cattle.io/chart=rke2-metrics-server|helmcharts.helm.cattle.io/chart=rke2-metrics-server>
creamy-pencil-82913
06/15/2023, 9:27 PMmagnificent-vr-88571
06/15/2023, 9:32 PM<http://helm.cattle.io/chart-url|helm.cattle.io/chart-url>: <https://rke2-charts.rancher.io/assets/rke2-metrics-server/rke2-metrics-server-2.11.100-build2022101107.tgz>
creamy-pencil-82913
06/15/2023, 9:33 PMkubectl get helmchartconfig -A
magnificent-vr-88571
06/15/2023, 9:33 PMkubectl get pod -n kube-system -l <http://helmcharts.helm.cattle.io/chart=rke2-metrics-server|helmcharts.helm.cattle.io/chart=rke2-metrics-server>
this returns empty
magnificent-vr-88571
06/15/2023, 9:33 PM>> kubectl get pod -n kube-system | grep metric
rke2-metrics-server-8787c959c-z862k 0/1 CrashLoopBackOff 196 (2m23s ago) 16h
creamy-pencil-82913
06/15/2023, 9:34 PMkubectl get job -n kube-system -l <http://helmcharts.helm.cattle.io/chart=rke2-metrics-server|helmcharts.helm.cattle.io/chart=rke2-metrics-server>
magnificent-vr-88571
06/15/2023, 9:35 PMNAME COMPLETIONS DURATION AGE
helm-install-rke2-metrics-server 1/1 15s 57d
creamy-pencil-82913
06/15/2023, 9:35 PMcreamy-pencil-82913
06/15/2023, 9:36 PMmagnificent-vr-88571
06/15/2023, 9:37 PMmagnificent-vr-88571
06/15/2023, 9:41 PMhelmVersion: 3
info:
description: Upgrade complete
firstDeployed: '2022-09-23T23:32:37Z'
lastDeployed: '2023-05-17T03:30:10Z'
creamy-pencil-82913
06/15/2023, 9:44 PMcreamy-pencil-82913
06/15/2023, 9:45 PMkubectl get helmchartconfig -A
output to confirm that you didn’t set it to host network true at some pointmagnificent-vr-88571
06/15/2023, 9:46 PMNo resources found
creamy-pencil-82913
06/15/2023, 9:47 PMcreamy-pencil-82913
06/15/2023, 9:47 PMkubectl get deployment -n kube-system rke2-metrics-server -o yaml
?magnificent-vr-88571
06/30/2023, 10:11 PM>>> k get nodes
E0615 14:24:39.179242 83498 memcache.go:287] couldn't get resource list for <http://metrics.k8s.io/v1beta1|metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0615 14:24:39.188277 83498 memcache.go:287] couldn't get resource list for <http://custom.metrics.k8s.io/v1beta1|custom.metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0615 14:24:39.190885 83498 memcache.go:121] couldn't get resource list for <http://custom.metrics.k8s.io/v1beta1|custom.metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0615 14:24:39.193944 83498 memcache.go:121] couldn't get resource list for <http://custom.metrics.k8s.io/v1beta1|custom.metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
E0615 14:24:39.195687 83498 memcache.go:121] couldn't get resource list for <http://custom.metrics.k8s.io/v1beta1|custom.metrics.k8s.io/v1beta1>: the server is currently unable to handle the request
I did upgrade RKE2 from 1.22 to 1.24. post that tried to upgrade prometheus stack too, however got failed and some how 3 selectors got inserted in few of the prometheus services which prevented service to attach with appropriate pods. upon fixing service selector got fixed the issue.