2020-08-05 16:15:36 +00:00
|
|
|
import * as pulumi from "@pulumi/pulumi";
|
|
|
|
import * as kubernetes from "@pulumi/kubernetes";
|
|
|
|
|
|
|
|
const bar = new kubernetes.core.v1.Pod("bar", {
|
|
|
|
apiVersion: "v1",
|
|
|
|
metadata: {
|
|
|
|
namespace: "foo",
|
|
|
|
name: "bar",
|
2023-12-23 11:26:01 +00:00
|
|
|
labels: {
|
|
|
|
"app.kubernetes.io/name": "cilium-agent",
|
|
|
|
"app.kubernetes.io/part-of": "cilium",
|
|
|
|
"k8s-app": "cilium",
|
|
|
|
},
|
2020-08-05 16:15:36 +00:00
|
|
|
},
|
|
|
|
spec: {
|
2022-12-15 22:45:07 +00:00
|
|
|
containers: [
|
|
|
|
{
|
|
|
|
name: "nginx",
|
|
|
|
image: "nginx:1.14-alpine",
|
|
|
|
ports: [{
|
|
|
|
containerPort: 80,
|
|
|
|
}],
|
|
|
|
resources: {
|
|
|
|
limits: {
|
|
|
|
memory: "20Mi",
|
|
|
|
cpu: "0.2",
|
|
|
|
},
|
2020-08-05 16:15:36 +00:00
|
|
|
},
|
|
|
|
},
|
2022-12-15 22:45:07 +00:00
|
|
|
{
|
|
|
|
name: "nginx2",
|
|
|
|
image: "nginx:1.14-alpine",
|
|
|
|
ports: [{
|
|
|
|
containerPort: 80,
|
|
|
|
}],
|
|
|
|
resources: {
|
|
|
|
limits: {
|
|
|
|
memory: "20Mi",
|
|
|
|
cpu: "0.2",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2020-08-05 16:15:36 +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
|
|
|
const kind = bar.kind;
|