Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy all services in Kubernetes #299

Closed
ubaid4j opened this issue Mar 4, 2021 · 18 comments
Closed

Deploy all services in Kubernetes #299

ubaid4j opened this issue Mar 4, 2021 · 18 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ubaid4j
Copy link
Owner

ubaid4j commented Mar 4, 2021

No description provided.

@ubaid4j ubaid4j added the enhancement New feature or request label Mar 4, 2021
@ubaid4j ubaid4j self-assigned this Mar 4, 2021
@ubaid4j
Copy link
Owner Author

ubaid4j commented May 17, 2021

  • take a hands on course on kubernetes

@ubaid4j
Copy link
Owner Author

ubaid4j commented May 17, 2021

Getting course at:
https://courses.edx.org/dashboard

@ubaid4j
Copy link
Owner Author

ubaid4j commented May 18, 2021

Chapter 1: Challanges

@ubaid4j
Copy link
Owner Author

ubaid4j commented May 19, 2021

Search on:

  • Event-driven Architecture
  • Service-Oriented Architecture
  • Pods (A Pod is the smallest scheduling unit in Kubernetes. It is a logical collection of one or more containers scheduled together, and the collection can be started, stopped, or rescheduled as a single unit of work. )

@ubaid4j
Copy link
Owner Author

ubaid4j commented May 19, 2021

Start From here: Chapter 2. Container Orchestration (Container Orchestration)

@ubaid4j
Copy link
Owner Author

ubaid4j commented May 20, 2021

Start From Here: Chapter 4 Introduction

@ubaid4j
Copy link
Owner Author

ubaid4j commented May 21, 2021

Start from Here: Master Node Components: API Server

@ubaid4j ubaid4j added this to the Release-0.0.1 milestone May 24, 2021
@ubaid4j
Copy link
Owner Author

ubaid4j commented May 24, 2021

Start From Chapter 5: Installing Kubernetes

@ubaid4j
Copy link
Owner Author

ubaid4j commented May 25, 2021

For Local Development we use minikube. minikube is a single-node Kubernetes cluster.
minikube Commands

  • minikube start to bootstrap Kubernetes single node cluster
  • minikube status check status of Kubernetes single node cluster status
  • minikube stop to stop Kuberneters cluster
  • minikube ssh to ssh into minikube
  • minikube dashboard to view the dashboard
  • minikube ip to view the IP address of minikube node
  • minikube service ${servcie-name} open the service in the browser
  • minikube addons enable ingress to enable ingress controller

@ubaid4j
Copy link
Owner Author

ubaid4j commented May 25, 2021

Starting From Chapter 7 Interoduction

@ubaid4j
Copy link
Owner Author

ubaid4j commented May 26, 2021

We can access kubernetes cluster (minikube) using the following methods:

  1. CLI (kubectl)
  2. Web UI
  3. Using APIs

@ubaid4j
Copy link
Owner Author

ubaid4j commented May 26, 2021

kubectl commands

  1. kubectl config view to view the kube config file ~/.kube/config
  2. kubectl cluster-info to view cluster info
  3. kubectl proxy to access dashboard from http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/#/overview?namespace=default
  4. kubectl create namespace ${name} to create namespace of name ${name}
  5. kubectl create -f ${signing-request.yaml} to create signing request object
  6. kubectl get csr to get all certificate signing request
  7. kubectl certificate approve ${csr-name} to approve certificate signing request
  8. kubectl get deployments to get all deployments in default namespace
  9. kubectl get replicasets to get all replicasets in default namespace
  10. kubectl get pods to get all pods in default namespace
  11. kubectl describe pod ${pod-name} to view the config info of given pod
  12. kubectl get pods -L ${col1},${col2} we can add number of columns along -L argument
  13. kubectl get pods -l ${selector} we can get the pods using the selector
  14. kubectl delete deployments ${deployment-name} to delete the deployment
  15. kubectl create -f ${fileName.yml} to create any object mentioned in the .yml file.

@ubaid4j
Copy link
Owner Author

ubaid4j commented May 26, 2021

Starting From Chapter 8

Pods
A Pod is the smallest and simplest Kubernetes object. It is the unit of deployment in Kubernetes, which represents a single instance of the application. A Pod is a logical collection of one or more containers, which:

  1. Are scheduled together on the same host with the Pod
  2. Share the same network namespace, meaning that they share a single IP address originally assigned to the Pod
  3. Have access to mount the same external storage (volumes).

@ubaid4j
Copy link
Owner Author

ubaid4j commented Jun 3, 2021

Start from Chapter 9
Authentication and Authorization Demo Guide

@ubaid4j
Copy link
Owner Author

ubaid4j commented Jun 9, 2021

Chapter 10: Services
Service: A Service offers a single DNS entry for a containerized application managed by the Kubernetes cluster, regardless of the number of replicas, by providing a common load balancing access point to a set of pods logically grouped and managed by a controller such as a Deployment, ReplicaSet, or DaemonSet.

@ubaid4j
Copy link
Owner Author

ubaid4j commented Jun 9, 2021

Start from Chapter 11:

  1. Liveness (checking health)
  2. Readiness (waiting for certain condition to meet)

@ubaid4j
Copy link
Owner Author

ubaid4j commented Jun 21, 2021

Start From Chapter 12:

@ubaid4j ubaid4j modified the milestones: Release-0.0.1, Release-0.0.2 Jul 3, 2021
@ubaid4j
Copy link
Owner Author

ubaid4j commented Jul 5, 2021

Start From Chapter 14:

ubaid4j added a commit that referenced this issue Jul 21, 2021
- add script to install kubectl
- make k8s-down.sh executable
ubaid4j added a commit that referenced this issue Jul 21, 2021
@ubaid4j ubaid4j mentioned this issue Jul 25, 2021
@ubaid4j ubaid4j closed this as completed Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant