Giter VIP home page Giter VIP logo

devops-project-3's Introduction

DevOps-project-3

Basic Kubernetes infrastructure; deploying a webapp and a mongo-db on a minikube cluster node.

ng 1 changed file with 0 additions and 15 deletions. 15 changes: 0 additions & 15 deletions15
README @@ -1,15 +0,0 @@

DevOps-project-3

Basic Kubernetes infrastructure

Screenshot from 2023-09-07 09-56-50

Basic interface commands used

Install minikube

Install Kubectl

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"	
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"	
echo "$(cat kubectl.sha256)  kubectl" | sha256sum --check	
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl	
kubectl version --client	
kubectl version --client --output=yaml	

Start minikube (using docker as driver)

minikube start –driver=docker

Deploy configuration files

kubectl apply -f mongo-config.yaml 
kubectl apply -f mongo-secret.yaml 
kubectl apply -f mongo.yaml 
kubectl apply -f webapp.yaml

Finding ip of minikube

minikube ip

or

kubectl get node -o wide

Kubectl basic interface commands

kubectl get <all|configmap|secret|pod|service>

kubectl describe service <name of service. e.g. webapp-service>
kubectl logs mongo-deployment-85d45f7888-gjvf4 //log of actions on a module
kubectl logs mongo-deployment-85d45f7888-gjvf4 -f //streamed log of a module

devops-project-3's People

Contributors

sherif-elshafei avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.