dry-pilot-73614
09/17/2018, 4:24 PMpulumi up
it wants to remove the volumes
in my pod spec.* pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:media-products-unleash-test::unleash::pulumi:pulumi:Stack::unleash-media-products-unleash-test]
~ kubernetes:apps/v1:Deployment: (update)
[id=unleash-wl7co5fo/unleash-8c31kw3y]
[urn=urn:pulumi:media-products-unleash-test::unleash::kubernetes:apps/v1:Deployment::unleash]
~ spec : {
~ template: {
~ spec : {
- volumes : [
- [0]: {
- name : "cloudsql-instance-credentials"
- secret: {
- secretName: "unleash-cloudsql-proxy-credentials-h1ngv4ru"
}
}
]
}
}
}
white-balloon-205
dry-pilot-73614
09/17/2018, 4:31 PM* pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:media-products-unleash-test::unleash::pulumi:pulumi:Stack::unleash-media-products-unleash-test]
~ kubernetes:apps/v1:Deployment: (update)
[id=unleash-wl7co5fo/unleash-8c31kw3y]
[urn=urn:pulumi:media-products-unleash-test::unleash::kubernetes:apps/v1:Deployment::unleash]
(no changes below)
error: Plan apply failed: 2 errors occurred:
* Timeout occurred for 'unleash-8c31kw3y'
* Attempted to roll forward to new ReplicaSet, but minimum number of Pods did not become live
creamy-potato-29402
09/17/2018, 4:56 PMdry-pilot-73614
09/18/2018, 4:10 AMcreamy-potato-29402
09/18/2018, 4:11 AMlemon-spoon-91807
09/18/2018, 4:13 AMcreamy-potato-29402
09/18/2018, 4:14 AMdry-pilot-73614
09/18/2018, 4:14 AMcreamy-potato-29402
09/18/2018, 4:15 AMlemon-spoon-91807
09/18/2018, 4:15 AMpulumi.output(args.spec!)
will give you the entire unwrapped type.creamy-potato-29402
09/18/2018, 4:16 AMlemon-spoon-91807
09/18/2018, 4:18 AMargs.spec = pulumi.output(args.spec!).apply(spec => {
spec.template.spec.containers = spec.template.spec.containers || [];
spec.template.spec.containers.push({
name: 'cloudsql-proxy',
image: '<http://gcr.io/cloudsql-docker/gce-proxy:1.11|gcr.io/cloudsql-docker/gce-proxy:1.11>',
command: [
'/cloud_sql_proxy',
`-instances=${project}:${region}:${instanceName}=tcp:${dbPort}`,
'-credential_file=/var/run/secrets/cloudsql/credentials.json',
],
securityContext: {
runAsUser: 2, // non-root user
allowPrivilegeEscalation: false,
},
volumeMounts: [
{
name: 'cloudsql-instance-credentials',
mountPath: '/var/run/secrets/cloudsql',
readOnly: true,
},
],
});
spec.template.spec.volumes = spec.template.spec.volumes || [];
spec.template.spec.volumes.push({
name: 'cloudsql-instance-credentials',
secret: {
secretName: credentialsSecret.metadata.apply(x => x.name),
},
});
return spec;
});
creamy-potato-29402
09/18/2018, 4:19 AMlemon-spoon-91807
09/18/2018, 4:19 AMcreamy-potato-29402
09/18/2018, 4:19 AMlemon-spoon-91807
09/18/2018, 4:21 AMcreamy-potato-29402
09/18/2018, 4:23 AMlemon-spoon-91807
09/18/2018, 4:23 AMdry-pilot-73614
09/18/2018, 3:21 PMsecretName: credentialsSecret.metadata.apply(x => x.name)
.