Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update preview docs
Browse files Browse the repository at this point in the history
wesley-yep-canva committed Nov 6, 2024
1 parent bc75e08 commit b0d3183
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions website/content/en/preview/concepts/nodeclasses.md
Original file line number Diff line number Diff line change
@@ -100,12 +100,13 @@ spec:
amiSelectorTerms:
# Select on any AMI that has both the `karpenter.sh/discovery: ${CLUSTER_NAME}`
# AND `environment: test` tags OR any AMI with the name `my-ami` OR an AMI with
# ID `ami-123`
# ID `ami-123` OR an AMI with ID matching the value of my-custom-parameter
- tags:
karpenter.sh/discovery: "${CLUSTER_NAME}"
environment: test
- name: my-ami
- id: ami-123
- ssmParameterName: my-custom-parameter # ssm parameter name or ARN
# Select EKS optimized AL2023 AMIs with version `v20240703`. This term is mutually
# exclusive and can't be specified with other terms.
# - alias: al2023@v20240703
@@ -705,12 +706,13 @@ The example below shows how this selection logic is fulfilled.
amiSelectorTerms:
# Select on any AMI that has both the `karpenter.sh/discovery: ${CLUSTER_NAME}`
# AND `environment: test` tags OR any AMI with the name `my-ami` OR an AMI with
# ID `ami-123`
# ID `ami-123` OR an AMI with ID matching the value of my-custom-parameter
- tags:
karpenter.sh/discovery: "${CLUSTER_NAME}"
environment: test
- name: my-ami
- id: ami-123
- ssmParameterName: my-custom-parameter # ssm parameter name or ARN
# Select EKS optimized AL2023 AMIs with version `v20240807`. This term is mutually
# exclusive and can't be specified with other terms.
# - alias: al2023@v20240807
@@ -842,6 +844,12 @@ Specify using ids:
- id: "ami-456"
```

Specify using custom ssm parameter name or ARN:
```yaml
amiSelectorTerms:
- ssmParameterName: "my-custom-parameter"
```

## spec.tags

Karpenter adds tags to all resources it creates, including EC2 Instances, EBS volumes, and Launch Templates. The default set of tags are listed below.

0 comments on commit b0d3183

Please sign in to comment.