0
0
Kubernetesdevops~10 mins

Organizing with recommended labels in Kubernetes - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to add the recommended label for the app name.

Kubernetes
metadata:
  labels:
    app.kubernetes.io/name: [1]
Drag options to blanks, or click blank then click option'
Amy-app
Bapp.kubernetes.io/name
Cversion
Denvironment
Attempts:
3 left
💡 Hint
Common Mistakes
Putting the label key as the value instead of the app name.
2fill in blank
medium

Complete the code to add the recommended label for the app version.

Kubernetes
metadata:
  labels:
    app.kubernetes.io/version: [1]
Drag options to blanks, or click blank then click option'
Av1.0.0
Bprod
Clatest
Dapp.kubernetes.io/version
Attempts:
3 left
💡 Hint
Common Mistakes
Using environment names instead of version numbers.
3fill in blank
hard

Fix the error in the label key for the app component.

Kubernetes
metadata:
  labels:
    [1]: backend
Drag options to blanks, or click blank then click option'
Aapp-component
Bapp.kubernetes.io/name
Ccomponent
Dapp.kubernetes.io/component
Attempts:
3 left
💡 Hint
Common Mistakes
Using just 'component' or 'app-component' which are not standard keys.
4fill in blank
hard

Fill both blanks to add recommended labels for the app's part and managed-by info.

Kubernetes
metadata:
  labels:
    app.kubernetes.io/component: [1]
    app.kubernetes.io/managed-by: [2]
Drag options to blanks, or click blank then click option'
Afrontend
Bhelm
Cbackend
Dkustomize
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the values or using non-standard labels.
5fill in blank
hard

Fill all three blanks to create labels for app name, environment, and instance.

Kubernetes
metadata:
  labels:
    app.kubernetes.io/name: [1]
    app.kubernetes.io/environment: [2]
    app.kubernetes.io/instance: [3]
Drag options to blanks, or click blank then click option'
Amy-service
Bproduction
Cinstance-01
Ddev
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping environment and instance values.