building an debian-stable image

This commit is contained in:
2021-02-22 13:13:10 +01:00
parent aaaf6fa29f
commit d4cc44a1ea
2 changed files with 29 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ FROM debian:stable-slim
RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list && \
sed -i 's@security.debian.org@apt-cache.lan/security.debian.org@g' /etc/apt/sources.list && \
apt-get update && apt-get install -y \
dig procps nmap bash iputils-ping && \
dnsutils procps nmap bash iputils-ping && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/apt/*

View File

@@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: debian-stable
labels:
app: debian-stable
spec:
replicas: 1
selector:
matchLabels:
app: debian-stable
strategy:
type: Recreate
template:
metadata:
labels:
app: debian-stable
spec:
containers:
- name: debian-stable
image: cr.lan/debian-stable:latest
resources:
requests:
memory: "24Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "100m"