Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hybrid EKS cluster with windows and linux worker nodes #351

Closed
vinitmasaun opened this issue Jan 11, 2022 · 7 comments
Closed

Hybrid EKS cluster with windows and linux worker nodes #351

vinitmasaun opened this issue Jan 11, 2022 · 7 comments

Comments

@vinitmasaun
Copy link

Hello,

We have an eks cluster which includes both windows and linux worker nodes. I have the following questions:

  1. Can I enable both Fluentd log engine for Linux worker nodes and Otel log engine for windows worker nodes? If this is not supported, how can I index logs from both linux and windows worker nodes in the same EKS cluster?
  2. I tried deploying the 0.41.1 version of the chart with the following values.yaml overrides:

logsEngine: otel
cloudProvider: "aws"
distribution: "eks"
autodetect:
prometheus: false
istio: false
agent:
enabled: true
securityContext:
windowsOptions:
runAsUserName: "ContainerUser"
fluentd:
securityContext:
runAsUser: 0
clusterReceiver:
enabled: true
logsCollection:
containers:
enabled: true
checkpointPath: "/var/addon/splunk/otel_pos"
image:
fluentd:
repository: <private_cache_repo>/splunk/fluentd-hec
otelcol:
repository: <private_cache_repo>/signalfx/splunk-otel-collector-windows
isWindows: true
nodeSelector:
kubernetes.io/os: windows

With the above overrides, The Splunk-otel container on windows fails to start with the following error:

failed to try resolving symlinks in path "\var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log": CreateFile \var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log: The system cannot find the file specified.
failed to try resolving symlinks in path "\var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log": CreateFile \var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log: The system cannot find the file specified.
failed to try resolving symlinks in path "\var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log": CreateFile \var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log: The system cannot find the file specified.
failed to try resolving symlinks in path "\var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log": CreateFile \var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log: The system cannot find the file specified.
failed to try resolving symlinks in path "\var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log": CreateFile \var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log: The system cannot find the file specified.
failed to try resolving symlinks in path "\var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log": CreateFile \var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log: The system cannot find the file specified.
failed to try resolving symlinks in path "\var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log": CreateFile \var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log: The system cannot find the file specified.
failed to try resolving symlinks in path "\var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log": CreateFile \var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log: The system cannot find the file specified.
failed to try resolving symlinks in path "\var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log": CreateFile \var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log: The system cannot find the file specified.
failed to try resolving symlinks in path "\var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log": CreateFile \var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log: The system cannot find the file specified.
failed to try resolving symlinks in path "\var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log": CreateFile \var\log\pods\observability_splunk-logging-splunk-otel-collector-agent-hwwjb_c71ea1ae-4066-4d0b-80f5-0bfec70478e3\copy-old-checkpoint\8.log: The system cannot find the file specified.

@matthewmodestino
Copy link

matthewmodestino commented Jan 11, 2022

Hi @vinitmasaun! I believe you need to have 2 deployments. One with isWindows: true and one with isWindows: false. Also, make sure to set clusterReceiver.enabled: false for one of the deployments. I would leave out fluentd for the otel native logging, personally.

@dmitryax
Copy link
Contributor

@matthewmodestino provided the correct way to deploy the chart in the mixed environment, but it'll work for metrics and traces only. We don't support collection logs from Windows nodes at this point, this is coming soon.

@dmitryax
Copy link
Contributor

We have docs for Windows here (should be probably moved to docs/advanced-configuration.md): https://github.com/signalfx/splunk-otel-collector-chart/blob/main/examples/README.md#deploy-for-k8s-cluster-with-windows-worker-node

@vinitmasaun
Copy link
Author

vinitmasaun commented Jan 11, 2022 via email

@dmitryax
Copy link
Contributor

@vinitmasaun it's roughly 1 month away

@vinitmasaun
Copy link
Author

@vinitmasaun it's roughly 1 month away

thank you! Anxiously looking forward to it!

@dmitryax
Copy link
Contributor

Hey, the Windows logs collection support is added in this PR and will be available in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants