market-db in peaks-1ar9blv is Pending:
sh
kubectl get pods -n peaks-1ar9blv -o wide
kubectl describe pod market-db -n peaks-1ar9blv
kubectl get nodes --show-labelsIt asks for disk=nvme. peaks-node-2 has the fast disk, mislabelled as ssd. Fix the label and watch the Pod land:
sh
kubectl label node peaks-node-2 disk=nvme --overwrite
kubectl get pod market-db -n peaks-1ar9blv -o wideThen keep the web tier in one zone. Apply a Deployment whose template selects zone=east:
sh
kubectl apply -n peaks-1ar9blv -f - <<EOF
apiVersion: apps/v1
kind: Deployment
metadata:
name: market-web
spec:
replicas: 2
selector:
matchLabels:
app: market-web
template:
metadata:
labels:
app: market-web
spec:
nodeSelector:
zone: east
containers:
- name: web
image: nginx:1.27
EOF