mirror of https://github.com/pulumi/pulumi.git
23 lines
488 B
Python
23 lines
488 B
Python
import pulumi
|
|
import pulumi_kubernetes as kubernetes
|
|
|
|
bar = kubernetes.core.v1.Pod("bar",
|
|
api_version="v1",
|
|
kind="Pod",
|
|
metadata={
|
|
"namespace": "foo",
|
|
"name": "bar",
|
|
},
|
|
spec={
|
|
"containers": [{
|
|
"name": "nginx",
|
|
"image": "nginx:1.14-alpine",
|
|
"resources": {
|
|
"limits": {
|
|
"memory": "20Mi",
|
|
"cpu": "0.2",
|
|
},
|
|
},
|
|
}],
|
|
})
|