James Corteciano:
Hey guys,
In the example manifest yaml below, what is the correct way to fix the label?
Does it need to be tier: nginx
(because the baseline is under template
) or tier: front-end
(because under in selector
) ?
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: replicaset-1
spec:
replicas: 2
selector:
matchLabels:
tier: front-end
template:
metadata:
labels:
tier: nginx
spec:
containers:
- name: nginx
image: nginx