Skip to content

Commit

Permalink
docs(getting-started): "replicas" option is not respected in the WebS… (
Browse files Browse the repository at this point in the history
#266)

…ervice example

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
cmdallas committed Jul 13, 2020
1 parent 86b53d9 commit 0f70a4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/getting-started/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ export class WebService extends Construct {
const port = options.port || 80;
const containerPort = options.containerPort || 8080;
const label = { app: Node.of(this).uniqueId };
const replicas = options.replicas ?? 1;
new Service(this, 'service', {
spec: {
Expand All @@ -294,7 +295,7 @@ export class WebService extends Construct {
new Deployment(this, 'deployment', {
spec: {
replicas: 1,
replicas,
selector: {
matchLabels: label
},
Expand Down

0 comments on commit 0f70a4f

Please sign in to comment.