Difficulty: Fácil
Estimated Time: 10 minutes

Docker - Introdução a administração de containers

Step 1 of 3

Step 1

The Master is the controlling unit for the cluster. The Master will manage scheduling of new containers and understand which node they run on.

The Master will communicate with the API and nodes to complete the required tasks. Launching the Master will launch more services it requires to run the cluster. The Controller Manager handles replication. The Scheduler Server handles tracking resource use. It ensure containers can run on it's assigned node without overloading capacity.

docker run -d --name=kubs \ --volume=/:/rootfs:ro \ --volume=/sys:/sys:ro \ --volume=/dev:/dev \ --volume=/var/lib/docker/:/var/lib/docker:rw \ --volume=/var/lib/kubelet/:/var/lib/kubelet:rw \ --volume=/var/run:/var/run:rw \ --net=host \ --pid=host \ --privileged=true \ gcr.io/google_containers/hyperkube:v1.1.2 \ /hyperkube kubelet \ --containerized \ --hostname-override="" \ --address="" \ --cluster_dns= --cluster_domain=cluster.local \ --api-servers=http://localhost:8080 \ --config=/etc/kubernetes/manifests-multi

hostname-override and address is used to bind the master to all IP addresses.

_clusterdns and _clusterdomain defines the DNS server (started in a future step) that allows containers to communicate via well-known names.

api-servers defines the URL the Master should use to communicate with the api.

config defines the manifest to use. manifests-multi is used with DNS. It defines the configuration for the cluster.

This tab will not be visible to users and provides only information to help authors when creating content.

Creating Katacoda Scenarios

Thanks for creating Katacoda scenarios. This tab is designed to help you as an author have quick access the information you need when creating scenarios.

Here are some useful links to get you started.

Running Katacoda Workshops

If you are planning to use Katacoda for workshops, please contact [email protected] to arrange capacity.

Debugging Scenarios

Below is the response from any background scripts run or files uploaded. This stream can aid debugging scenarios.

If you still need assistance, please contact [email protected]