0

I'm getting this output when I want to list my current stack:

enter image description here

I don't quite figure out why it's getting me this message.

This is my project:

enter image description here

Here you have code:

import * as k8s from "@pulumi/kubernetes";

const appLabels = { app: "nginx" };
const deployment = new k8s.apps.v1.Deployment("nginx", {
    spec: {
        selector: { matchLabels: appLabels },
        replicas: 1,
        template: {
            metadata: { labels: appLabels },
            spec: { containers: [{ name: "nginx", image: "nginx" }] }
        }
    }
});
export const name = deployment.metadata.apply(m => m.name);

I've tried to up current resources:

enter image description here

4

1 回答 1

3

因为你还没有创建任何资源pulumi uppulumi stack仅显示有关当前堆栈状态的信息。在您运行pulumi up并接受创建资源后pulumi stack,将显示资源已创建。

于 2019-04-16T15:22:24.150 回答