Hi Team,
Can anyone help me to resolve the issue im not able to create replicaset
Q1) Create a ReplicaSet using httpd image with latest tag (ensure to specify as httpd:latest) and name it httpd-replicaset.
Apply labels: app as httpd_app, type as front-end.
Name the container httpd-container. Ensure the replica count is 4.
Ans : apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: httpd-replicaset
labels:
app: httpd_app
type: frontend
spec:
modify replicas according to your case
replicas: 4
selector:
matchLabels:
type: frontend
template:
metadata:
labels:
type: frontend
spec:
containers:
- name: httpd-container
image: httpd:latest
Everything is correct seems still my task is not getting resolved its there is an issue in the label: type fontend but I feel its right can someone help me please