lemon-greece-30910
03/06/2019, 9:28 PMconst name = `${defaultName}-nextcloud`;
// Create a nextcloud Deployment
const appLabels = { appClass: name };
const volume = new aws.ebs.Volume(name, {
availabilityZone: "us-west-2a",
size: 3,
encrypted: true,
tags: {
name: name,
}
});
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: "nextcloud:latest",
ports: [{ name: "http", containerPort: 80 }],
volumeMounts: [{
name: "nextcloud-volume",
mountPath: "/var/www/html"
}]
}
],
volumes: [
{
name: "nextcloud-volume",
awsElasticBlockStore: {
volumeID: volume.id
}
}
]
}
}
},
},
{
provider: cluster.provider,
}
);
creamy-potato-29402
03/06/2019, 9:29 PMlemon-greece-30910
03/06/2019, 9:31 PMDiagnostics:
kubernetes:apps:Deployment (architecture-nextcloud):
error: Plan apply failed: 2 errors occurred:
* Timeout occurred for 'architecture-nextcloud-v6c0og91'
* Minimum number of Pods to consider the application live was not attained
creamy-potato-29402
03/06/2019, 9:32 PMkubectl get event
lemon-greece-30910
03/06/2019, 9:34 PMkubectl
nowcreamy-potato-29402
03/06/2019, 9:34 PMlemon-greece-30910
03/06/2019, 9:36 PMkubectl get event
returns.creamy-potato-29402
03/06/2019, 9:38 PMlemon-greece-30910
03/06/2019, 9:41 PMcreamy-potato-29402
03/06/2019, 9:41 PMvolume.id
?lemon-greece-30910
03/06/2019, 9:46 PMcreamy-potato-29402
03/06/2019, 9:46 PMlemon-greece-30910
03/06/2019, 9:48 PM<https://kubernetes.io/docs/concepts/storage/volumes/#awselasticblockstore>
, except i have not specified fsType
. i will try that now.creamy-potato-29402
03/06/2019, 9:49 PMlemon-greece-30910
03/06/2019, 9:52 PMcreamy-potato-29402
03/06/2019, 9:53 PM