You are looking at documentation for an older release. See the current release documentation.
Collector configuration (Kubernetes version 1.5.x)
You can find configurations for other versions of Kubernetes by following this link Configuration Reference.
Download
link
curl
$ curl -O https://www.outcoldsolutions.com/docs/monitoring-kubernetes/v4/configuration/1.5/collectorforkubernetes.yaml
wget
$ wget https://www.outcoldsolutions.com/docs/monitoring-kubernetes/v4/configuration/1.5/collectorforkubernetes.yaml
collectorforkubernetes.yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 | apiVersion: v1 kind: Namespace metadata: labels: app: collectorforkubernetes name: collectorforkubernetes --- apiVersion: v1 kind: ServiceAccount metadata: labels: app: collectorforkubernetes name: collectorforkubernetes namespace: collectorforkubernetes --- apiVersion: v1 kind: Service metadata: namespace: kube-system name: kube-controller-manager-collectorforkubernetes-discovery labels: k8s-app: kube-controller-manager spec: selector: k8s-app: kube-controller-manager type: ClusterIP clusterIP: None ports: - name: http-metrics port: 10252 targetPort: 10252 protocol: TCP --- apiVersion: v1 kind: Service metadata: namespace: kube-system name: kube-scheduler-collectorforkubernetes-discovery labels: k8s-app: kube-scheduler spec: selector: k8s-app: kube-scheduler type: ClusterIP clusterIP: None ports: - name: http-metrics port: 10251 targetPort: 10251 protocol: TCP --- apiVersion: v1 kind: ConfigMap metadata: name: collectorforkubernetes namespace: collectorforkubernetes labels: app: collectorforkubernetes data: 001-general.conf: | # The general configuration is used for all deployments # # Run collector with the flag -conf and specify location of the configuration files. # # You can override all the values using environment variables with the format like # COLLECTOR__<ANYNAME>=<section>__<key>=<value> # As an example you can set dataPath in [general] section as # COLLECTOR__DATAPATH=general__dataPath=C:\\some\\path\\data.db # This parameter can be configured using -env-override, set it to empty string to disable this feature [general] # Review EULA https://www.outcoldsolutions.com/docs/license-agreement/ # and accept EULA by changing the value to *true* acceptEULA = false # Location for the database # Collector stores positions of the files and internal state dataPath = ./data/ # log level (accepted values are trace, debug, info, warn, error, fatal) logLevel = info # http server gives access to two endpoints # /healthz # /metrics httpServerBinding = # telemetry report endpoint, set it to empty string to disable telemetry telemetryEndpoint = https://license.outcold.solutions/telemetry/ # license check endpoint licenseEndpoint = https://license.outcold.solutions/license/ # license server through proxy licenseServerProxyUrl = # license key license = # Node name is used by default as hostname # use this configuration to override hostname = # Include custom fields to attach to every event, in example below every event sent to Splunk will hav # indexed field my_environment=dev. Fields names should match to ^[a-z][_a-z0-9]*$ # Better way to configure that is to specify labels for Kubernetes Nodes. # ; fields.my_environment = dev # connection to kubernetes api [general.kubernetes] # name of openshift node (required, by default is configured with environment variables for Pod) nodeName = tokenPath = /var/run/secrets/kubernetes.io/serviceaccount/token certPath = /var/run/secrets/kubernetes.io/serviceaccount/ca.crt # read timeouts timeout = 5s # In case if pod metadata was not retrievied. how often collector should retry to reload the pod metadata metadataFetchRetry = 5s # In case if event is recent, how long pipeline should wait for the metadata to be available in Kubernetes API metadataFetchWait = 30s # In case if collector does not see new events for specific container and with the last metadata refresh # We have not found this container - fow how long we should keep this metadata in cache. metadataTTL = 5m # Splunk output [output.splunk] # Splunk HTTP Event Collector url (required) url = # Splunk HTTP Event Collector Token (required) token = # Allow invalid SSL server certificate insecure = false # Path to CA cerificate caPath = # CA Name to verify caName = # Events are batched with the maximum size set by batchSize and staying in pipeline for not longer # than set by frequency frequency = 5s batchSize = 768K # Splunk through proxy proxyUrl = # Splunk acknowledgement url (.../services/collector/ack) ackUrl = # Enable index acknowledgment ackEnabled = false # Index acknowledgment timeout ackTimeout = 3m # Timeout specifies a time limit for requests made by collector. # The timeout includes connection time, any # redirects, and reading the response body. timeout = 30s 002-daemonset.conf: | # DaemonSet configuration is used for Nodes and Masters. # Connection to the docker host [general.docker] # url for docker API, only unix socket is supported url = unix:///rootfs/var/run/docker.sock # path to docker root folder (can fallback to use folder structure to read docker metadata) dockerRootFolder = /rootfs/var/lib/docker/ # In case if pod metadata was not retrievied. how often collector should retry to reload the pod metadata metadataFetchRetry = 1s # In case if event is recent, how long pipeline should wait for the metadata to be available in Kubernetes API metadataFetchWait = 5s # In case if collector does not see new events for specific container and with the last metadata refresh # We have not found this container - fow how long we should keep this metadata in cache. metadataTTL = 5m # cgroup input [input.system_stats] # disable system level stats disabled = false # cgroups fs location pathCgroups = /rootfs/sys/fs/cgroup # proc location pathProc = /rootfs/proc # how often to collect cgroup stats statsInterval = 30s # override type type = kubernetes_stats # specify Splunk index index = # proc input [input.proc_stats] # disable proc level stats disabled = false # proc location pathProc = /rootfs/proc # how often to collect proc stats statsInterval = 30s # override type type = kubernetes_proc_stats # specify Splunk index index = # Container Log files [input.files] # disable container logs monitoring disabled = false # root location of docker files path = /rootfs/var/lib/docker/containers/ # glob matching pattern for log files glob = */*-json.log* # files are read using polling schema, when reach the EOF how often to check if files got updated pollingInterval = 250ms # how often to look for the new files under logs path walkingInterval = 5s # include verbose fields in events (file offset) verboseFields = false # override type type = kubernetes_logs # specify Splunk index index = # Host logs. Input syslog(.\d+)? files [input.files::syslog] # disable host level logs disabled = false # root location of docker files path = /rootfs/var/log/ # regex matching pattern match = ^(syslog|messages)(.\d+)?$ # limit search only on one level recursive = false # files are read using polling schema, when reach the EOF how often to check if files got updated pollingInterval = 250ms # how often o look for the new files under logs path walkingInterval = 5s # include verbose fields in events (file offset) verboseFields = false # override type type = kubernetes_host_logs # specify Splunk index index = # field extraction extraction = ^(?P<timestamp>[A-Za-z]+\s+\d+\s\d+:\d+:\d+)\s(?P<syslog_hostname>[^\s]+)\s(?P<syslog_component>[^:\[]+)(\[(?P<syslog_pid>\d+)\])?: (.+)$ # timestamp field timestampField = timestamp # format for timestamp # the layout defines the format by showing how the reference time, defined to be `Mon Jan 2 15:04:05 -0700 MST 2006` timestampFormat = Jan 2 15:04:05 # Adjust date, if month/day aren't set in format timestampSetMonth = false timestampSetDay = false # timestamp location (if not defined by format) timestampLocation = Local # Host logs. Input all *.log(.\d+)? files [input.files::logs] # disable host level logs disabled = false # root location of docker files path = /rootfs/var/log/ # regex matching pattern match = ^[\w]+\.log(.\d+)?$ # files are read using polling schema, when reach the EOF how often to check if files got updated pollingInterval = 250ms # how often o look for the new files under logs path walkingInterval = 5s # include verbose fields in events (file offset) verboseFields = false # override type type = kubernetes_host_logs # specify Splunk index index = # field extraction extraction = # timestamp field timestampField = # format for timestamp # the layout defines the format by showing how the reference time, defined to be `Mon Jan 2 15:04:05 -0700 MST 2006` timestampFormat = # timestamp location (if not defined by format) timestampLocation = # Pipe to join events (container logs only) [pipe.join] # disable joining event disabled = false # Maximum interval of messages in pipeline maxInterval = 100ms # Maximum time to wait for the messages in pipeline maxWait = 1s # Maximum message size maxSize = 100K # Default pattern to indicate new message (should start not from space) patternRegex = ^[^\s] # Kube API Server has trace messages with multi line events [pipe.join::kube-apiserver] disabled = false matchRegex.kubernetes_container_image = ^gcr.io/google_containers/kube-apiserver-.*$ matchRegex.docker_stream = stderr patternRegex = ^[IWEF]\d{4}\s\d{2}:\d{2}:\d{2}.\d{6}\s # Define special event join patterns for matched events # Section consist of [pipe.join::<name>] # [pipe.join::my_app] ## Set match pattern for the fields #; matchRegex.docker_container_image = my_app #; matchRegex.docker_stream = stdout ## All events start from '[<digits>' #; patternRegex = ^\[\d+ [input.prometheus::kubelet] # disable prometheus kubelet metrics disabled = false # override type type = prometheus # specify Splunk index index = # override host (environment variables are supported, by default Kubernetes node name is used) host = ${KUBERNETES_NODENAME} # override source source = kubelet # how often to collect prometheus metrics interval = 60s # Prometheus endpoint, multiple values can be specified, collector tries them in order till finding the first # working endpoint. # At first trying to get it through proxy endpoint.1proxy = https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT}/api/v1/nodes/${KUBERNETES_NODENAME}/proxy/metrics # In case if cannot get it through proxy, trying localhost endpoint.2http = http://127.0.0.1:10255/metrics # token for "Authorization: Bearer $(cat tokenPath)" tokenPath = /var/run/secrets/kubernetes.io/serviceaccount/token # server certificate for certificate validation certPath = /var/run/secrets/kubernetes.io/serviceaccount/ca.crt # client certificate for authentication clientCertPath = # Allow invalid SSL server certificate insecure = true # include metrics help with the events includeHelp = false 003-daemonset-master.conf: | [input.prometheus::kubernetes-api] # disable prometheus kubernetes-api metrics disabled = false # override type type = prometheus # specify Splunk index index = # override host (environment variables are supported, by default Kubernetes node name is used) host = ${KUBERNETES_NODENAME} # override source source = kubernetes-api # how often to collect prometheus metrics interval = 60s # prometheus endpoint # at first trying to get it from localhost (avoiding load balancer, if multiple api servers) endpoint.1localhost = https://127.0.0.1:6443/metrics # as fallback using proxy endpoint.2kubeapi = https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT}/metrics # token for "Authorization: Bearer $(cat tokenPath)" tokenPath = /var/run/secrets/kubernetes.io/serviceaccount/token # server certificate for certificate validation certPath = /var/run/secrets/kubernetes.io/serviceaccount/ca.crt # client certificate for authentication clientCertPath = # Allow invalid SSL server certificate insecure = true # include metrics help with the events includeHelp = false # This configuration works if scheduled is bind to the localhost:10251 [input.prometheus::scheduler] # disable prometheus scheduler metrics disabled = false # override type type = prometheus # specify Splunk index index = # override host host = ${KUBERNETES_NODENAME} # override source source = scheduler # how often to collect prometheus metrics interval = 60s # prometheus endpoint endpoint = http://127.0.0.1:10251/metrics # token for "Authorization: Bearer $(cat tokenPath)" tokenPath = # server certificate for certificate validation certPath = # client certificate for authentication clientCertPath = # Allow invalid SSL server certificate insecure = true # include metrics help with the events includeHelp = false # This configuration works if controller-manager is bind to the localhost:10252 [input.prometheus::controller-manager] # disable prometheus controller-manager metrics disabled = false # override type type = prometheus # specify Splunk index index = # override host host = ${KUBERNETES_NODENAME} # override source source = controller-manager # how often to collect prometheus metrics interval = 60s # prometheus endpoint endpoint = http://127.0.0.1:10252/metrics # token for "Authorization: Bearer $(cat tokenPath)" tokenPath = # server certificate for certificate validation certPath = # client certificate for authentication clientCertPath = # Allow invalid SSL server certificate insecure = false # include metrics help with the events includeHelp = false [input.prometheus::etcd] # disable prometheus etcd metrics disabled = false # override type type = prometheus # specify Splunk index index = # override host host = ${KUBERNETES_NODENAME} # override source source = etcd # how often to collect prometheus metricd interval = 36s # prometheus endpoint endpoint.http = http://:2379/metrics endpoint.https = https://:2379/metrics # token for "Authorization: Bearer $(cat tokenPath)" tokenPath = # server certificate for certificate validation certPath = /rootfs/etc/kubernetes/pki/etcd/ca.crt # client certificate for authentication clientCertPath = /rootfs/etc/kubernetes/pki/apiserver-etcd-client.crt clientKeyPath = /rootfs/etc/kubernetes/pki/apiserver-etcd-client.key # Allow invalid SSL server certificate insecure = true # include metrics help with the events includeHelp = false 004-addon.conf: | [general] # addons can be run in parallel with agents addon = true [input.kubernetes_events] # disable host level logs disabled = false # override type type = kubernetes_events # specify Splunk index index = # Set the timeout for how long request to watch events going to hang reading. eventsWatchTimeout = 30m # Ignore events last seen later that this duration. eventsTTL = 12h ; # Example on how to get scheduler metrics with endpoint discovery ; [input.prometheus::scheduler] ; # disable prometheus scheduler ; disabled = false ; # override type ; type = prometheus ; # specify Splunk index ; index = ; # override host (using discovery from endpoint) ; host = ; # override source ; source = scheduler ; # how often to collect prometheus metrics ; interval = 60s ; # prometheus endpoint ; endpoint = endpoint-http://kube-scheduler-collectorforkubernetes-discovery:10251/metrics ; # token for "Authorization: Bearer $(cat tokenPath)" ; tokenPath = ; # server certificate for certificate validation ; certPath = ; # client certificate for authentication ; clientCertPath = ; # Allow invalid SSL server certificate ; insecure = false ; # include metrics help with the events ; includeHelp = true ; # Example on how to get controller-manager metrics with endpoint discovery ; [input.prometheus::controller-manager] ; # disable prometheus controller-manager ; disabled = false ; # override type ; type = prometheus ; # specify Splunk index ; index = ; # override host (using discovery from endpoint) ; host = ; # override source ; source = controller-manager ; # how often to collect prometheus metrics ; interval = 60s ; # prometheus endpoint ; endpoint = endpoint-http://kube-controller-manager-collectorforkubernetes-discovery:10252/metrics ; # token for "Authorization: Bearer $(cat tokenPath)" ; tokenPath = ; # server certificate for certificate validation ; certPath = ; # client certificate for authentication ; clientCertPath = ; # Allow invalid SSL server certificate ; insecure = false ; # include metrics help with the events ; includeHelp = true --- apiVersion: extensions/v1beta1 kind: DaemonSet metadata: name: collectorforkubernetes namespace: collectorforkubernetes labels: app: collectorforkubernetes spec: # Default updateStrategy is OnDelete. For collector RollingUpdate is suitable # When you update configuration updateStrategy: type: RollingUpdate template: metadata: name: collectorforkubernetes labels: daemon: collectorforkubernetes spec: hostNetwork: true serviceAccountName: collectorforkubernetes # We run this DaemonSet only for Non-Masters affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: node-role.kubernetes.io/master operator: DoesNotExist tolerations: - operator: "Exists" effect: "NoSchedule" - operator: "Exists" effect: "NoExecute" containers: - name: collectorforkubernetes # Collector version image: outcoldsolutions/collectorforkubernetes:4.0.174.180815 securityContext: runAsUser: 0 privileged: true # Define your resources if you need. Defaults should be fine for most. # You can lower or increase based on your hosts. resources: limits: cpu: 2 memory: 512Mi requests: cpu: 100m memory: 128Mi env: - name: KUBERNETES_NODENAME valueFrom: fieldRef: fieldPath: spec.nodeName volumeMounts: # We store state in /data folder (file positions) - name: collectorforkubernetes-state mountPath: /data # Configuration file deployed with ConfigMap - name: collectorforkubernetes-config mountPath: /config/ readOnly: true # Cgroup filesystem to get metrics - name: cgroup mountPath: /rootfs/sys/fs/cgroup readOnly: true # Proc filesystem to get metrics - name: proc mountPath: /rootfs/proc readOnly: true # Docker logs (JSON files) - name: docker-logs mountPath: /rootfs/var/lib/docker/containers/ readOnly: true # Docker socket - name: docker-unix-socket mountPath: /rootfs/var/run/docker.sock readOnly: true # Host logs - name: logs mountPath: /rootfs/var/log/ readOnly: true volumes: # We store state directly on host, change this location, if # your persistent volume is somewhere else - name: collectorforkubernetes-state hostPath: path: /var/lib/collectorforkubernetes/data/ # Location of docker logs - name: docker-logs hostPath: path: /var/lib/docker/containers/ # Location of cgroups file system - name: cgroup hostPath: path: /sys/fs/cgroup # Location of proc file system - name: proc hostPath: path: /proc # Host logs location - name: logs hostPath: path: /var/log # Docker socket - name: docker-unix-socket hostPath: path: /var/run/docker.sock # configuration from ConfigMap - name: collectorforkubernetes-config configMap: name: collectorforkubernetes items: - key: 001-general.conf path: 001-general.conf - key: 002-daemonset.conf path: 002-daemonset.conf --- apiVersion: extensions/v1beta1 kind: DaemonSet metadata: name: collectorforkubernetes-master namespace: collectorforkubernetes labels: app: collectorforkubernetes spec: updateStrategy: type: RollingUpdate template: metadata: name: collectorforkubernetes-master labels: daemon: collectorforkubernetes spec: hostNetwork: true serviceAccountName: collectorforkubernetes affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: node-role.kubernetes.io/master operator: Exists tolerations: - operator: "Exists" effect: "NoSchedule" - operator: "Exists" effect: "NoExecute" containers: - name: collectorforkubernetes image: outcoldsolutions/collectorforkubernetes:4.0.174.180815 securityContext: runAsUser: 0 privileged: true resources: limits: cpu: 2 memory: 512Mi requests: cpu: 100m memory: 128Mi env: - name: KUBERNETES_NODENAME valueFrom: fieldRef: fieldPath: spec.nodeName volumeMounts: - name: collectorforkubernetes-state mountPath: /data - name: collectorforkubernetes-config mountPath: /config/ readOnly: true - name: cgroup mountPath: /rootfs/sys/fs/cgroup readOnly: true - name: proc mountPath: /rootfs/proc readOnly: true - name: docker-logs mountPath: /rootfs/var/lib/docker/containers/ readOnly: true - name: docker-unix-socket mountPath: /rootfs/var/run/docker.sock readOnly: true - name: logs mountPath: /rootfs/var/log/ readOnly: true - name: k8s-certs mountPath: /rootfs/etc/kubernetes/pki/ readOnly: true volumes: - name: collectorforkubernetes-state hostPath: path: /var/lib/collectorforkubernetes/data/ - name: docker-logs hostPath: path: /var/lib/docker/containers/ - name: cgroup hostPath: path: /sys/fs/cgroup - name: proc hostPath: path: /proc - name: logs hostPath: path: /var/log - name: docker-unix-socket hostPath: path: /var/run/docker.sock - name: k8s-certs hostPath: path: /etc/kubernetes/pki/ - name: collectorforkubernetes-config configMap: name: collectorforkubernetes items: - key: 001-general.conf path: 001-general.conf - key: 002-daemonset.conf path: 002-daemonset.conf - key: 003-daemonset-master.conf path: 003-daemonset-master.conf --- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: collectorforkubernetes-addon namespace: collectorforkubernetes labels: app: collectorforkubernetes spec: replicas: 1 template: metadata: name: collectorforkubernetes-addon labels: daemon: collectorforkubernetes spec: serviceAccountName: collectorforkubernetes containers: - name: collectorforkubernetes image: outcoldsolutions/collectorforkubernetes:4.0.174.180815 resources: limits: cpu: 500m memory: 256Mi requests: cpu: 50m memory: 32Mi env: - name: KUBERNETES_NODENAME valueFrom: fieldRef: fieldPath: spec.nodeName volumeMounts: - name: collectorforkubernetes-state mountPath: /data - name: collectorforkubernetes-config mountPath: /config/ readOnly: true volumes: - name: collectorforkubernetes-state hostPath: path: /var/lib/collectorforkubernetes/data/ - name: collectorforkubernetes-config configMap: name: collectorforkubernetes items: - key: 001-general.conf path: 001-general.conf - key: 004-addon.conf path: 004-addon.conf |