Created
November 21, 2022 06:41
-
-
Save initcron/b3b29cea2f7caacb7d0c7bfedd49177b to your computer and use it in GitHub Desktop.
Spot the Error with this Replicaset, Selector Spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: ReplicaSet | |
metadata: | |
name: vote | |
labels: | |
role: vote | |
spec: | |
replicas: 4 | |
selector: | |
matchLabels: | |
app: python | |
role: vote | |
matchExpressions: | |
key: version | |
operator: Exists | |
template: | |
metadata: | |
name: vote | |
labels: | |
app: python | |
role: vote | |
version: v2 | |
spec: | |
containers: | |
- name: app | |
image: schoolofdevops/vote:v2 | |
resources: | |
requests: | |
memory: "64Mi" | |
cpu: "50m" | |
limits: | |
memory: "128Mi" | |
cpu: "250m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment