We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10a7f95 + a318e83 commit 99160c9Copy full SHA for 99160c9
examples/deployment_crud.py
@@ -26,7 +26,12 @@ def create_deployment_object():
26
container = client.V1Container(
27
name="nginx",
28
image="nginx:1.15.4",
29
- ports=[client.V1ContainerPort(container_port=80)])
+ ports=[client.V1ContainerPort(container_port=80)],
30
+ resources=client.V1ResourceRequirements(
31
+ requests={"cpu": "100m", "memory": "200Mi"},
32
+ limits={"cpu": "500m", "memory": "500Mi"}
33
+ )
34
35
# Create and configurate a spec section
36
template = client.V1PodTemplateSpec(
37
metadata=client.V1ObjectMeta(labels={"app": "nginx"}),
0 commit comments