2026-01-08 04:00:41 +00:00
|
|
|
---
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: student-frontend
|
2026-01-08 21:44:22 +00:00
|
|
|
namespace: academia
|
2026-01-08 04:00:41 +00:00
|
|
|
labels:
|
|
|
|
|
app: student-frontend
|
|
|
|
|
spec:
|
2026-01-08 05:01:49 +00:00
|
|
|
replicas: 1
|
2026-01-08 04:00:41 +00:00
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app: student-frontend
|
|
|
|
|
strategy:
|
|
|
|
|
type: RollingUpdate
|
|
|
|
|
rollingUpdate:
|
|
|
|
|
maxSurge: 1
|
|
|
|
|
maxUnavailable: 0
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: student-frontend
|
|
|
|
|
spec:
|
2026-01-08 05:01:49 +00:00
|
|
|
nodeSelector:
|
|
|
|
|
kubernetes.io/hostname: hp62a
|
2026-01-08 04:00:41 +00:00
|
|
|
containers:
|
|
|
|
|
- name: frontend
|
2026-01-08 21:40:57 +00:00
|
|
|
image: student-frontend:latest
|
2026-01-08 05:01:49 +00:00
|
|
|
imagePullPolicy: Never
|
2026-01-08 04:00:41 +00:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 80
|
|
|
|
|
name: http
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
2026-01-08 05:01:49 +00:00
|
|
|
memory: "32Mi"
|
|
|
|
|
cpu: "10m"
|
2026-01-08 04:00:41 +00:00
|
|
|
limits:
|
2026-01-08 05:01:49 +00:00
|
|
|
memory: "64Mi"
|
|
|
|
|
cpu: "100m"
|
2026-01-08 04:00:41 +00:00
|
|
|
livenessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /
|
|
|
|
|
port: 80
|
|
|
|
|
initialDelaySeconds: 10
|
2026-01-08 05:01:49 +00:00
|
|
|
periodSeconds: 60
|
2026-01-08 04:00:41 +00:00
|
|
|
readinessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /
|
|
|
|
|
port: 80
|
|
|
|
|
initialDelaySeconds: 5
|
|
|
|
|
periodSeconds: 10
|
|
|
|
|
securityContext:
|
|
|
|
|
runAsNonRoot: false
|
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: Service
|
|
|
|
|
metadata:
|
|
|
|
|
name: student-frontend
|
2026-01-08 21:44:22 +00:00
|
|
|
namespace: academia
|
2026-01-08 04:00:41 +00:00
|
|
|
spec:
|
|
|
|
|
selector:
|
|
|
|
|
app: student-frontend
|
|
|
|
|
ports:
|
|
|
|
|
- port: 80
|
|
|
|
|
targetPort: 80
|
|
|
|
|
name: http
|
|
|
|
|
type: ClusterIP
|