Showing posts with label yaml. Show all posts
Showing posts with label yaml. Show all posts

Tuesday, May 25, 2021

Kubernetes Learning Task 03 -Set Limits for Resources in Kubernetes

Set Limits for Resources in Kubernetes

Create a pod named httpd-pod and a container under it named as httpd-container, use httpd image with latest tag, and set the following resource limits:

Requests: Memory: 10Mi, CPU: 1

Limits: Memory: 20Mi, CPU: 2


* This is a learning task and you can try to do it in your own learning environment. I have done a sample solution for this task on Ubuntu OS with a single node cluster.

Solution:

check below the sample solution video for the above task.


Self-Learning Task:

Hope you all already learned about the architecture and components of  Kubernetes.
In this section for learning by yourself about a topic from each task.
From this task, learn about pods.


PLEASE SUPPORT ME BY
LIKE || SUBSCRIBE || COMMENTS  on MY YOUTUBE CHANNEL AND BLOG 

STAY TUNED FOR MORE VIDEOS.......

#Learn    #Practice    #Re-Learn    #Improve    #Motivate
    #Continue-Learning    #Apply    #Get-Help    #Help-Others

Monday, May 24, 2021

Kubernetes Learning Task 02- Deploy Apache Web Server on Kubernetes

  Deploy Apache Web Server on Kubernetes

        
1. Create a namespace named as httpd-namespace-dev

2. Create a service named as httpd-service-dev under same namespace, targetPort should be 80 and nodePort should be 30005.

3. Create a deployment named as httpd-deployment-dev under the same namespace as mentioned above. Use image httpd with latest tag , and container name should be httpd-container-dev and        make sure replicas counts are 2
Set labels app to httpd_app_dev.

* This is a learning task and you can try to do it in your own learning environment. I have done a sample solution for this task on Ubuntu OS with a single node cluster.

Solution:

check below the sample solution video for the above task.


Self-Learning Task.

Hope you all already learned about the architecture and components of  Kubernetes.
In this section for learning by yourself about a topic from each task.
From this task, learn about  namespace 
what is it/ why we use it


PLEASE SUPPORT ME BY
LIKE || SUBSCRIBE || COMMENTS  on MY YOUTUBE CHANNEL AND BLOG 

STAY TUNED FOR MORE VIDEOS.......

#Learn    #Practice    #Re-Learn    #Improve    #Motivate
    #Continue-Learning    #Apply    #Get-Help    #Help-Others

Kubernetes Learning Task 01- NGINX Deployment in Kubernetes

 NGINX basic deployment in Kubernetes

1. Create a deployment using nginx image with latest tag and name it as nginx-deployment. App labels should be app: nginx-app and type: front-end. The container should be named as nginx-container; also make sure replica counts are 1.

2. Also create a service named nginx-service and type NodePort. The targetPort should be 80 and nodePort should be 30010.

         3. Make sure pods are running state.

* This is a learning task and you can try to do it in your own learning environment. I have done a sample solution for this task on Ubuntu OS with a single node cluster.

Solution:

check below the sample solution video for the above task.


Self-Learning Task.

Hope you all already learned about the architecture and components of  Kubernetes.
In this section for learning by yourself about a topic from each task.
From this task, learn about  deploymentservice, and also service type called NodePort 


PLEASE SUPPORT ME BY
LIKE || SUBSCRIBE || COMMENTS  on MY YOUTUBE CHANNEL AND BLOG 

STAY TUNED FOR MORE VIDEOS.......

#Learn    #Practice    #Re-Learn    #Improve    #Motivate
    #Continue-Learning    #Apply    #Get-Help    #Help-Others

Docker Learning Task 02 - How to create a basic docker network

 How to create a basic docker network 1. Create a docker network named  mynetwork . 2. Configure it to use bridge drivers. 3. Set it to use ...