Skip to content

Instantly share code, notes, and snippets.

@sergioprates
Created August 16, 2021 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergioprates/81845e8fb4f6d4ba68bf4137ee292f06 to your computer and use it in GitHub Desktop.
Save sergioprates/81845e8fb4f6d4ba68bf4137ee292f06 to your computer and use it in GitHub Desktop.
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: "100m"
limits:
cpu: "200m"
restartPolicy: Never
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment