Files
web-log/k8s/web-log-deployment.yaml
T
nicholas 95ae165232
Build & Push Hugo Site Image / Build & Push Image (push) Successful in 26s
deploy web log with k3s
2026-08-04 16:39:50 -05:00

61 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: web-log
labels:
app.kubernetes.io/name: web-log
spec:
replicas: 2
revisionHistoryLimit: 5
progressDeadlineSeconds: 180
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
selector:
matchLabels:
app.kubernetes.io/name: web-log
template:
metadata:
labels:
app.kubernetes.io/name: web-log
spec:
imagePullSecrets:
- name: gitea-registry
containers:
- name: web-log
image: git.uuard.com/nicholas/web-log
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 80
protocol: TCP
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 2
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 6
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 3
resources:
requests:
cpu: 10m
memory: 32Mi
limits:
cpu: 100m
memory: 128Mi
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault