full-dress-10026
06/06/2019, 4:32 PMlivenessProbe
to my Deployment
and then removed it and received this exception:
TSError: ⨯ Unable to compile TypeScript:
src/index.ts(418,21): error TS2345: Argument of type '{ metadata: { namespace: Output<string>; name: string; labels: { "<http://app.kubernetes.io/name|app.kubernetes.io/name>": string; "<http://app.kubernetes.io/instance|app.kubernetes.io/instance>": string; "<http://app.kubernetes.io/version|app.kubernetes.io/version>": string; }; }; spec: { selector: { ...; }; replicas: number; template: { ...; }; }; }' is not assignable to parameter of type 'Deployment'.
Types of property 'spec' are incompatible.
Types of property 'template' are incompatible.
Types of property 'spec' are incompatible.
Type '{ replicas: number; containers: { name: string; image: string; env: ({ name: string; value: Output<string>; } | { name: string; value: string; } | { name: string; valueFrom: { fieldRef: { fieldPath: string; }; }; })[]; resources: { ...; }; }[]; }' is not assignable to type 'PodSpec | Promise<PodSpec> | OutputInstance<PodSpec> | undefined'.
Object literal may only specify known properties, and 'replicas' does not exist in type 'Input<PodSpec>'.
at createTSError (/home/kenny/compute_software/infrastructure/pulumi-k8s-src/node_modules/ts-node/src/index.ts:261:12)
at getOutput (/home/kenny/compute_software/infrastructure/pulumi-k8s-src/node_modules/ts-node/src/index.ts:367:40)
at Object.compile (/home/kenny/compute_software/infrastructure/pulumi-k8s-src/node_modules/ts-node/src/index.ts:558:11)
at Module.m._compile (/home/kenny/compute_software/infrastructure/pulumi-k8s-src/node_modules/ts-node/src/index.ts:439:43)
at Module._extensions..js (module.js:664:10)
at Object.require.extensions.(anonymous function) [as .ts] (/home/kenny/compute_software/infrastructure/pulumi-k8s-src/node_modules/ts-node/src/index.ts:442:12)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
It is not clear what this means. Is this expected?replicas
property on my Deployment spec
and the template.spec
. It's odd that pulumi up
has worked until I changed the livenessProbe
property on a different Deployment.creamy-potato-29402
06/06/2019, 5:29 PMreplicas
does not go in the pod spec, right?full-dress-10026
06/06/2019, 5:30 PMcreamy-potato-29402
06/06/2019, 7:11 PMfull-dress-10026
06/06/2019, 7:12 PMcreamy-potato-29402
06/06/2019, 7:20 PMfull-dress-10026
06/06/2019, 7:31 PMcreamy-potato-29402
06/06/2019, 7:31 PMfull-dress-10026
06/06/2019, 7:32 PMinitialDelaySeconds
set in readinessProbe.httpGet
instead of just readinessProbe
.