0
0
Kubernetesdevops~20 mins

OperatorHub for community operators in Kubernetes - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
OperatorHub Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the primary purpose of OperatorHub in Kubernetes?

OperatorHub is a key resource in Kubernetes for managing operators. What is its main role?

AIt is a tool to monitor Kubernetes cluster health metrics.
BIt provides a centralized catalog to discover and install Kubernetes Operators.
CIt manages user authentication and authorization in Kubernetes.
DIt automates container image builds and pushes to registries.
Attempts:
2 left
💡 Hint

Think about where you find and add new operators to your cluster.

💻 Command Output
intermediate
1:30remaining
Output of listing community operators from OperatorHub CLI

What is the expected output of the following command?

kubectl get packagemanifests -n olm
AA list of available operators with their names, versions, and descriptions.
BAn error stating 'packagemanifests' resource not found.
CA list of all namespaces in the cluster.
DA list of running pods in the 'olm' namespace.
Attempts:
2 left
💡 Hint

Consider what 'packagemanifests' represent in Operator Lifecycle Manager (OLM).

Configuration
advanced
2:00remaining
Configuring OperatorHub to enable a community operator source

You want to enable a community operator source in OperatorHub by editing the OperatorHub custom resource. Which snippet correctly enables the community operators source?

Kubernetes
apiVersion: operators.coreos.com/v1
kind: OperatorHub
metadata:
  name: cluster
spec:
  sources:
  - name: community-operators
    disabled: false
A
spec:
  sources:
  - name: community-operators
    disabled: false
B
spec:
  sources:
  - name: community-operators
    enabled: true
C
spec:
  sources:
  - name: community-operators
    active: true
D
spec:
  sources:
  - name: community-operators
    status: enabled
Attempts:
2 left
💡 Hint

Check the correct field name to enable a source in OperatorHub spec.

Troubleshoot
advanced
2:00remaining
Troubleshooting why a community operator is not visible in OperatorHub UI

You installed a community operator source but it does not appear in the OperatorHub UI. What is the most likely cause?

AThe Kubernetes cluster version is too new for OperatorHub to work.
BThe user does not have permission to view pods in the 'olm' namespace.
CThe operator image is missing from the container registry.
DThe community operator source is disabled in the OperatorHub configuration.
Attempts:
2 left
💡 Hint

Check the OperatorHub source settings first.

🔀 Workflow
expert
3:00remaining
Steps to add a new community operator to OperatorHub catalog

Arrange the correct order of steps to add a new community operator to the OperatorHub catalog.

A1,3,2,4
B2,1,3,4
C1,2,3,4
D3,1,2,4
Attempts:
2 left
💡 Hint

Think about building, publishing, cataloging, then submitting.