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.
This PR represent fluentd windows port
in order to run operator in heterogenous cluster (linux and windows nodes) one have to run two operator instances. One for linux and another for windows nodes.
Instructions
The easiest way to build linux and windows images is to have windows desktop (win 10) PC
Of course you'll need Docker Desktop installed https://docs.docker.com/desktop/windows/install/.
Docker Desktop should be running in WSL2 mode https://docs.docker.com/desktop/windows/wsl/
to be able to build linxu and windows images you need to install
Push linux image with
make push-image
Switch Docker Desktop to "Windows containers" mode. Build windows images (for each windows platform you want to support https://hub.docker.com/_/microsoft-windows-servercore)
NOTE: you need to change WIN_TAG for each iteration. For example: WIN_TAG := {ltsc2019, 1909, 2004, 20H2, ltsc2022}
Build base image for windows container with following command
NOTE: you need to build as many base images as many windows versions you want to support (changing WIN_TAG parameter. Possible values https://hub.docker.com/_/microsoft-windows-servercore)
Build operator image
NOTE: you need to build as many base images as many windows versions you want to support (changing WIN_TAG parameter. Possible values https://hub.docker.com/_/microsoft-windows-servercore)
Push each windows image with
make push-windows-image IMG_ARCH=amd64 IMG_OS=windows WIN_TAG=ltsc2019
After all use
make pushed-images
to view all pushed images for the current release versionPrepare multi-arch manifest
make docker-manifest
to create docker manifest and include all images for current releaseThe same needs to be done in order to support 'latest' tag:
You may check if all images are combined under single manifest on dockerhub.com site.
As an example: https://hub.docker.com/layers/168658076/maxsivkov/kube-fluentd-operator/latest/images/sha256-3da050dc7b041e9415a472e3e6c06c5835b65186aca8ac45d6b6952e2f12ad6a?context=repo