docker-keepalived-k8s/Dockerfile

17 lines
376 B
Docker
Raw Normal View History

FROM alpine:latest
RUN apk add --no-cache \
bash \
curl \
ipvsadm \
iproute2 \
keepalived \
&& addgroup -S keepalived_script \
&& adduser -S -s /sbin/nologin -G keepalived_script -H keepalived_script
2022-01-03 16:21:52 +00:00
COPY check_apiserver.sh /usr/lib/keepalived/scripts/chk_kube_apiserver.sh
2022-01-03 16:21:52 +00:00
COPY init.sh /
RUN chmod +x /init.sh
CMD ["/init.sh"]