buildingnoob.blogg.se

Docker and kubernetes certification
Docker and kubernetes certification








docker and kubernetes certification
  1. #DOCKER AND KUBERNETES CERTIFICATION WINDOWS 10#
  2. #DOCKER AND KUBERNETES CERTIFICATION DOWNLOAD#

Kubectl scale -replicas=2 deployment/myserviceĪgain Creating a Service of type LoadBalancer Kubectl delete deployment myservice Scaling and load balancingĬheck if the myservice deployment is running: Look from the NodeIP and the NodePort in the minikube dashboard. This format of this address is NodeIP:NodePort. Retrieve the service address: minikube service myservice -url Kubectl expose deployment myservice -type=NodePort -port=8080 ), by returning a CNAME recordĮxpose HTTP and HTTPS route using NodePort

  • ExternalName: Maps the Service to the contents of the externalName field (e.g.
  • NodePort and ClusterIP Services, to which the external load balancer routes, are automatically created.
  • LoadBalancer: Exposes the Service externally using a cloud provider’s load balancer.
  • You’ll be able to contact the NodePort Service, from outside the cluster, by requesting NodeIP:NodePort. A ClusterIP Service, to which the NodePort Service routes, is automatically created.
  • NodePort: Exposes the Service on each Node’s IP at a static port (the NodePort).
  • Choosing this value makes the Service only reachable from within the cluster.

    docker and kubernetes certification

    ClusterIP: Exposes the Service on a cluster-internal IP.Kubernetes ServiceTypes allow you to specify what kind of Service you want. Expose HTTP and HTTPS routes from outside the cluster to services within the clusterįor some parts of your application (for example, frontends) you may want to expose a Service onto an external IP address, that’s outside of your cluster. This address is tied to the lifespan of the Service, and will not change while the Service is alive. When created, each Service is assigned a unique IP address (also called clusterIP). List the containt of the container with: lsĭon't forget to exit the container with: exit Expose the Deployment through a serviceĪ Kubernetes Service is an abstraction which defines a logical set of Pods running somewhere in the cluster, Where podname is the name of the pods obtained with: kubectl get pods You can also enter inside the container in a interactive mode with: kubectl exec -it podname-rthr5 - /bin/bash Then retrieve the deployment in the minikube dashboard.Īctually the Docker container is runnung inside a Kubernetes pods (look at the pod in the dashboard). Retreive the IP address but notice that this IP address is ephemeral since a pods can be deleted and replaced by a new one. Get complete logs for a pods: kubectl describe pods The image used comes from the Docker hub: Kubectl create deployment myservice -image=efrei/my-service:2 Push the image to the docker hub: docker push yourDockerHubName/imageName:versionĮxample: docker push myDockerID/my-service:1 Create a kubernetes deployment from a Docker image Tag the docker image: docker tag imageID yourDockerHubName/imageName:versionĮxample: docker tag 1dsd512s0d myDockerID/my-service:1 Stop the container: docker stop containerID Publish the image to the Docker Hub Test the web service using a web browser: It displays hello. Start the container: docker run -p 4000:8080 -t my-serviceĨ080 is the port of the web service, while 4000 is the port for accessing the container. Test this project using Dockerīuild the docker image: docker build -t my-service. Then move to the sud directory with cd kubernetes-minikube/MyService where a DockerFile is.

    #DOCKER AND KUBERNETES CERTIFICATION DOWNLOAD#

    This project has already been built and the binary version is there:įirst of all, download and uncompress the project: This project contains a web service coded in Java, but the language doesn't matter. Access the dashboard using the following command: Minikube provides a dashboard (web portal).

    #DOCKER AND KUBERNETES CERTIFICATION WINDOWS 10#

    Docker installation installation for Mac, Windows 10 Pro, Enterprise, or EducationĬhoose Docker Desktop installation for Windows home Minikube runs a single-node Kubernetes cluster on your personal computer (including Windows, macOS and Linux PCs) so that you can try out Kubernetes, or for daily development work.

    docker and kubernetes certification docker and kubernetes certification

    Minikube is a tool that lets you run Kubernetes locally.










    Docker and kubernetes certification