5. Observability Flashcards

1
Q

Part of observability

A

Readliness Probes
Container Logging
Monitor and Debug Applications
Liveness Probes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

POD Status | POD Conditions

A

Status
- Pending >
Scheduler try to where to place the pod.
To figure out why the POD remain in that state
$ kubectl describe pod <pod-name>
- ContainerCreating >
when the container it's creating in a node.
- Running >
until the program completed</pod-name>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

POD Conditions

A

PodSchedule TRUE | FALSE
Initialized TRUE | FALSE
ContainersReady TRUE | FALSE
Ready TRUE | FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Readliness Probes - HTTP Test

A
readlinessProbe:
  httpGet:
    path: /api/ready
    port: 8080
  initialDelaySeconds: 10
  periodSeconds: 5
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Readliness Probes - TCP Test

A
readlinessProbe:
  tcpSocket:
    port: 3306
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How is defined a Readliness Probes - Exec command

A
readlinessProbe:
  tcpSocket:
    port: 3306
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Liveness Probes

A
apiVersion: v1
kind: Pod
metadata:
  name: simple-webapp
  labels:
    name: simple-webapp
spec:
  containers:
  - name: simple-webapp
    image: simple-webapp
    ports:
      - containersPort: 8080
    livenessProbe: 
      httpGet:
        path: /api/healthy
        port: 8080
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Liveness Probes - HTTP test

A
livenessProbe:
  httpGet:
    path: /api/healthy
    port: 8080
  initialDelaySeconds: 10
  periodSeconds: 5
  failureThreshold: 8
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Liveness Probes - TCP Test

A
livenessProbe:
  tcpSocket:
    probe: 3306
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Liveness proves - exec command

A
livenessProbe:
  exec:
    command:
      - cat
      - /app/is_healthy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Container logging

A

```
kubectl logs <pod-name> --follow
~~~</pod-name>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How we can monitor the pods

A
kubectl top pod
How well did you know this?
1
Not at all
2
3
4
5
Perfectly