Skip to content

Commit

Permalink
Fix provisioner limit docs (#856)
Browse files Browse the repository at this point in the history
* Revert "added default provisioner limits into docs (#851)"

This reverts commit ed0029e.

* add provisioner limits to pre-docs

* remove memory limits
  • Loading branch information
bwagner5 authored Nov 26, 2021
1 parent d237072 commit bab5695
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions website/content/en/docs/getting-started/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ This behavior can be disabled by leaving the value undefined.
Review the [provisioner CRD](/docs/provisioner-crd) for more information. For example,
`ttlSecondsUntilExpired` configures Karpenter to terminate nodes when a maximum age is reached.

Note: This provisioner will create capacity as long as the sum of all created capacity is less than the specified limit.

```bash
cat <<EOF | kubectl apply -f -
apiVersion: karpenter.sh/v1alpha5
Expand All @@ -233,10 +231,6 @@ spec:
- key: karpenter.sh/capacity-type
operator: In
values: ["spot"]
limits:
resources:
cpu: 1000
memory: 1000Gi
provider:
instanceProfile: KarpenterNodeInstanceProfile-${CLUSTER_NAME}
ttlSecondsAfterEmpty: 30
Expand Down
5 changes: 5 additions & 0 deletions website/content/en/pre-docs/getting-started/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ This behavior can be disabled by leaving the value undefined.
Review the [provisioner CRD](/docs/provisioner-crd) for more information. For example,
`ttlSecondsUntilExpired` configures Karpenter to terminate nodes when a maximum age is reached.

Note: This provisioner will create capacity as long as the sum of all created capacity is less than the specified limit.

```bash
cat <<EOF | kubectl apply -f -
apiVersion: karpenter.sh/v1alpha5
Expand All @@ -194,6 +196,9 @@ spec:
- key: karpenter.sh/capacity-type
operator: In
values: ["spot"]
limits:
resources:
cpu: 1000
provider:
instanceProfile: KarpenterNodeInstanceProfile-${CLUSTER_NAME}
ttlSecondsAfterEmpty: 30
Expand Down

0 comments on commit bab5695

Please sign in to comment.