Initial commit

This commit is contained in:
Александр Степченко 2022-12-05 14:25:23 +03:00
commit 1e24b37b8b
10 changed files with 113 additions and 0 deletions

View File

@ -0,0 +1,13 @@
FROM alt:sisyphus
RUN apt-get update && \
apt-get install -y cert-manager; \
rm -f /var/cache/apt/archives/*.rpm \
/var/cache/apt/*.bin \
/var/lib/apt/lists/*.*
RUN groupadd -r -g 1000 cert-manger && useradd --no-log-init -r -u 1000 -g cert-manger cert-manger
USER 1000
ENTRYPOINT ["/usr/bin/cainjector"]

View File

@ -0,0 +1,13 @@
FROM alt:sisyphus
RUN apt-get update && \
apt-get install -y cert-manager; \
rm -f /var/cache/apt/archives/*.rpm \
/var/cache/apt/*.bin \
/var/lib/apt/lists/*.*
RUN groupadd -r -g 1000 cert-manger && useradd --no-log-init -r -u 1000 -g cert-manger cert-manger
USER 1000
ENTRYPOINT ["/usr/bin/controller"]

View File

@ -0,0 +1,13 @@
FROM alt:sisyphus
RUN apt-get update && \
apt-get install -y cert-manager; \
rm -f /var/cache/apt/archives/*.rpm \
/var/cache/apt/*.bin \
/var/lib/apt/lists/*.*
RUN groupadd -r -g 1000 cert-manger && useradd --no-log-init -r -u 1000 -g cert-manger cert-manger
USER 1000
ENTRYPOINT ["/usr/bin/webhook"]

9
coredns/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM alt:sisyphus
RUN apt-get update && \
apt-get install -y coredns; \
rm -f /var/cache/apt/archives/*.rpm \
/var/cache/apt/*.bin \
/var/lib/apt/lists/*.*
ENTRYPOINT ["/usr/bin/coredns"]

13
etcd/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM alt:sisyphus
MAINTAINER alt-cloud
RUN apt-get update && \
apt-get install -y etcd; \
rm -f /var/cache/apt/archives/*.rpm \
/var/cache/apt/*.bin \
/var/lib/apt/lists/*.*
VOLUME /data
ENTRYPOINT ["/usr/sbin/etcd", "--data-dir", "/data"]

View File

@ -0,0 +1,9 @@
FROM alt:sisyphus
RUN apt-get update && \
apt-get install -y kubernetes-master; \
rm -f /var/cache/apt/archives/*.rpm \
/var/cache/apt/*.bin \
/var/lib/apt/lists/*.*
ENTRYPOINT ["/usr/bin/kube-apiserver"]

View File

@ -0,0 +1,9 @@
FROM alt:sisyphus
RUN apt-get update && \
apt-get install -y kubernetes-master; \
rm -f /var/cache/apt/archives/*.rpm \
/var/cache/apt/*.bin \
/var/lib/apt/lists/*.*
ENTRYPOINT ["/usr/bin/kube-controller-manager"]

10
kube-proxy/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM alt:sisyphus
RUN apt-get update && \
apt-get install -y kubernetes-node; \
rm -f /var/cache/apt/archives/*.rpm \
/var/cache/apt/*.bin \
/var/lib/apt/lists/*.*; \
ln -s /usr/bin/kube-proxy /usr/local/bin/kube-proxy
ENTRYPOINT ["/usr/bin/kube-proxy"]

View File

@ -0,0 +1,9 @@
FROM alt:sisyphus
RUN apt-get update && \
apt-get install -y kubernetes-master; \
rm -f /var/cache/apt/archives/*.rpm \
/var/cache/apt/*.bin \
/var/lib/apt/lists/*.*
ENTRYPOINT ["/usr/bin/kube-scheduler"]

15
pause/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM alt:sisyphus as installer
RUN apt-get update && \
apt-get install -y apt-repo; \
sh -c 'yes | apt-repo test 310153'; \
apt-get remove -y apt-repo; \
rm -f /var/cache/apt/archives/*.rpm \
/var/cache/apt/*.bin \
/var/lib/apt/lists/*.*
FROM scratch
COPY --from=installer /usr/bin/kubernetes-pause /pause
CMD ["/pause"]