Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/prabaprakash/kubernetes-with-serivce-mesh

Setup the Kube environment with few Web apps
https://github.com/prabaprakash/kubernetes-with-serivce-mesh

docker kubernetes kubernetes-cluster microservice nginx

Last synced: 3 days ago
JSON representation

Setup the Kube environment with few Web apps

Awesome Lists containing this project

README

        

Be ready with Digitial Ocean Kubernetes with 1 master and 1 node

[![React Json Dynamic Forms](https://raw.githubusercontent.com/prabaprakash/Kubernetes-With-Serivce-Mesh/master/service_mesh.png)](https://youtu.be/vRhaYKEewHI)

# 0. Installing Nginx Ingress

`$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.24.1/deploy/mandatory.yaml`

`$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.24.1/deploy/provider/cloud-generic.yaml`

`$ kubectl get svc --namespace=ingress-nginx`

TLS

`kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.8/deploy/manifests/00-crds.yaml`

`kubectl label namespace kube-system certmanager.k8s.io/disable-validation="true"`

`helm repo add jetstack https://charts.jetstack.io`

`helm install --name cert-manager --namespace kube-system jetstack/cert-manager --version v0.8.0`

for more checkout https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes

# 1. Echo APP

`$ cd 1. Echo APP`

`$ kubectl apply -f deployment.yaml`

`$ kubectl apply -f service.yaml`

`$ kubectl apply -f ingress.yaml`

# 2. Node APP

`$ cd 2. Node APP`

`$ kubectl apply -f deployment.yaml`

`$ kubectl apply -f service.yaml`

`$ kubectl apply -f ingress.yaml`

# 3. Cloud Torrent

`$ cd 3. Cloud Torrent`

`$ cd volume`

`$ kubectl apply -f 1.pod.yaml`

`$ kubectl apply -f 2.service.yaml`

`$ kubectl apply -f 3.persistantVolume.yaml`

`$ kubectl apply -f 4.persistantVolumeClaim`

`$ cd ..`

`$ kubectl apply -f deployment.yaml`

`$ kubectl apply -f service.yaml`

`$ kubectl apply -f ingress.yaml`

# Kubectl Get Nodes

`kubectl --kubeconfig="k8s-cluster-kubeconfig.yaml" get nodes`

# Kubectl Delete All

`kubectl delete daemonsets,replicasets,services,deployments,pods,rc --all`

`kubectl delete configmaps --all`

`kubectl delete crds kubectl get crds | grep 'istio.io' | awk '{print $1, $8}`

`kubectl delete ingress --all`

`kubectl delete pvc pv --all`