This message was deleted.
# general
s
This message was deleted.
w
The first parameter is a “name”, the second is the path to the sources you want to
docker build
.
We’ll make sure the API docs are up to date here.
(And the tutorial)
l
my deployment spec is as follows:
Copy code
const deployment = new k8s.apps.v1.Deployment(name,
        {
            metadata: {
                namespace: namespaceName,
                labels: appLabels,
            },
            spec: {
                replicas: 1,
                selector: { matchLabels: appLabels },
                template: {
                    metadata: {
                        labels: appLabels,
                    },
                    spec: {
                        containers: [
                            {
                                name: name,
                                image: awsx.ecs.Image.fromPath("ingress", "./src/." ),
                                ports: [{ name: "http", containerPort: 80 }],
                                volumeMounts: [{
                                    name: "volume",
                                    mountPath: "/root/.caddy"
                                }]
                            }
                        ],
                        volumes: [
                            {
                                name: "volume",
                                awsElasticBlockStore: {
                                    volumeID: volume.id
                                }
                            }
                        ]
                    }
                }
            },
        },
        {
            provider: cluster.provider,
        }
    );
this does not work. perhaps this method is not compatible with kubernetes?
i am open to any other options to set up an ingress when using Pulumi if this is not the best/simplest way.
c
@lemon-greece-30910 the
Deployment
API is the same as the official Kubernetes API.
that is to say, you must provide an image name.
The Kubernetes YAML API does not let you pass an image path instead, and we don’t (at this point) either.