Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. apiVersion: apps/v1
  2. kind: DaemonSet
  3. metadata:
  4. name: busy
  5. namespace: default
  6. labels:
  7. tier: management
  8. app: kernel-optimization
  9. spec:
  10. selector:
  11. matchLabels:
  12. name: kernel-optimization
  13. template:
  14. metadata:
  15. labels:
  16. name: kernel-optimization
  17. spec:
  18. hostNetwork: true
  19. hostPID: true
  20. hostIPC: true
  21. initContainers:
  22. - command:
  23. - sh
  24. - -c
  25. - sysctl -w net.ipv4.tcp_max_syn_backlog=4096; sysctl -w net.core.somaxconn=4096; sysctl -w net.core.netdev_max_backlog=4096
  26. image: alpine:3.6
  27. imagePullPolicy: IfNotPresent
  28. name: sysctl
  29. resources: {}
  30. securityContext:
  31. privileged: true
  32. capabilities:
  33. add:
  34. - NET_ADMIN
  35. volumeMounts:
  36. - name: modifysys
  37. mountPath: /sys
  38. containers:
  39. - resources:
  40. requests:
  41. cpu: 0.01
  42. image: busybox:latest
  43. name: sleepforever
  44. command: ["/bin/sh", "-c"]
  45. args:
  46. - >
  47. while true; do
  48. sleep 100000;
  49. done
  50. volumes:
  51. - name: modifysys
  52. hostPath:
  53. path: /sys
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement