Lens
约 2 分钟阅读
- lensapp/lensGitHublensapp/lenslensapp/lens · 2024-01-23 闭源 https://github.com/lensapp/lens/commit/e1fc8869a9e0033fb22665a990e07a6b72756630 · 替代 · k9s · kdash笔记:Lens
- 2024-01-23 闭源 lensapp/lens/commit/e1fc8869a9e0033fb22665a990e07a6b72756630GitHublensapp/lens/commit/e1fc8869a9e0033fb22665a990e07a6b72756630
- 替代
- k9s
- kdash
- headlampGitHubheadlamp-k8s/headlampheadlamp-k8s/headlamp · Apache-2.0, Golang, TS · Web App, Desktop App · 支持 in-cluster 和 桌面模式笔记:healmap
- seabird
- kubenav/kubenavGitHubkubenav/kubenav
- 替代
- Lens - The Kubernetes IDE
- by Mirantis
- 2024-01-23 闭源 lensapp/lens/commit/e1fc8869a9e0033fb22665a990e07a6b72756630GitHublensapp/lens/commit/e1fc8869a9e0033fb22665a990e07a6b72756630
- MuhammedKalkan/OpenLensGitHubMuhammedKalkan/OpenLenslensapp/lens · 2024-01-23 闭源 https://github.com/lensapp/lens/commit/e1fc8869a9e0033fb22665a990e07a6b72756630 · 替代 · k9s · kdash笔记:Lens
- 不要求登陆 - 从 lens 移除相关逻辑
- extensions/metrics-cluster-featureGitHub Filelensapp/lens/extensions/metrics-cluster-feature
- src/features/user-mode
- ClusterRole lens-user
- LIST namespace
- system
- 允许非管理员能访问有权限访问的空间
- ClusterRole lens-user
- 无法使用外部 prometheus - #909GitHub Issuelensapp/lens#909
- 可以用 promxy 代理现有的外部 prometheus - 在内部使用
extensions/metrics-cluster-feature
- Namespace lens-metrics
- StatefulSet prometheus
- prometheus
--storage.tsdb.retention.time=2d--storage.tsdb.retention.size=5GB
- ServiceAccount prometheus
- Service prometheus
- 80 -> 9090
- prometheus.io/scrape: 'true'
- ConfigMap prometheus-config
- prometheus.yaml
- ConfigMap prometheus-rules
- alertmanager.rules.yaml
- etcd3.rules.yaml
- general.rules.yaml
- kube-state-metrics.rules.yaml
- kubelet.rules.yaml
- kubernetes.rules.yaml
- node.rules.yaml
- prometheus.rules.yaml
- prometheus
- ClusterRole - lens-prometheus
- ServiceAccount prometheus
- DaemonSet - node-exporter
- Service 80 -> 9100
- Deployment - kube-state-metrics
- StatefulSet prometheus
- Using Custom PrometheusGitHub Filelensapp/lens/troubleshooting/custom-prometheus.md
# 可以使用 HELM 安装的 - 需要抓取时间小于 1 分钟
helm upgrade --set server.global.scrape_interval=30s prometheus stable/prometheuskube-prometheus
- 支持需要 relabelGitHub Filelensapp/lens/troubleshooting/custom-prometheus.md#kube-prometheus
- 该说明有问题
- 选择 helm 安装,指定
monitoring/kube-prometheus-prometheus:9090
- #180GitHub Issuelensapp/lens#180 - Documentation is incorrect for Prometheus troubleshooting
- #656GitHub Issuelensapp/lens#656 - What are the requirements to make my prometheus deployment compatible with Lens?
# Lens
# ====
node-exporter:
serviceMonitor:
# interval: 10s
relabelings:
- action: replace
regex: (.*)
replacement: $1
sourceLabels:
- __meta_kubernetes_pod_node_name
targetLabel: kubernetes_node
kubelet:
serviceMonitor:
# interval: 15s
metricRelabelings:
- action: replace
sourceLabels:
- node
targetLabel: instance
# limit & request works
kube-state-metrics:
serviceMonitor:
honorLabels: truefeatures/user-mode
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: lens-user
rules:
- verbs:
- list
apiGroups:
- ''
resources:
- namespaces
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: lens-user
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: 'system:authenticated'
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: lens-user关联信息
反向链接、本文链接的其他页面和外部资料。
反向链接
- K8S Awesome笔记 · lens
cncf landscape · awesome-cloud-native · Service Mesh / Cloud Native · GoogleCloudPlatform/scion · Google Cloud Platform 相关的 Go 项目。
References
GitHub10 条
- lensapp/lens/troubleshooting/custom-prometheus.mdgithub.com/lensapp/lens/blob/master/troubleshooting/custom-prometheus.md
- headlamp-k8s/headlampgithub.com/headlamp-k8s/headlamp
- kubenav/kubenavgithub.com/kubenav/kubenav
- lensapp/lensgithub.com/lensapp/lens
- lensapp/lens/commit/e1fc8869a9e0033fb22665a990e07a6b72756630github.com/lensapp/lens/commit/e1fc8869a9e0033fb22665a990e07a6b72756630
- lensapp/lens/extensions/metrics-cluster-featuregithub.com/lensapp/lens/tree/master/extensions/metrics-cluster-feature
- lensapp/lens#180github.com/lensapp/lens/issues/180
- lensapp/lens#656github.com/lensapp/lens/issues/656
- lensapp/lens#909github.com/lensapp/lens/issues/909
- MuhammedKalkan/OpenLensgithub.com/MuhammedKalkan/OpenLens