forked from images/gitea-image-forge
Add k8s/flannel and k8s/flannel-cni-plugin images
This commit is contained in:
parent
7c9972434a
commit
78837602b2
7
org/k8s/flannel-cni-plugin/Dockerfile.template
Normal file
7
org/k8s/flannel-cni-plugin/Dockerfile.template
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FROM {{ registry }}{{ alt_image }}:{{ branch }}
|
||||||
|
|
||||||
|
MAINTAINER alt-cloud
|
||||||
|
|
||||||
|
{{ install_pakages("cni-plugin-flannel") }}
|
||||||
|
|
||||||
|
RUN cp /usr/libexec/cni/flannel /flannel
|
22
org/k8s/flannel/Dockerfile.template
Normal file
22
org/k8s/flannel/Dockerfile.template
Normal file
@ -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"]
|
Loading…
Reference in New Issue
Block a user