Skip to content

Instantly share code, notes, and snippets.

@initcron
Created November 21, 2022 06:41
Show Gist options
  • Save initcron/b3b29cea2f7caacb7d0c7bfedd49177b to your computer and use it in GitHub Desktop.
Save initcron/b3b29cea2f7caacb7d0c7bfedd49177b to your computer and use it in GitHub Desktop.
Spot the Error with this Replicaset, Selector Spec
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