CMD line Flashcards

1
Q

When creating a service, how is it linked to a pod ?

A

Via .yaml file config:

selector: app: POD (replace with sed)

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

Difference btw:
Deployment
and
Service

A

The service is serving a pod,
And a deployment (/workload) is managing a pod.
Deployment is the glue btw service and pod.
See for instance the yaml files:
<a>
deployment</a> vs <a>
service</a>

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

upgrade deployment image

A

kubectl set image deployment/$DEPLOYMENT $POD=gcr.io/feedly-social/$IMAGE:$VERSION

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

What are the replica sets and how do you get them ?

A

kubectl get rs

ReplicaSet, like ReplicationController, ensures that a specified number of pods replicas are running at one time. ReplicaSet supports the new set-based selector requirements as described in the labels user guide, whereas a Replication Controller only supports equality-based selector requirements

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

When is the Dockerfile executed ?

A

When we run build my_image

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

What is the FROM cmd line fro ?

A

You must always specify at the beginning of a Docker file, the image from which you are building : eg. FROM centos:centos7, FROM ml-common, ect…

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

How does canary work ? Why do we need a canary pool ?

A

The rolling update is done automatically.

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

What is an “object” ?

Are all objects in a namespace ?

A

An object is a resource (?), eg. pods, services, replication controllers, and others.

Most Kubernetes resources (e.g. pods, services, replication controllers, and others) are in some namespaces. However namespace resources are not themselves in a namespace. And low-level resources, such as nodes and persistentVolumes, are not in any namespace.

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