sparse-intern-71089
03/03/2019, 5:09 PMwhite-balloon-205
docker build
.white-balloon-205
white-balloon-205
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?lemon-greece-30910
03/03/2019, 5:44 PMcreamy-potato-29402
03/04/2019, 6:42 AMDeployment
API is the same as the official Kubernetes API.creamy-potato-29402
03/04/2019, 6:42 AMcreamy-potato-29402
03/04/2019, 6:42 AM