Skip to content

Commit

Permalink
Use antrea-windows image for antrea-ovs container (antrea-io#5305)
Browse files Browse the repository at this point in the history
For antrea-io#4952

Signed-off-by: Kumar Atish <[email protected]>
  • Loading branch information
Atish-iaf authored Jul 28, 2023
1 parent a0c5d50 commit f457435
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion build/images/Dockerfile.build.windows
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@ COPY --from=antrea-build-windows /wins/wins.exe /k/antrea/utils/wins.exe
COPY --from=windows-ovs /Windows/System32/vcruntime140.dll /Windows/System32/
COPY --from=windows-ovs /Windows/System32/libeay32.dll /Windows/System32/
COPY --from=windows-ovs /Windows/System32/ssleay32.dll /Windows/System32/
COPY --from=windows-ovs /openvswitch/usr/bin /k/antrea/bin/

RUN mkdir C:\openvswitch
COPY --from=windows-ovs /openvswitch /openvswitch/
8 changes: 4 additions & 4 deletions build/yamls/antrea-windows-containerd-with-ovs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ data:
$ErrorActionPreference = "Stop"
$mountPath = $env:CONTAINER_SANDBOX_MOUNT_POINT
$mountPath = ($mountPath.Replace('\', '/')).TrimEnd('/')
$env:PATH = $env:PATH + ";$mountPath/Windows/System32;$mountPath/k/antrea/bin"
$env:PATH = $env:PATH + ";$mountPath/Windows/System32;$mountPath/k/antrea/bin;$mountPath/openvswitch/usr/bin;$mountPath/openvswitch/usr/sbin"
& antrea-agent --config=$mountPath/etc/antrea/antrea-agent.conf --logtostderr=false --log_dir=c:/var/log/antrea --alsologtostderr --log_file_max_size=100 --log_file_max_num=4 --v=0
Run-AntreaOVS-Containerd.ps1: |
$ErrorActionPreference = "Stop"
Expand Down Expand Up @@ -73,7 +73,7 @@ kind: ConfigMap
metadata:
labels:
app: antrea
name: antrea-agent-windows-b848hc8m8h
name: antrea-agent-windows-47gftkh2c5
namespace: kube-system
---
apiVersion: v1
Expand Down Expand Up @@ -315,7 +315,7 @@ spec:
- $env:CONTAINER_SANDBOX_MOUNT_POINT/var/lib/antrea-windows/Run-AntreaOVS-Containerd.ps1
command:
- powershell
image: antrea/windows-ovs:1809-3.0.5
image: antrea/antrea-windows:latest
imagePullPolicy: IfNotPresent
name: antrea-ovs
volumeMounts:
Expand Down Expand Up @@ -359,7 +359,7 @@ spec:
name: antrea-windows-config
- configMap:
defaultMode: 420
name: antrea-agent-windows-b848hc8m8h
name: antrea-agent-windows-47gftkh2c5
name: antrea-agent-windows
- hostPath:
path: /var/log/antrea/
Expand Down
6 changes: 3 additions & 3 deletions build/yamls/antrea-windows-containerd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ data:
$ErrorActionPreference = "Stop"
$mountPath = $env:CONTAINER_SANDBOX_MOUNT_POINT
$mountPath = ($mountPath.Replace('\', '/')).TrimEnd('/')
$env:PATH = $env:PATH + ";$mountPath/Windows/System32;$mountPath/k/antrea/bin"
$env:PATH = $env:PATH + ";$mountPath/Windows/System32;$mountPath/k/antrea/bin;$mountPath/openvswitch/usr/bin;$mountPath/openvswitch/usr/sbin"
& antrea-agent --config=$mountPath/etc/antrea/antrea-agent.conf --logtostderr=false --log_dir=c:/var/log/antrea --alsologtostderr --log_file_max_size=100 --log_file_max_num=4 --v=0
kind: ConfigMap
metadata:
labels:
app: antrea
name: antrea-agent-windows-c6tftd5ttg
name: antrea-agent-windows-75tg78f7k9
namespace: kube-system
---
apiVersion: v1
Expand Down Expand Up @@ -279,7 +279,7 @@ spec:
name: antrea-windows-config
- configMap:
defaultMode: 420
name: antrea-agent-windows-c6tftd5ttg
name: antrea-agent-windows-75tg78f7k9
name: antrea-agent-windows
- hostPath:
path: /var/log/antrea/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
exec:
command: ["powershell", "-file", "$env:CONTAINER_SANDBOX_MOUNT_POINT/var/lib/antrea-windows/VMSwitchExtension-AntreaAgent-Containerd.ps1", "-VMSwitchExtension", "enable"]
- name: antrea-ovs
image: antrea/windows-ovs:1809-3.0.5
image: antrea-windows
imagePullPolicy: IfNotPresent
args:
- -file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$ErrorActionPreference = "Stop"
$mountPath = $env:CONTAINER_SANDBOX_MOUNT_POINT
$mountPath = ($mountPath.Replace('\', '/')).TrimEnd('/')
$env:PATH = $env:PATH + ";$mountPath/Windows/System32;$mountPath/k/antrea/bin"
$env:PATH = $env:PATH + ";$mountPath/Windows/System32;$mountPath/k/antrea/bin;$mountPath/openvswitch/usr/bin;$mountPath/openvswitch/usr/sbin"
& antrea-agent --config=$mountPath/etc/antrea/antrea-agent.conf --logtostderr=false --log_dir=c:/var/log/antrea --alsologtostderr --log_file_max_size=100 --log_file_max_num=4 --v=0

0 comments on commit f457435

Please sign in to comment.