Complete the code to add the recommended label for the app name.
metadata:
labels:
app.kubernetes.io/name: [1]The label app.kubernetes.io/name should have the app's name as its value, like my-app.
Complete the code to add the recommended label for the app version.
metadata:
labels:
app.kubernetes.io/version: [1]The label app.kubernetes.io/version should have the version string as its value, such as v1.0.0.
Fix the error in the label key for the app component.
metadata:
labels:
[1]: backendThe correct recommended label key for the component is app.kubernetes.io/component.
Fill both blanks to add recommended labels for the app's part and managed-by info.
metadata:
labels:
app.kubernetes.io/component: [1]
app.kubernetes.io/managed-by: [2]The app.kubernetes.io/component label describes the app part like frontend. The app.kubernetes.io/managed-by label shows the tool managing the app, like helm.
Fill all three blanks to create labels for app name, environment, and instance.
metadata:
labels:
app.kubernetes.io/name: [1]
app.kubernetes.io/environment: [2]
app.kubernetes.io/instance: [3]The app.kubernetes.io/name label is the app name like my-service. The app.kubernetes.io/environment label shows the environment like production. The app.kubernetes.io/instance label identifies the instance like instance-01.