Skip to content

Instantly share code, notes, and snippets.

@vigneshragupathy
Last active November 23, 2019 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vigneshragupathy/573453ca14d2e79e02f3cfe6c7a3ef20 to your computer and use it in GitHub Desktop.
Save vigneshragupathy/573453ca14d2e79e02f3cfe6c7a3ef20 to your computer and use it in GitHub Desktop.
daemonset with updateStrategy OnDelete
apiVersion: apps/v1
kind: DaemonSet
metadata:
annotations:
deprecated.daemonset.template.generation: "3"
creationTimestamp: "2019-11-23T07:30:57Z"
generation: 4
labels:
k8s-app: fluentd-logging
name: fluentd-elasticsearch
namespace: default
resourceVersion: "26767"
selfLink: /apis/apps/v1/namespaces/default/daemonsets/fluentd-elasticsearch
uid: 36223bfd-51d5-4103-8509-eca3c09b8e85
spec:
revisionHistoryLimit: 10
selector:
matchLabels:
name: fluentd-elasticsearch
template:
metadata:
creationTimestamp: null
labels:
name: fluentd-elasticsearch
spec:
containers:
- image: quay.io/fluentd_elasticsearch/fluentd:v2.5.0
imagePullPolicy: IfNotPresent
name: fluentd-elasticsearch
resources:
limits:
memory: 200Mi
requests:
cpu: 100m
memory: 200Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/log
name: varlog
- mountPath: /var/lib/docker/containers
name: varlibdockercontainers
readOnly: true
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
volumes:
- hostPath:
path: /var/log
type: ""
name: varlog
- hostPath:
path: /var/lib/docker/containers
type: ""
name: varlibdockercontainers
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: OnDelete
status:
currentNumberScheduled: 2
desiredNumberScheduled: 2
numberMisscheduled: 0
numberReady: 0
numberUnavailable: 2
observedGeneration: 4
updatedNumberScheduled: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment