-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
component/generatorRelated to a generator componentRelated to a generator componentenhancementNew feature or requestNew feature or request
Description
Problem Statement
The generated k8s manfiests use labels like service
and app
, they seem to be commonly used, but not official. Also the current setup creates a view in cilium hubble like this:
Proposed Solution
K8s has a set of "recommended labels" which are also supported by a variety of tools (e.g. cilium), we should use them instead of app
or service
.
The recommended labels are listed here: https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/
So we could do something like the following defaults
metadata:
labels:
app.kubernetes.io/name: <name of the service, database, loader>
app.kubernetes.io/instance: <name of the service, database, loader>-<randomly generated id>
app.kubernetes.io/version: <version of the used image>
app.kubernetes.io/component: <service or database or loader>
app.kubernetes.io/part-of: <default to ApplicationSimulator>
Additionally we allow them to be overwritten by the user.
Alternatives Considered
No response
Additional Context
No response
Checklist
- I have read the contributing guidelines
- I have verified this does not duplicate an existing feature request
Metadata
Metadata
Assignees
Labels
component/generatorRelated to a generator componentRelated to a generator componentenhancementNew feature or requestNew feature or request