k8s agent support for windows nodes #909
Open
+137
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since we run a mix OS cluster on AKS (linux and windows nodes) We need the Scalyr agent to collect logs from all nodes.
Installing the scalyr agent for k8s via helm, only provides support for linux nodes, and fails trying to run on windows nodes. Adding the
nodeSelector.kubernetes\\.io/os: linux
option restricts it to linux nodes only.For windows nodes, I've essentially just made another DaemonSet restricted to windows nodes only. I've built a docker image, using
servercore:ltsc2019
, installed the latest python for windows, and all other dependencies. I've had to make a small change to the python code, because it is trying to check for a running service on windows, which is not the case here.This is not meant to be merged, it is simply an example of how to get a windows node with the pod/container logs mounted in, so scalyr agent can upload them.
This is as far as I've got. The agent runs, it can communicate with the kubernetes API, but unfortunately atm it only uploads its own logs. If anyone has any ideas as to what is missing, please do let me know.
If you want to try it out, make sure you first install the scalyr helm chart, as I reuse the serviceaccount. Also, I've named the image "winscaler", make sure to change this to whatever you have built.