apiVersion: apps/v1 kind: Deployment metadata: name: whoami labels: app: whoami spec: replicas: 30 strategy: type: RollingUpdate # rollingUpdate: # maxSurge: 5 # maxUnavailable: 5 selector: matchLabels: app: whoami template: metadata: labels: app: whoami spec: # Move to other nodes fast tolerations: - key: "node.kubernetes.io/unreachable" operator: "Exists" effect: "NoExecute" tolerationSeconds: 5 - key: "node.kubernetes.io/not-ready" operator: "Exists" effect: "NoExecute" tolerationSeconds: 5 containers: - name: whoami image: stefanscherer/whoami:1.2.0 securityContext: privileged: true volumeMounts: - mountPath: /sys name: sys-volume volumes: - name: sys-volume hostPath: path: /sys