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 COPY check_apiserver.sh /usr/lib/keepalived/scripts/chk_kube_apiserver.sh COPY init.sh / RUN chmod +x /init.sh CMD ["/init.sh"]