Posts

Showing posts from February, 2021
Learn and Practice Docker

Kubernets - Objects

 Kubernets - Objects Pods Services Deployment Ports Lets draw a parallel between Fundamentals: A container is inside a pod. a pod is inside a replicaset. a replicaset is inside a deployment. Well similarly: A ClusterIP Service is part of a NodePort Service. A NodePort Service is Part of a Load Balancer Service. Configmap Nodes : Kubernetes runs your workload by placing containers into Pods to run on Nodes. A node may be a virtual or physical machine, depending on the cluster. Each node is managed by the control plane and contains the services necessary to run Pods Note

Docker Tutorial

 Docker Tutorial

How to Encrypt and Decrypt Data in Python using Cryptography Library

  How to Encrypt and Decrypt Data in Python using Cryptography Library

What is API Key ?

 API KEY When a server receives an API call, it needs to know two things: Who is making the call, and whether or not the call is legitimate. If you just had one item ("key"), and included it with every call, it would answer both questions. Based on the "key" the server knows who you are, and because only you know the key it proves that the call is actually coming from you. But including the key with every call is bad security practice: if someone can read even one of your messages in transit, your key is compromised, and someone can pretend to be you. So unless you're using HTTPS, this approach doesn't work. Instead, you can include a digital signature with every call, signed with some "secret" number. (The "secret" number itself is not sent). If an attacker manages to read your message, they won't be able to figure out this "secret" number from the signature. (This is how digital signatures work: they are one-way). But this...

TARGET _CLOUD

Image
 

Deploying Kubernetes pods : Imperative vs Declarative

Image
  K8 : Deployment Those are two different approaches: Imperative Management kubectl create  is what we call  Imperative Management . On this approach you tell the Kubernetes API what you want to create, replace or delete, not how you want your K8s cluster world to look like. Declarative Management kubectl apply  is part of the  Declarative Management  approach, where changes that you may have applied to a live object (i.e. through  scale ) are " maintained " even if you  apply  other changes to the object. You can read more about imperative and declarative management in the  Kubernetes Object Management  documentation.

Docker Book Purchased - 12 Feb

Book 

Docker Builer Command Feb 13

docker build command   The  build  command is used to build an image from a  Dockerfile , but the command has to be run in the same directory as the Dockerfile. When an image is built, the commands specified in the Dockerfile are executed. The operating system is installed​ along with all the packages required in the  Docker container . Because of this, Docker images can often take up a large amount of space. Syntax The  build  command is run on the command-line using the following syntax: docker build  < options >   < directory path or URL > The  directory path  will be the address of the directory where we want to set up our container. We can also provide a Git URL instead. If we want to include all the files/folders that are in the same directory as the Dockerfile, we can build the image like this: docker build  . The  .  operator specifies the current directory. The  optio...