Açıklaması şöyle. Yani DaemonSet her worker node üzerinde çalışır
DaemonSets are great for running a single instance of an application on every node in the cluster. These are applications that need to be run on every node in the cluster. This could be things like logging or monitoring agents. For example, if you have a logging agent that you want to run on every node in your cluster, you could use a DaemonSet to make sure that there is an instance of the agent running on each node. This is useful because it ensures that the same instance of the application is running on each node, which can be important for tasks that require node-level access or coordination.
Örnek - Logging Agent
Şöyle yaparız
apiVersion: apps/v1kind: DaemonSetmetadata:name: logging-agent-daemonsetspec:selector:matchLabels:app: logging-agenttemplate:metadata:labels:app: logging-agentspec:containers:- name: logging-agentimage: my-logging-agent-image:latestvolumeMounts:- name: logsmountPath: /var/logvolumes:- name: logshostPath:path: /var/log
Hiç yorum yok:
Yorum Gönder