lemon-greece-30910
03/03/2019, 5:09 PMDockerfile
with awsx.ecs.Image.fromPath
as show in the example on https://pulumi.io/quickstart/aws/tutorial-service.html... i would like something similar so i can build an image for kubernetes to work on an example like shown at: https://github.com/pulumi/examples/tree/master/kubernetes-ts-exposed-deployment.
how i am trying to create a caddy server:
image: awsx.ecs.Image.fromPath("caddy", {dockerfile: "./src" }),
unlike in the example on the pulumi tutorial, it seems fromPath
in the latest version (0.16.5) requires 2 parameters. but i cant figure out how the second parameter needs to be specified.
i have tried searching the documentation but i am unable to find what i am looking for. perhaps i am searching in the wrong place?white-balloon-205
docker build
.lemon-greece-30910
03/03/2019, 5:33 PMconst 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?creamy-potato-29402
03/04/2019, 6:42 AMDeployment
API is the same as the official Kubernetes API.