当kubernetes集群有2个或更多副本时, dotnet监视器



我想监控kubernetes部署中相同应用程序的多个pod。结果是正确地监视一个pod,如果有许多pod,那么如何正确地监视

单副本部署配置

apiVersion: apps/v1
kind: Deployment 
namespace: test       
spec:
progressDeadlineSeconds: 600
replicas: 1 
template:  
spec:
volumes:
- name: diagnostics
emptyDir: {}
containers:
- env:
- name: DOTNETMONITOR_DiagnosticPort__ConnectionMode
value: Listen
- name: DOTNETMONITOR_DiagnosticPort__EndpointName
value: /diag/port.sock
- name: DOTNETMONITOR_Storage__DumpTempFolder
value: /diag/dumps
- name: DOTNETMONITOR_Urls
value: http://localhost:52323           
image: manager:master
imagePullPolicy: Always
name: chart
ports:
- containerPort: 10800
protocol: TCP
securityContext: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /tmp
name: diagnostics
- name: sidecar
image: dotnet/nightly/monitor
ports:
- containerPort: 52325
args: ["collect","--urls", "http://*:52323", "--metricUrls", "http://*:52325", "--no-auth"]
volumeMounts:
- name: diagnostics
mountPath: /tmp
resources:
limits:
cpu: "1"
memory: 500Mi
requests:
cpu: 200m
memory: 500Mi

不是一个很好的解决方案,但我决定在配置中使用管理和角色

相关内容

  • 没有找到相关文章

最新更新