2020-08-05 16:15:36 +00:00
|
|
|
import pulumi
|
|
|
|
import pulumi_kubernetes as kubernetes
|
|
|
|
|
2020-08-05 19:50:54 +00:00
|
|
|
bar = kubernetes.core.v1.Pod("bar",
|
2020-08-05 16:15:36 +00:00
|
|
|
api_version="v1",
|
2024-07-23 11:26:54 +00:00
|
|
|
metadata={
|
|
|
|
"namespace": "foo",
|
|
|
|
"name": "bar",
|
|
|
|
"labels": {
|
|
|
|
"app_kubernetes_io_name": "cilium-agent",
|
|
|
|
"app_kubernetes_io_part_of": "cilium",
|
|
|
|
"k8s_app": "cilium",
|
2023-12-23 11:26:01 +00:00
|
|
|
},
|
2024-07-23 11:26:54 +00:00
|
|
|
},
|
|
|
|
spec={
|
|
|
|
"containers": [
|
|
|
|
{
|
|
|
|
"name": "nginx",
|
|
|
|
"image": "nginx:1.14-alpine",
|
|
|
|
"ports": [{
|
|
|
|
"container_port": 80,
|
|
|
|
}],
|
|
|
|
"resources": {
|
|
|
|
"limits": {
|
2022-12-15 22:45:07 +00:00
|
|
|
"memory": "20Mi",
|
|
|
|
"cpu": "0.2",
|
|
|
|
},
|
2024-07-23 11:26:54 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "nginx2",
|
|
|
|
"image": "nginx:1.14-alpine",
|
|
|
|
"ports": [{
|
|
|
|
"container_port": 80,
|
|
|
|
}],
|
|
|
|
"resources": {
|
|
|
|
"limits": {
|
2022-12-15 22:45:07 +00:00
|
|
|
"memory": "20Mi",
|
|
|
|
"cpu": "0.2",
|
|
|
|
},
|
2024-07-23 11:26:54 +00:00
|
|
|
},
|
|
|
|
},
|
2022-12-15 22:45:07 +00:00
|
|
|
],
|
2024-07-23 11:26:54 +00:00
|
|
|
})
|
2024-02-11 17:02:12 +00:00
|
|
|
# Test that we can assign from a constant without type errors
|
2022-11-22 01:15:05 +00:00
|
|
|
kind = bar.kind
|