Created
August 6, 2024 10:59
-
-
Save apinter/9c5f4a6c3398e388558a049b806d19c5 to your computer and use it in GitHub Desktop.
demo pod
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: | |
name: hello-world-deployment | |
labels: | |
app: hello-world | |
spec: | |
selector: | |
matchLabels: | |
app: hello-world | |
replicas: 2 | |
template: | |
metadata: | |
labels: | |
app: hello-world | |
spec: | |
containers: | |
- name: hello-world | |
image: registry.opensuse.org/opensuse/tumbleweed | |
ports: | |
- containerPort: 80 | |
command: ["sleep"] | |
args: ["100000"] | |
resources: | |
limits: | |
memory: 256Mi | |
cpu: "250m" | |
requests: | |
memory: 128Mi | |
cpu: "80m" | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment