0
0
Kubernetesdevops~10 mins

Service mesh vs library-based approach in Kubernetes - Interactive Practice

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

Complete the code to deploy a service mesh sidecar proxy in Kubernetes.

Kubernetes
apiVersion: v1
kind: Pod
metadata:
  name: myapp-pod
spec:
  containers:
  - name: myapp
    image: myapp:latest
  - name: [1]
    image: envoyproxy/envoy:v1.18-latest
Drag options to blanks, or click blank then click option'
Alibrary-agent
Bservice-mesh
Cmesh-controller
Dsidecar-proxy
Attempts:
3 left
💡 Hint
Common Mistakes
Using the application container name instead of the sidecar proxy name.
Confusing the service mesh control plane with the sidecar proxy.
2fill in blank
medium

Complete the statement to describe a library-based approach in microservices.

Kubernetes
In a library-based approach, the application code includes a [1] to handle networking and security.
Drag options to blanks, or click blank then click option'
Aservice mesh
Blibrary
Csidecar proxy
Dcontroller
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'sidecar proxy' which is part of service mesh, not library-based.
Confusing the control plane with the library.
3fill in blank
hard

Fix the error in the description of service mesh benefits.

Kubernetes
Service mesh provides [1] management, observability, and security without changing application code.
Drag options to blanks, or click blank then click option'
Amanual
Boptional
Cautomatic
Dpartial
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'manual' which contradicts the purpose of service mesh.
Selecting 'optional' which is vague and incorrect here.
4fill in blank
hard

Fill both blanks to complete the comparison between service mesh and library-based approach.

Kubernetes
Service mesh uses a [1] proxy, while library-based approach embeds [2] in the application code.
Drag options to blanks, or click blank then click option'
Asidecar
Ba separate
Ca library
Da sidecar
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up 'sidecar' and 'library' terms.
Using 'a separate' which is incomplete without proxy.
5fill in blank
hard

Fill all three blanks to complete the Kubernetes manifest snippet for injecting a service mesh sidecar.

Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
  name: myapp
spec:
  template:
    metadata:
      annotations:
        [1]: "enabled"
    spec:
      containers:
      - name: myapp
        image: myapp:latest
      - name: [2]
        image: [3]
Drag options to blanks, or click blank then click option'
Asidecar.istio.io/inject
Bistio-proxy
Cenvoyproxy/envoy:v1.18-latest
Dmesh.istio.io/inject
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong annotation keys.
Incorrect container names or images.