<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.linuxsa.org/index.php?action=history&amp;feed=atom&amp;title=%E6%8E%A7%E5%88%B6%E5%99%A8DaemonSet</id>
	<title>控制器DaemonSet - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.linuxsa.org/index.php?action=history&amp;feed=atom&amp;title=%E6%8E%A7%E5%88%B6%E5%99%A8DaemonSet"/>
	<link rel="alternate" type="text/html" href="https://wiki.linuxsa.org/index.php?title=%E6%8E%A7%E5%88%B6%E5%99%A8DaemonSet&amp;action=history"/>
	<updated>2026-04-20T11:13:26Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.linuxsa.org/index.php?title=%E6%8E%A7%E5%88%B6%E5%99%A8DaemonSet&amp;diff=1303&amp;oldid=prev</id>
		<title>2023年10月6日 (五) 03:14 Evan</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxsa.org/index.php?title=%E6%8E%A7%E5%88%B6%E5%99%A8DaemonSet&amp;diff=1303&amp;oldid=prev"/>
		<updated>2023-10-06T03:14:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=start=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@ubuntu-200470-1:~/daemonset# cat daemon.yaml &lt;br /&gt;
apiVersion: apps/v1&lt;br /&gt;
kind: DaemonSet&lt;br /&gt;
metadata:&lt;br /&gt;
  name: fluentd&lt;br /&gt;
  namespace: logging&lt;br /&gt;
  labels:&lt;br /&gt;
    app: fluentd-logging&lt;br /&gt;
spec:&lt;br /&gt;
  selector:&lt;br /&gt;
    matchLabels:&lt;br /&gt;
      name: fluentd&lt;br /&gt;
  template:&lt;br /&gt;
    metadata:&lt;br /&gt;
      labels:&lt;br /&gt;
        name: fluentd&lt;br /&gt;
    spec:&lt;br /&gt;
      containers:&lt;br /&gt;
      - name: fluentd-elasticsearch&lt;br /&gt;
        image: quay.io/fluentd_elasticsearch/fluentd:v4.5.2&lt;br /&gt;
        resources:&lt;br /&gt;
          limits:&lt;br /&gt;
            memory: 200Mi&lt;br /&gt;
          requests:&lt;br /&gt;
            cpu: 100m&lt;br /&gt;
            memory: 200Mi&lt;br /&gt;
        volumeMounts:&lt;br /&gt;
        - name: varlog&lt;br /&gt;
          mountPath: /var/log&lt;br /&gt;
      terminationGracePeriodSeconds: 30&lt;br /&gt;
      volumes:&lt;br /&gt;
      - name: varlog&lt;br /&gt;
        hostPath:&lt;br /&gt;
          path: /var/log&lt;br /&gt;
&lt;br /&gt;
kubectl create ns logging&lt;br /&gt;
&lt;br /&gt;
kubectl apply -f daemon.yam&lt;br /&gt;
&lt;br /&gt;
 kubectl get daemonset -n logging&lt;br /&gt;
NAME      DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR   AGE&lt;br /&gt;
fluentd   2         2         2       2            2           &amp;lt;none&amp;gt;          9m3s&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=references=&lt;br /&gt;
https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/&lt;br /&gt;
&lt;br /&gt;
[https://devopscube.com/kubernetes-daemonset/ Kubernetes Daemonset: A Comprehensive Guide]&lt;br /&gt;
&lt;br /&gt;
https://github.com/monotek/fluentd-elasticsearch&lt;br /&gt;
&lt;br /&gt;
https://quay.io/repository/fluentd_elasticsearch/fluentd?tab=tags&lt;br /&gt;
&lt;br /&gt;
[[category:k8s]]&lt;/div&gt;</summary>
		<author><name>Evan</name></author>
	</entry>
</feed>