market-web in vitals-rse0d3 keeps restarting:
sh
kubectl get pods -n vitals-rse0d3
kubectl describe pod -l app=market-web -n vitals-rse0d3Find the Unhealthy event and the status code it reports. The probe points at a path nginx does not serve. Apply the Deployment again with the probe on /:
sh
kubectl apply -n vitals-rse0d3 -f - <<EOF
apiVersion: apps/v1
kind: Deployment
metadata:
name: market-web
spec:
replicas: 1
selector:
matchLabels:
app: market-web
template:
metadata:
labels:
app: market-web
spec:
containers:
- name: web
image: nginx:1.27
ports:
- containerPort: 80
livenessProbe:
httpGet:
path: /
port: 80
periodSeconds: 5
EOFThe new Pod should sit at 0 restarts.