diff --git a/org/k8s/flannel-cni-plugin/Dockerfile.template b/org/k8s/flannel-cni-plugin/Dockerfile.template new file mode 100644 index 0000000..b033a46 --- /dev/null +++ b/org/k8s/flannel-cni-plugin/Dockerfile.template @@ -0,0 +1,7 @@ +FROM {{ registry }}{{ alt_image }}:{{ branch }} + +MAINTAINER alt-cloud + +{{ install_pakages("cni-plugin-flannel") }} + +RUN cp /usr/libexec/cni/flannel /flannel diff --git a/org/k8s/flannel/Dockerfile.template b/org/k8s/flannel/Dockerfile.template new file mode 100644 index 0000000..52b32ae --- /dev/null +++ b/org/k8s/flannel/Dockerfile.template @@ -0,0 +1,22 @@ +FROM {{ registry }}{{ alt_image }}:{{ branch }} + +MAINTAINER alt-cloud + +{{ install_pakages( + "iproute2", + "net-tools", + "ca-certificates", + "iptables", + "iptables-nft", + "strongswan", + "wireguard-tools", + "flannel", + "wget", +) }} + +RUN update-ca-trust + +RUN mkdir -p /opt/bin/ && cp /usr/sbin/flanneld /opt/bin/flanneld +RUN cp /usr/libexec/flannel/mk-docker-opts.sh /opt/bin/ + +ENTRYPOINT ["/opt/bin/flanneld"]