Files
homelab/k8s/apps/wedding/deployment.yaml
T

70 lines
1.6 KiB
YAML
Raw Normal View History

2026-04-19 16:22:25 +03:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wedding
labels:
app: wedding
spec:
replicas: 1
selector:
matchLabels:
app: wedding
template:
metadata:
labels:
app: wedding
spec:
2026-04-20 11:22:37 +03:00
nodeSelector:
kubernetes.io/hostname: spb.tail2fe2d.ts.net
2026-04-19 16:22:25 +03:00
initContainers:
- name: git-clone
image: alpine/git:latest
command:
- sh
- -c
- git clone --depth 1 https://gt.hexor.cy/ab/wedding.git /src
volumeMounts:
- name: source
mountPath: /src
- name: zola-build
image: ghcr.io/getzola/zola:v0.19.2
command:
2026-04-20 11:08:09 +03:00
- /bin/zola
args:
- --root
- /src
- build
2026-04-20 11:17:12 +03:00
- --base-url
- https://wedding.hexor.cy/
2026-04-20 11:08:09 +03:00
- --output-dir
2026-04-20 11:12:12 +03:00
- /public/html
2026-04-19 16:22:25 +03:00
volumeMounts:
- name: source
mountPath: /src
- name: public
mountPath: /public
containers:
- name: nginx
image: nginx:alpine
ports:
- containerPort: 80
protocol: TCP
volumeMounts:
- name: public
mountPath: /usr/share/nginx/html
2026-04-20 11:12:12 +03:00
subPath: html
2026-04-19 16:22:25 +03:00
readOnly: true
resources:
requests:
memory: 32Mi
cpu: 10m
limits:
memory: 64Mi
cpu: 100m
volumes:
- name: source
emptyDir: {}
- name: public
emptyDir: {}