Files
hugo-blog/deploy/hugo-deployment.yaml
luochen570 f8133f891a
Some checks failed
Deploy Hugo Blog to k3s / build-and-deploy (push) Failing after 21m54s
ci: deploy Hugo to k3s via Gitea Actions
2026-06-01 20:42:48 +08:00

44 lines
890 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: hugo-blog
namespace: hugo
labels:
app: hugo-blog
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
selector:
matchLabels:
app: hugo-blog
template:
metadata:
labels:
app: hugo-blog
spec:
imagePullSecrets:
- name: gitea-registry
containers:
- name: nginx
image: git.luochen570.cn/luochen570/hugo-blog:latest
imagePullPolicy: Always
ports:
- containerPort: 80
name: http
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 15
periodSeconds: 20