Files
web-log/k8s/web-log-files-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

66 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: web-log-files
labels:
app.kubernetes.io/name: web-log-files
spec:
replicas: 2
revisionHistoryLimit: 5
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
selector:
matchLabels:
app.kubernetes.io/name: web-log-files
template:
metadata:
labels:
app.kubernetes.io/name: web-log-files
spec:
containers:
- name: web-log-files
image: nginx:1.30.3-alpine
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 80
protocol: TCP
readinessProbe:
tcpSocket:
port: http
initialDelaySeconds: 2
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 6
livenessProbe:
tcpSocket:
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
volumeMounts:
- name: web-log-files
mountPath: /usr/share/nginx/html
readOnly: true
volumes:
- name: web-log-files
nfs:
server: nas.hosts.uuard.com
path: /mnt/data-pool/web-log-files
readOnly: true