234 lines
7.3 KiB
YAML
234 lines
7.3 KiB
YAML
---
|
|
kind: "DaemonSet"
|
|
apiVersion: "apps/v1"
|
|
metadata:
|
|
name: "cadvisor"
|
|
namespace: "base-service"
|
|
uid: "6a273cc5-a389-4a19-bc45-3d2f6dfb14f4"
|
|
resourceVersion: "11770660"
|
|
generation: 1
|
|
creationTimestamp: "2025-07-14T09:16:44Z"
|
|
annotations:
|
|
deprecated.daemonset.template.generation: "1"
|
|
field.cattle.io/publicEndpoints: "[{\"nodeName\":\":osredm-master\",\"addresses\"\
|
|
:[\"172.20.32.234\"],\"port\":8080,\"protocol\":\"TCP\",\"podName\":\"base-service:cadvisor-jwddk\"\
|
|
,\"allNodes\":false}]"
|
|
kubectl.kubernetes.io/last-applied-configuration: "{\"apiVersion\":\"apps/v1\"\
|
|
,\"kind\":\"DaemonSet\",\"metadata\":{\"annotations\":{\"mon-name\":\"容器监控探针\
|
|
\"},\"name\":\"cadvisor\",\"namespace\":\"base-service\"},\"spec\":{\"selector\"\
|
|
:{\"matchLabels\":{\"app\":\"cadvisor\"}},\"template\":{\"metadata\":{\"labels\"\
|
|
:{\"app\":\"cadvisor\"}},\"spec\":{\"containers\":[{\"image\":\"google/cadvisor:v0.31.0\"\
|
|
,\"name\":\"cadvisor\",\"ports\":[{\"containerPort\":8080}],\"volumeMounts\"\
|
|
:[{\"mountPath\":\"/rootfs\",\"name\":\"rootfs\",\"readOnly\":true},{\"mountPath\"\
|
|
:\"/var/run\",\"name\":\"var-run\",\"readOnly\":true},{\"mountPath\":\"/sys\"\
|
|
,\"name\":\"sys\",\"readOnly\":true},{\"mountPath\":\"/var/lib/docker\",\"name\"\
|
|
:\"docker\",\"readOnly\":true}]}],\"hostNetwork\":true,\"hostPID\":true,\"tolerations\"\
|
|
:[{\"effect\":\"NoSchedule\",\"key\":\"node-role.kubernetes.io/master\"}],\"\
|
|
volumes\":[{\"hostPath\":{\"path\":\"/\"},\"name\":\"rootfs\"},{\"hostPath\"\
|
|
:{\"path\":\"/var/run\"},\"name\":\"var-run\"},{\"hostPath\":{\"path\":\"/sys\"\
|
|
},\"name\":\"sys\"},{\"hostPath\":{\"path\":\"/var/lib/docker\"},\"name\":\"\
|
|
docker\"}]}}}}\n"
|
|
mon-name: "容器监控探针"
|
|
managedFields:
|
|
- manager: "kubectl-client-side-apply"
|
|
operation: "Update"
|
|
apiVersion: "apps/v1"
|
|
time: "2025-07-14T09:16:44Z"
|
|
fieldsType: "FieldsV1"
|
|
fieldsV1:
|
|
f:metadata:
|
|
f:annotations:
|
|
".": {}
|
|
f:deprecated.daemonset.template.generation: {}
|
|
f:kubectl.kubernetes.io/last-applied-configuration: {}
|
|
f:mon-name: {}
|
|
f:spec:
|
|
f:revisionHistoryLimit: {}
|
|
f:selector: {}
|
|
f:template:
|
|
f:metadata:
|
|
f:labels:
|
|
".": {}
|
|
f:app: {}
|
|
f:spec:
|
|
f:containers:
|
|
k:{"name":"cadvisor"}:
|
|
".": {}
|
|
f:image: {}
|
|
f:imagePullPolicy: {}
|
|
f:name: {}
|
|
f:ports:
|
|
".": {}
|
|
k:{"containerPort":8080,"protocol":"TCP"}:
|
|
".": {}
|
|
f:containerPort: {}
|
|
f:hostPort: {}
|
|
f:protocol: {}
|
|
f:resources: {}
|
|
f:terminationMessagePath: {}
|
|
f:terminationMessagePolicy: {}
|
|
f:volumeMounts:
|
|
".": {}
|
|
k:{"mountPath":"/rootfs"}:
|
|
".": {}
|
|
f:mountPath: {}
|
|
f:name: {}
|
|
f:readOnly: {}
|
|
k:{"mountPath":"/sys"}:
|
|
".": {}
|
|
f:mountPath: {}
|
|
f:name: {}
|
|
f:readOnly: {}
|
|
k:{"mountPath":"/var/lib/docker"}:
|
|
".": {}
|
|
f:mountPath: {}
|
|
f:name: {}
|
|
f:readOnly: {}
|
|
k:{"mountPath":"/var/run"}:
|
|
".": {}
|
|
f:mountPath: {}
|
|
f:name: {}
|
|
f:readOnly: {}
|
|
f:dnsPolicy: {}
|
|
f:hostNetwork: {}
|
|
f:hostPID: {}
|
|
f:restartPolicy: {}
|
|
f:schedulerName: {}
|
|
f:securityContext: {}
|
|
f:terminationGracePeriodSeconds: {}
|
|
f:tolerations: {}
|
|
f:volumes:
|
|
".": {}
|
|
k:{"name":"docker"}:
|
|
".": {}
|
|
f:hostPath:
|
|
".": {}
|
|
f:path: {}
|
|
f:type: {}
|
|
f:name: {}
|
|
k:{"name":"rootfs"}:
|
|
".": {}
|
|
f:hostPath:
|
|
".": {}
|
|
f:path: {}
|
|
f:type: {}
|
|
f:name: {}
|
|
k:{"name":"sys"}:
|
|
".": {}
|
|
f:hostPath:
|
|
".": {}
|
|
f:path: {}
|
|
f:type: {}
|
|
f:name: {}
|
|
k:{"name":"var-run"}:
|
|
".": {}
|
|
f:hostPath:
|
|
".": {}
|
|
f:path: {}
|
|
f:type: {}
|
|
f:name: {}
|
|
f:updateStrategy:
|
|
f:rollingUpdate:
|
|
".": {}
|
|
f:maxSurge: {}
|
|
f:maxUnavailable: {}
|
|
f:type: {}
|
|
- manager: "kube-controller-manager"
|
|
operation: "Update"
|
|
apiVersion: "apps/v1"
|
|
time: "2025-07-14T09:16:51Z"
|
|
fieldsType: "FieldsV1"
|
|
fieldsV1:
|
|
f:status:
|
|
f:currentNumberScheduled: {}
|
|
f:desiredNumberScheduled: {}
|
|
f:numberAvailable: {}
|
|
f:numberReady: {}
|
|
f:observedGeneration: {}
|
|
f:updatedNumberScheduled: {}
|
|
subresource: "status"
|
|
- manager: "rancher"
|
|
operation: "Update"
|
|
apiVersion: "apps/v1"
|
|
time: "2025-07-14T09:16:52Z"
|
|
fieldsType: "FieldsV1"
|
|
fieldsV1:
|
|
f:metadata:
|
|
f:annotations:
|
|
f:field.cattle.io/publicEndpoints: {}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: "cadvisor"
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
app: "cadvisor"
|
|
spec:
|
|
volumes:
|
|
- name: "rootfs"
|
|
hostPath:
|
|
path: "/"
|
|
type: ""
|
|
- name: "var-run"
|
|
hostPath:
|
|
path: "/var/run"
|
|
type: ""
|
|
- name: "sys"
|
|
hostPath:
|
|
path: "/sys"
|
|
type: ""
|
|
- name: "docker"
|
|
hostPath:
|
|
path: "/var/lib/docker"
|
|
type: ""
|
|
containers:
|
|
- name: "cadvisor"
|
|
image: "google/cadvisor:v0.31.0"
|
|
ports:
|
|
- hostPort: 8080
|
|
containerPort: 8080
|
|
protocol: "TCP"
|
|
resources: {}
|
|
volumeMounts:
|
|
- name: "rootfs"
|
|
readOnly: true
|
|
mountPath: "/rootfs"
|
|
- name: "var-run"
|
|
readOnly: true
|
|
mountPath: "/var/run"
|
|
- name: "sys"
|
|
readOnly: true
|
|
mountPath: "/sys"
|
|
- name: "docker"
|
|
readOnly: true
|
|
mountPath: "/var/lib/docker"
|
|
terminationMessagePath: "/dev/termination-log"
|
|
terminationMessagePolicy: "File"
|
|
imagePullPolicy: "IfNotPresent"
|
|
restartPolicy: "Always"
|
|
terminationGracePeriodSeconds: 30
|
|
dnsPolicy: "ClusterFirst"
|
|
hostNetwork: true
|
|
hostPID: true
|
|
securityContext: {}
|
|
schedulerName: "default-scheduler"
|
|
tolerations:
|
|
- key: "node-role.kubernetes.io/master"
|
|
effect: "NoSchedule"
|
|
updateStrategy:
|
|
type: "RollingUpdate"
|
|
rollingUpdate:
|
|
maxUnavailable: 1
|
|
maxSurge: 0
|
|
revisionHistoryLimit: 10
|
|
status:
|
|
currentNumberScheduled: 1
|
|
numberMisscheduled: 0
|
|
desiredNumberScheduled: 1
|
|
numberReady: 1
|
|
observedGeneration: 1
|
|
updatedNumberScheduled: 1
|
|
numberAvailable: 1
|