I have created a replica set, but when I am running the command “kubectl get Pods” status of pods are “CrashLoopBackOff”.
Below the yaml file for replicaset
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: new-replica-set
labels:
app: myapp
spec:
replicas: 4
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: busybox
image: busybox
Please suggest where I am doing wrong ?