-
-
Save sergioprates/83adad61e7fc308edc5f25b6774c7c1a to your computer and use it in GitHub Desktop.
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
kubectl create -n default -f- <<EOF | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: teste-recursos | |
spec: | |
containers: | |
- name: teste-recursos | |
image: busybox | |
imagePullPolicy: IfNotPresent | |
command: ['sh', '-c', 'echo Executando ; sleep 10000'] | |
resources: | |
requests: | |
cpu: "50m" | |
limits: | |
cpu: "100m" | |
restartPolicy: Never | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment