blob: abaf926f7a1851e86cca5f1497c6a52d101bf8c0 [file] [log] [blame]
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +00001# Copyright (c) 2023 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15_vector_helm_values:
16 role: Agent
17 image:
Mohammed Naser31171f42023-03-19 00:10:46 +000018 repository: "{{ atmosphere_images['vector'] | vexxhost.kubernetes.docker_image('name') }}"
19 tag: "{{ atmosphere_images['vector'] | vexxhost.kubernetes.docker_image('tag') }}"
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +000020 service:
21 enabled: false
22 customConfig:
23 data_dir: /vector-data-dir
24 sources:
25 journald:
26 type: journald
27 kubernetes_logs:
28 type: kubernetes_logs
29 sinks:
30 loki_kubernetes_logs:
vexxhost-bot7ca060a2024-10-06 16:09:28 -040031 out_of_order_action: accept
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +000032 type: loki
33 endpoint: http://loki-gateway
34 inputs: [kubernetes_logs]
35 encoding:
36 codec: text
37 labels:
38 source_type: '{% raw %}{{ print "{{ source_type }}" }}{% endraw %}'
39 node: '{% raw %}{{ print "{{ kubernetes.pod_node_name }}" }}{% endraw %}'
40 pod_namespace: '{% raw %}{{ print "{{ kubernetes.pod_namespace }}" }}{% endraw %}'
41 pod_uid: '{% raw %}{{ print "{{ kubernetes.pod_uid }}" }}{% endraw %}'
42 pod_name: '{% raw %}{{ print "{{ kubernetes.pod_name }}" }}{% endraw %}'
43 pod_ip: '{% raw %}{{ print "{{ kubernetes.pod_ip }}" }}{% endraw %}'
44 pod_label_*: '{% raw %}{{ print "{{ kubernetes.pod_labels }}" }}{% endraw %}'
45 container_name: '{% raw %}{{ print "{{ kubernetes.container_name }}" }}{% endraw %}'
46 container_image: '{% raw %}{{ print "{{ kubernetes.container_image }}" }}{% endraw %}'
47 stream: '{% raw %}{{ print "{{ kubernetes.stream }}" }}{% endraw %}'
48 loki_journald:
vexxhost-bot7ca060a2024-10-06 16:09:28 -040049 out_of_order_action: accept
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +000050 type: loki
51 endpoint: http://loki-gateway
52 inputs: [journald]
53 encoding:
54 codec: text
55 labels:
56 source_type: '{% raw %}{{ print "{{ source_type }}" }}{% endraw %}'
57 node: '{% raw %}{{ print "{{ host }}" }}{% endraw %}'
58 unit: '{% raw %}{{ print "{{ _SYSTEMD_UNIT }}" }}{% endraw %}'
59 stream: '{% raw %}{{ print "{{ _TRANSPORT }}" }}{% endraw %}'
60 extraVolumes:
61 - name: etc-machineid
62 hostPath:
63 path: /etc/machine-id
64 type: File
65 extraVolumeMounts:
66 - name: etc-machineid
67 mountPath: /etc/machine-id
68 readOnly: true