Created
September 5, 2024 05:25
-
-
Save initcron/e50af5cf0521c1e54ea87901a1c6cf33 to your computer and use it in GitHub Desktop.
Vote Deployment with Resource 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: Deployment | |
metadata: | |
creationTimestamp: null | |
labels: | |
role: vote | |
name: vote | |
spec: | |
replicas: 4 | |
selector: | |
matchLabels: | |
role: vote | |
strategy: {} | |
template: | |
metadata: | |
creationTimestamp: null | |
labels: | |
role: vote | |
spec: | |
containers: | |
- image: schoolofdevops/vote:v1 | |
name: vote | |
envFrom: | |
- configMapRef: | |
name: vote | |
optional: True | |
ports: | |
- containerPort: 80 | |
resources: | |
requests: | |
cpu: "50m" | |
memory: "64Mi" | |
limits: | |
cpu: "100m" | |
memory: "128Mi" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment