Created
April 8, 2022 21:00
-
-
Save Nicarim/2a1f98d19cd4b4294400a69ea825f86f to your computer and use it in GitHub Desktop.
minimal poc for #12042 bug in vectordotdev/vector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: vector | |
| --- | |
| apiVersion: v1 | |
| data: | |
| vector.yaml: | | |
| healthchecks: | |
| enabled: true | |
| require_healthy: true | |
| data_dir: "/vector-data-dir" | |
| api: | |
| enabled: true | |
| address: 0.0.0.0:8686 | |
| playground: true | |
| sinks: | |
| stackdriver: | |
| type: blackhole | |
| inputs: | |
| - entry_filter_supported.dropped | |
| kind: ConfigMap | |
| metadata: | |
| name: vector-custom-root-cfg | |
| namespace: vector | |
| --- | |
| apiVersion: v1 | |
| data: | |
| kubernetes_logs.yaml: 'type: kubernetes_logs' | |
| kind: ConfigMap | |
| metadata: | |
| name: vector-custom-sources-cfg | |
| namespace: vector | |
| --- | |
| apiVersion: v1 | |
| data: | |
| entry_filter_supported.yaml: |- | |
| type: remap | |
| inputs: | |
| - kubernetes_logs | |
| source: |- | |
| supported_containers = ["minimal-poc"] | |
| reroute_dropped: true | |
| kind: ConfigMap | |
| metadata: | |
| name: vector-custom-transforms-cfg | |
| namespace: vector | |
| --- | |
| apiVersion: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| labels: | |
| app.kubernetes.io/managed-by: Terraform | |
| app.kubernetes.io/name: vector-agent | |
| name: vector-agent | |
| namespace: vector | |
| spec: | |
| minReadySeconds: 1 | |
| revisionHistoryLimit: 10 | |
| selector: | |
| matchLabels: | |
| app.kubernetes.io/instance: vector | |
| app.kubernetes.io/name: vector-agent | |
| template: | |
| metadata: | |
| annotations: | |
| tfConfigVersion: 2215e1f87d6621917bac7513051ded5a030a7af1 | |
| creationTimestamp: null | |
| labels: | |
| app.kubernetes.io/instance: vector | |
| app.kubernetes.io/name: vector-agent | |
| vector.dev/exclude: "true" | |
| spec: | |
| automountServiceAccountToken: true | |
| containers: | |
| - args: | |
| - --config-dir | |
| - /etc/vector | |
| env: | |
| - name: VECTOR_SELF_NODE_NAME | |
| valueFrom: | |
| fieldRef: | |
| apiVersion: v1 | |
| fieldPath: spec.nodeName | |
| - name: VECTOR_SELF_POD_NAME | |
| valueFrom: | |
| fieldRef: | |
| apiVersion: v1 | |
| fieldPath: metadata.name | |
| - name: VECTOR_SELF_POD_NAMESPACE | |
| valueFrom: | |
| fieldRef: | |
| apiVersion: v1 | |
| fieldPath: metadata.namespace | |
| - name: VECTOR_WATCH_CONFIG | |
| value: "true" | |
| - name: PROCFS_ROOT | |
| value: /host/proc | |
| - name: SYSFS_ROOT | |
| value: /host/sys | |
| image: timberio/vector:0.18.1-debian | |
| # image: timberio/vector:0.19.3-debian doesn't work | |
| imagePullPolicy: IfNotPresent | |
| name: vector | |
| ports: | |
| - containerPort: 9090 | |
| name: metrics | |
| protocol: TCP | |
| resources: {} | |
| terminationMessagePath: /dev/termination-log | |
| terminationMessagePolicy: File | |
| volumeMounts: | |
| - mountPath: /etc/_vector | |
| mountPropagation: None | |
| name: config-hardcopy | |
| readOnly: true | |
| - mountPath: /var/log/ | |
| mountPropagation: None | |
| name: var-log | |
| readOnly: true | |
| - mountPath: /var/lib | |
| mountPropagation: None | |
| name: var-lib | |
| readOnly: true | |
| - mountPath: /vector-data-dir | |
| mountPropagation: None | |
| name: data-dir | |
| - mountPath: /host/proc | |
| mountPropagation: None | |
| name: procfs | |
| readOnly: true | |
| - mountPath: /host/sys | |
| mountPropagation: None | |
| name: sysfs | |
| readOnly: true | |
| - mountPath: /etc/vector | |
| mountPropagation: None | |
| name: root-cfg | |
| readOnly: true | |
| - mountPath: /etc/vector/sources | |
| mountPropagation: None | |
| name: sources-cfg | |
| readOnly: true | |
| - mountPath: /etc/vector/transforms | |
| mountPropagation: None | |
| name: transforms-cfg | |
| readOnly: true | |
| tolerations: | |
| - effect: NoSchedule | |
| key: node-role.kubernetes.io/master | |
| operator: Equal | |
| volumes: | |
| - hostPath: | |
| path: /var/log/ | |
| type: "" | |
| name: var-log | |
| - hostPath: | |
| path: /var/lib/ | |
| type: "" | |
| name: var-lib | |
| - hostPath: | |
| path: /var/lib/vector/ | |
| type: "" | |
| name: data-dir | |
| - hostPath: | |
| path: /proc | |
| type: "" | |
| name: procfs | |
| - hostPath: | |
| path: /sys | |
| type: "" | |
| name: sysfs | |
| - configMap: | |
| defaultMode: 420 | |
| name: vector-custom-root-cfg | |
| optional: false | |
| name: root-cfg | |
| - configMap: | |
| defaultMode: 420 | |
| name: vector-custom-transforms-cfg | |
| optional: false | |
| name: transforms-cfg | |
| - configMap: | |
| defaultMode: 420 | |
| name: vector-custom-sources-cfg | |
| optional: false | |
| name: sources-cfg | |
| - emptyDir: {} | |
| name: config-hardcopy | |
| updateStrategy: | |
| rollingUpdate: | |
| maxSurge: 0 | |
| maxUnavailable: 1 | |
| type: RollingUpdate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment