Search⌘ K
AI Features

Challenge: Troubleshooting Further in Kubernetes

Explore hands-on techniques to identify and fix multi-container deployment problems and ingress service issues in Kubernetes. Understand how to use logs and configuration adjustments to maintain a stable and functional cluster.

Problem 1: Resolving multi container issues

We’ve deployed the application below, but when we check our application status, there seem to be some issues. Rectify the issues and resolve them.

YAML
apiVersion: apps/v1
kind: Deployment
metadata:
name: pod
spec:
replicas: 3
selector:
matchLabels:
app: pod
template:
metadata:
labels:
app: pod
spec:
containers:
- name: nginx-container1
image: nginx:1.21.3
ports:
- containerPort: 82
- name: nginx-container2
image: nginx:1.21.3
ports:
- containerPort: 81
...