Skip to content

raysylverne/k8s_front-backend_appp

Repository files navigation

Deploy A Front & Backend App on Kubernetes

Project Description: Deploy an end-to-end application using MongoDB and Mongo Express on Kubernetes

Links

Screenshots

8

9

Commands

install hyperhit and minikube

brew update

brew install hyperkit

brew install minikube

kubectl

minikube

create minikube cluster

minikube start --vm-driver=hyperkit

kubectl get nodes

minikube status

kubectl version

delete cluster and restart in debug mode

minikube delete

minikube start --vm-driver=hyperkit

minikube status

kubectl commands

kubectl get nodes

kubectl get pod

kubectl get services

kubectl create deployment nginx-depl --image=nginx

kubectl get deployment

kubectl get replicaset

debugging

kubectl logs {pod-name}

kubectl exec -it {pod-name} -- bin/bash

create mongo deployment

kubectl create deployment mongo-depl --image=mongo

kubectl logs mongo-depl-{pod-name}

kubectl describe pod mongo-depl-{pod-name}

delete deplyoment

kubectl delete deployment mongo-depl

kubectl delete deployment nginx-depl

create or edit config file

vim nginx-deployment.yaml

kubectl apply -f nginx-deployment.yaml

kubectl get pod

kubectl get deployment

delete with config

kubectl delete -f nginx-deployment.yaml

#Metrics

kubectl top The kubectl top command returns current CPU and memory usage for a cluster’s pods or nodes, or for a particular pod or node if specified.

Future Updates

  • Add a JSON website that will pull and push data into database

Author

Raymond Sylverne

🤝 Support

Contributions, issues, and feature requests are welcome!

Give a ⭐️ if you like this project!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published