-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from janeczku/dev
Merge Dev branch
- Loading branch information
Showing
7 changed files
with
48 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
FROM alpine:3.12.0 | ||
|
||
ENV ENTRYKIT_VERSION=0.4.0 \ | ||
ENTRYKIT_BASEURL=https://github.com/progrium/entrykit/releases/download \ | ||
KEEPALIVED_VERSION=2.0.20-r0 | ||
ENV GOMPLATE_VERSION=v3.7.0 \ | ||
GOMPLATE_BASEURL=https://github.com/hairyhenderson/gomplate/releases/download \ | ||
DUMBINIT_VERSION=v1.2.2 \ | ||
DUMBINIT_BASEURL=https://github.com/Yelp/dumb-init/releases/download/ \ | ||
KEEPALIVED_VERSION=2.0.20-r0 | ||
ARG TARGETARCH | ||
|
||
RUN apk add --no-cache ca-certificates bash coreutils curl net-tools jq keepalived=${KEEPALIVED_VERSION} \ | ||
# Install keepalived | ||
RUN apk add --no-cache file ca-certificates bash coreutils curl net-tools jq keepalived=${KEEPALIVED_VERSION} \ | ||
&& rm -f /etc/keepalived/keepalived.conf \ | ||
&& addgroup -S keepalived_script && adduser -D -S -G keepalived_script keepalived_script | ||
|
||
RUN curl -sL ${ENTRYKIT_BASEURL}/v${ENTRYKIT_VERSION}/entrykit_${ENTRYKIT_VERSION}_Linux_x86_64.tgz | tar zx \ | ||
&& mv entrykit /bin/entrykit \ | ||
&& chmod +x /bin/entrykit \ | ||
&& entrykit --symlink | ||
|
||
# Install gomplate | ||
RUN curl -sL ${GOMPLATE_BASEURL}/${GOMPLATE_VERSION}/gomplate_linux-${TARGETARCH} --output /bin/gomplate \ | ||
&& chmod +x /bin/gomplate | ||
|
||
# Install dumb-init | ||
RUN curl -sL ${DUMBINIT_BASEURL}/${DUMBINIT_VERSION}/dumb-init_1.2.2_${TARGETARCH} --output /bin/dumb-init \ | ||
&& chmod +x /bin/dumb-init | ||
|
||
COPY keepalived.conf.tmpl /etc/keepalived/keepalived.conf.tmpl | ||
COPY vrrp_check.sh /opt/bin/vrrp_check.sh | ||
|
||
ENTRYPOINT [ \ | ||
"render", "/etc/keepalived/keepalived.conf", "--", \ | ||
"switch", \ | ||
"shell=/bin/sh", \ | ||
"debug=/usr/sbin/keepalived -l -D -n -f /etc/keepalived/keepalived.conf", "--", \ | ||
"/usr/sbin/keepalived", "-l", "-n", "-f", "/etc/keepalived/keepalived.conf" ] | ||
ENTRYPOINT ["/bin/dumb-init", "--", \ | ||
"/bin/gomplate", "-f", "/etc/keepalived/keepalived.conf.tmpl", "-o", "/etc/keepalived/keepalived.conf", "--" \ | ||
] | ||
|
||
CMD [ "/usr/sbin/keepalived", "-l", "-n", "-f", "/etc/keepalived/keepalived.conf" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
image: | ||
repository: janeczku/keepalived-ingress-vip | ||
tag: v0.1.5 | ||
tag: v0.1.6 | ||
pullPolicy: IfNotPresent | ||
|
||
keepalived: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters