0
0
Kubernetesdevops~10 mins

StatefulSet ordering and naming 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 specify the number of replicas in a StatefulSet.

Kubernetes
replicas: [1]
Drag options to blanks, or click blank then click option'
A5
B1
C3
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Setting replicas to 0 will create no pods.
Using a string instead of a number.
2fill in blank
medium

Complete the code to set the service name used by the StatefulSet.

Kubernetes
serviceName: [1]
Drag options to blanks, or click blank then click option'
Adefault
Bmy-service
Cstateful-service
Dbackend
Attempts:
3 left
💡 Hint
Common Mistakes
Using a service name that does not exist.
Using the default service name incorrectly.
3fill in blank
hard

Fix the error in the pod naming pattern for StatefulSet pods.

Kubernetes
pod name example: [1]-0
Drag options to blanks, or click blank then click option'
Astatefulset
Bpod
Cdeployment
Dservice
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pod' or 'deployment' as the prefix causes naming errors.
4fill in blank
hard

Fill both blanks to complete the StatefulSet pod ordinal naming and startup order.

Kubernetes
Pods start in order from [1] to [2]
Drag options to blanks, or click blank then click option'
A0
B1
Cn-1
Dn
Attempts:
3 left
💡 Hint
Common Mistakes
Starting from 1 instead of 0.
Using n instead of n-1 for the last pod ordinal.
5fill in blank
hard

Fill all three blanks to complete the pod identity and volume claim template naming in a StatefulSet.

Kubernetes
pod name: [1]-[2]
volume claim template name: [3]-[2]
Drag options to blanks, or click blank then click option'
Aweb
Bstatefulset
Cdata
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing pod name and volume claim template names.
Using wrong ordinals.