Skip to content

Commit

Permalink
Updates in How To for setting Kubernetes metadata (#857)
Browse files Browse the repository at this point in the history
* Updates in How To for setting Kubernetes metadata

* Applications.Core/httpRoutes resource was missing from the list.
* References to `radius.dev` needed to be updated

* Remove httproutes

Co-authored-by: Aaron Crawfis <[email protected]>

---------

Co-authored-by: Aaron Crawfis <[email protected]>
  • Loading branch information
kachawla and AaronCrawfis authored Oct 17, 2023
1 parent 12c5870 commit 46d3b26
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ In the case where layers have conflicting keys (_i.e. Application and Container

## Reserved keys

Certain labels/annotations have special uses to Radius internally and are not allowed to be overridden by user. Labels/Annotations with keys that have a prefix : `radius.dev/` will be ignored during processing.
Certain labels/annotations have special uses to Radius internally and are not allowed to be overridden by user. Labels/Annotations with keys that have a prefix : `radapp.io/` will be ignored during processing.

## Extension processing order

Expand Down Expand Up @@ -93,9 +93,9 @@ Labels: key1=appValue1
key2=containerValue2
team.contact.name=Frontend
team.contact.alias=frontend-eng
radius.dev/application=myapp
radius.dev/resource=frontend
radius.dev/resource-type=applications.core-containers
radapp.io/application=myapp
radapp.io/resource=frontend
radapp.io/resource-type=applications.core-containers
...
Annotations: prometheus.io/port: 9090
prometheus.io/scrape: true
Expand All @@ -111,9 +111,9 @@ The labels & annotations were set based on the following:
| `team.key2` | `containerValue2` | Container value overrides application value
| `team.contact.name` | `Frontend` | Container value overrides application value
| `team.contact.alias` | `frontend-eng` | Container value overrides application value
| `radius.dev/application` | `myapp` | Radius-injected label
| `radius.dev/resource` | `frontend` | Radius-injected label
| `radius.dev/resource-type` | `applications.core-containers` | Radius-injected label
| `radapp.io/application` | `myapp` | Radius-injected label
| `radapp.io/resource` | `frontend` | Radius-injected label
| `radapp.io/resource-type` | `applications.core-containers` | Radius-injected label
| **Annotations**
| `prometheus.io/port` | `9090` | Application annotation is applied
| `prometheus.io/scrape` | `true `| Application annotation is applied

0 comments on commit 46d3b26

Please sign in to comment.