6 Mart 2023 Pazartesi

kind: DaemonSet

Giriş
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/v1
kind: DaemonSet
metadata:
  name: logging-agent-daemonset
spec:
  selector:
    matchLabels:
      app: logging-agent
  template:
    metadata:
      labels:
        app: logging-agent
    spec:
      containers:
      - name: logging-agent
        image: my-logging-agent-image:latest
        volumeMounts:
        - name: logs
          mountPath: /var/log
      volumes:
      - name: logs
        hostPath:
          path: /var/log





Hiç yorum yok:

Yorum Gönder

Cluster Propotional Autoscaler - ReplicaSet Ekler/Siler

Giriş Açıklaması şöyle CPA aims to horizontally scale the number of Pod replicas based on the cluster’s scale. A common example is DNS ser...