Application deployment Flashcards

1
Q

What are two important concepts in Kubernetes deployment ?

A

Infrastructure as Code (IaC) and GitOps

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

Why does kubernetes use yaml ?

A

Yaml Ain’t MarkUp Language, it uses Kubernetes because it easily portable and human readable

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

Why do you create different namespaces ?

A

In order to separate and organize your different applications and microservices.

Also great for seperating environments

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

How do you assign namespaces with kubectl and a yaml file?

A

kubectl apply -f namespace.yaml

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

How does Kubernetes ensure that your application is highly available ?

A

It uses pods which enables replication of your application. If one goes down you will have other replicas still running until it can be fixed/respawned

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

How does Kubernetes manage pod deployment ?

A

It uses a manifest written in yaml

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

Describe the fields used in the kind: Deployment manifest ?

A

apiVersion: the designated version of the app
kind: the type of Kubernetes object
metadata: name, namespace and label information
spec: replicas, selector, template

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

How do I get the port with get pods ?

A

kubectl get pods -o wide -n development

with the -o wide argument

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

How do I access another pod from within a pod or just check that my application is working when it is not connected to the internet?

A

I have to know the port the I am the other container is on.

Use a busybox pod, with wget and make a request in the busybox pod to the pod that I want to check

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

How do you check the logs of a kubernetes pod

A

kubectl logs {pod}

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

How to expose your kubernetes pod to the internet

A

Create service

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

Control plane is like mission control

API Server: exposes the kubernetes api with kubectl. See it with kubectl api-resources

etcd: saves data about the state of the cluster

scheduler: newly created pods

controler manager: makes sure things are running porperly

cloud controller manager: helps run on clouds

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

Worker nodes components ?

A

Worker nodes usual have a min of 3

kubetlet start of pod

kubelet: container runtime interface

kube-proxy: allows communication between pods

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

flow of apply

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

What are the 3 ways to deploy kubernetes apps ?

A

Deployemnt, daemonset and jobs

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