| 1 |
apiVersion: apps/v1 |
| 2 |
kind: DaemonSet |
| 3 |
metadata: |
| 4 |
name: collectorforkubernetes-master |
| 5 |
namespace: collectorforkubernetes |
| 6 |
labels: |
| 7 |
app: collectorforkubernetes |
| 8 |
spec: |
| 9 |
updateStrategy: |
| 10 |
type: RollingUpdate |
| 11 |
|
| 12 |
selector: |
| 13 |
matchLabels: |
| 14 |
daemon: collectorforkubernetes |
| 15 |
|
| 16 |
template: |
| 17 |
metadata: |
| 18 |
name: collectorforkubernetes-master |
| 19 |
labels: |
| 20 |
daemon: collectorforkubernetes |
| 21 |
|
| 22 |
spec: |
| 23 |
|
| 24 |
priorityClassName: collectorforkubernetes-critical |
| 25 |
|
| 26 |
dnsPolicy: ClusterFirstWithHostNet |
| 27 |
hostNetwork: true |
| 28 |
serviceAccountName: collectorforkubernetes |
| 29 |
affinity: |
| 30 |
nodeAffinity: |
| 31 |
requiredDuringSchedulingIgnoredDuringExecution: |
| 32 |
nodeSelectorTerms: |
| 33 |
- matchExpressions: |
| 34 |
- key: node-role.kubernetes.io/master |
| 35 |
operator: Exists |
| 36 |
tolerations: |
| 37 |
- operator: "Exists" |
| 38 |
effect: "NoSchedule" |
| 39 |
- operator: "Exists" |
| 40 |
effect: "NoExecute" |
| 41 |
containers: |
| 42 |
- name: collectorforkubernetes |
| 43 |
image: docker.io/outcoldsolutions/collectorforkubernetes:5.14.284 |
| 44 |
imagePullPolicy: Always |
| 45 |
securityContext: |
| 46 |
runAsUser: 0 |
| 47 |
privileged: true |
| 48 |
resources: |
| 49 |
limits: |
| 50 |
cpu: 2 |
| 51 |
memory: 512Mi |
| 52 |
requests: |
| 53 |
cpu: 200m |
| 54 |
memory: 192Mi |
| 55 |
env: |
| 56 |
- name: KUBERNETES_NODENAME |
| 57 |
valueFrom: |
| 58 |
fieldRef: |
| 59 |
fieldPath: spec.nodeName |
| 60 |
- name: POD_NAME |
| 61 |
valueFrom: |
| 62 |
fieldRef: |
| 63 |
fieldPath: metadata.name |
| 64 |
volumeMounts: |
| 65 |
- name: collectorforkubernetes-state |
| 66 |
mountPath: /data |
| 67 |
- name: collectorforkubernetes-config |
| 68 |
mountPath: /config/ |
| 69 |
readOnly: true |
| 70 |
- name: cgroup |
| 71 |
mountPath: /rootfs/sys/fs/cgroup |
| 72 |
readOnly: true |
| 73 |
- name: proc |
| 74 |
mountPath: /rootfs/proc |
| 75 |
readOnly: true |
| 76 |
- name: docker-logs |
| 77 |
mountPath: /rootfs/var/lib/docker/ |
| 78 |
readOnly: true |
| 79 |
mountPropagation: HostToContainer |
| 80 |
- name: docker-unix-socket |
| 81 |
mountPath: /rootfs/var/run/docker.sock |
| 82 |
readOnly: true |
| 83 |
- name: crio-unix-socket |
| 84 |
mountPath: /rootfs/var/run/crio/ |
| 85 |
readOnly: true |
| 86 |
- name: containerd-unix-socket |
| 87 |
mountPath: /rootfs/var/run/containerd/ |
| 88 |
readOnly: true |
| 89 |
- name: logs |
| 90 |
mountPath: /rootfs/var/log/ |
| 91 |
readOnly: true |
| 92 |
- name: run-logs |
| 93 |
mountPath: /rootfs/run/log/ |
| 94 |
readOnly: true |
| 95 |
- name: k8s-certs |
| 96 |
mountPath: /rootfs/etc/kubernetes/pki/ |
| 97 |
readOnly: true |
| 98 |
- name: kubelet-root |
| 99 |
mountPath: /rootfs/var/lib/kubelet/ |
| 100 |
readOnly: true |
| 101 |
mountPropagation: HostToContainer |
| 102 |
- name: localtime |
| 103 |
mountPath: /etc/localtime |
| 104 |
readOnly: true |
| 105 |
volumes: |
| 106 |
- name: collectorforkubernetes-state |
| 107 |
hostPath: |
| 108 |
path: /var/lib/collectorforkubernetes/data/ |
| 109 |
- name: docker-logs |
| 110 |
hostPath: |
| 111 |
path: /var/lib/docker/ |
| 112 |
- name: cgroup |
| 113 |
hostPath: |
| 114 |
path: /sys/fs/cgroup |
| 115 |
- name: proc |
| 116 |
hostPath: |
| 117 |
path: /proc |
| 118 |
- name: logs |
| 119 |
hostPath: |
| 120 |
path: /var/log |
| 121 |
- name: run-logs |
| 122 |
hostPath: |
| 123 |
path: /run/log |
| 124 |
- name: docker-unix-socket |
| 125 |
hostPath: |
| 126 |
path: /var/run/docker.sock |
| 127 |
- name: crio-unix-socket |
| 128 |
hostPath: |
| 129 |
path: /var/run/crio/ |
| 130 |
- name: containerd-unix-socket |
| 131 |
hostPath: |
| 132 |
path: /var/run/containerd/ |
| 133 |
- name: k8s-certs |
| 134 |
hostPath: |
| 135 |
path: /etc/kubernetes/pki/ |
| 136 |
- name: kubelet-root |
| 137 |
hostPath: |
| 138 |
path: /var/lib/kubelet/ |
| 139 |
- name: localtime |
| 140 |
hostPath: |
| 141 |
path: /etc/localtime |
| 142 |
- name: collectorforkubernetes-config |
| 143 |
configMap: |
| 144 |
name: collectorforkubernetes |
| 145 |
items: |
| 146 |
- key: 001-general.conf |
| 147 |
path: 001-general.conf |
| 148 |
- key: 002-daemonset.conf |
| 149 |
path: 002-daemonset.conf |
| 150 |
- key: 003-daemonset-master.conf |
| 151 |
path: 003-daemonset-master.conf |