Skip to content

Instantly share code, notes, and snippets.

@sergioprates
Created August 17, 2021 23: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/83adad61e7fc308edc5f25b6774c7c1a to your computer and use it in GitHub Desktop.
Save sergioprates/83adad61e7fc308edc5f25b6774c7c1a 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: "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