Skip to content

Commit

Permalink
Merge pull request #89 from rfredette/ipfailover-iptables
Browse files Browse the repository at this point in the history
Bug 1960035: Add iptables shims to ipfailover-keepalived image
  • Loading branch information
openshift-merge-robot committed Jun 2, 2021
2 parents bcab0f7 + ba386ee commit ad38e11
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ipfailover/keepalived/Dockerfile
Expand Up @@ -11,6 +11,13 @@ RUN INSTALL_PKGS="kmod keepalived iproute psmisc nmap-ncat net-tools ipset ipset
yum clean all
COPY . /var/lib/ipfailover/keepalived/

COPY iptables-scripts/iptables /usr/sbin/
COPY iptables-scripts/iptables-save /usr/sbin/
COPY iptables-scripts/iptables-restore /usr/sbin/
COPY iptables-scripts/ip6tables /usr/sbin/
COPY iptables-scripts/ip6tables-save /usr/sbin/
COPY iptables-scripts/ip6tables-restore /usr/sbin/

LABEL io.k8s.display-name="OpenShift IP Failover" \
io.k8s.description="This is a component of OpenShift and runs a clustered keepalived instance across multiple hosts to allow highly available IP addresses." \
io.openshift.tags="openshift,ha,ip,failover"
Expand Down
3 changes: 3 additions & 0 deletions ipfailover/keepalived/iptables-scripts/ip6tables
@@ -0,0 +1,3 @@
#!/bin/sh

exec chroot /host /usr/sbin/ip6tables "$@"
3 changes: 3 additions & 0 deletions ipfailover/keepalived/iptables-scripts/ip6tables-restore
@@ -0,0 +1,3 @@
#!/bin/sh

exec chroot /host /usr/sbin/ip6tables-restore "$@"
3 changes: 3 additions & 0 deletions ipfailover/keepalived/iptables-scripts/ip6tables-save
@@ -0,0 +1,3 @@
#!/bin/sh

exec chroot /host /usr/sbin/ip6tables-save "$@"
3 changes: 3 additions & 0 deletions ipfailover/keepalived/iptables-scripts/iptables
@@ -0,0 +1,3 @@
#!/bin/sh

exec chroot /host /usr/sbin/iptables "$@"
3 changes: 3 additions & 0 deletions ipfailover/keepalived/iptables-scripts/iptables-restore
@@ -0,0 +1,3 @@
#!/bin/sh

exec chroot /host /usr/sbin/iptables-restore "$@"
3 changes: 3 additions & 0 deletions ipfailover/keepalived/iptables-scripts/iptables-save
@@ -0,0 +1,3 @@
#!/bin/sh

exec chroot /host /usr/sbin/iptables-save "$@"

0 comments on commit ad38e11

Please sign in to comment.