Prism supports the following annotations in the metadata section of all Kubernetes standard and custom resources:
-
prism.subkind: <subkind value>
The prism.subkind annotation qualifies a Kubernetes resource kind. For example, qualifying that a deployment is Liberty or Node.js. The subkind specification plays a role in action config map selection for a Kubernetes resource as it appears in the Prism Application and Component level views.
See Action Config Maps and UI layout for further details.
The <subkind value> must be a valid Kubernetes resource kind name. The subkind annotation is optional. There is no default. If not specified, the resource simply has no subkind. The following pre-defined subkinds are used by Prism:
- Liberty
- Nodejs
- Swift
Note: the character set for subkind:
The prism.subkind value must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is 'a-z?')
-
prism.platform : <platform value>
The prism.platform annotation identifies the platform on which a Kubernetes resource is deployed. This information is used primarily to promote end user understanding while interacting with an application through the Prism UI.
The <platform value> must be a valid Kubernetes resource kind name. The platform annotation is optional. The default is 'Kube'.
The following pre-defined platform values are used by Prism:
-
Kube
Specifies the platform is a Kubernetes cluster.
-
WASCell
Specifies the platform is a WebSphere Application Server Network Deployment cell.
-
VM
Specifies the platform is a virtual machine.
-
-
prism.platform.name:
The prism.platform.name annotation identifies the name of the platform on which a Kubernetes resource is deployed. This information is used primarily to promote end user understanding while interacting with an application through the Prism UI.
The <platform name value> must be a valid Kubernetes resource name. There is no default value. If platform name is not specified, the resource simply has not exposed the name of the platform on which it is deployed.