mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
build: Adds Windows kube-proxy image
Adds the KUBE_BUILD_WINDOWS option to make release-images and quick-release-images, which will allow it to build the a Windows kube-proxy image as well. That image can then be used with Windows Host Process Containers to start the kube-proxy service on Windows nodes.
This commit is contained in:
28
build/server-image/kube-proxy/Dockerfile_windows
Normal file
28
build/server-image/kube-proxy/Dockerfile_windows
Normal file
@@ -0,0 +1,28 @@
|
||||
# Copyright 2024 The Kubernetes Authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Dockerfile used for the server images.
|
||||
|
||||
# Note that the image doesn't really matter for Windows Host Process containers
|
||||
# # the files in the image are copied to C:\hpc (containerd 1.7+) on the host
|
||||
# # but the file system is the Host, NOT the container
|
||||
ARG BASEIMAGE
|
||||
ARG BINARY
|
||||
|
||||
FROM $BASEIMAGE
|
||||
|
||||
ENV PATH="C:\Windows\system32;C:\Windows;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;"
|
||||
COPY ${BINARY} /kube-proxy/${BINARY}
|
||||
|
||||
ENTRYPOINT ["c:/hpc/kube-proxy/kube-proxy.exe"]
|
||||
Reference in New Issue
Block a user