Code Monkey home page Code Monkey logo

kubernetes-poc's Introduction

Kubernetes PoC

Consists of: external service, internal service, database

Architecture

Run on Kubernetes

Install the Nginx Ingress Controller:

helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm install nginx-ingress ingress-nginx/ingress-nginx

Install Cert-Manager:

kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.14.5/cert-manager.yaml
helm repo add jetstack https://charts.jetstack.io
helm repo update
helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace

Preparations:

  • Build the images for internal-service and external-service by running the deploy.sh scripts and terminate them again
  • Run minikube:
minikube start --apiserver-ips 0.0.0.0
minikube dashboard
  • Add the built images to the local minikube registry:
minikube image load image-name:tag

Deploy resources:

kubectl apply -f 01-mysql-deployment.yaml
kubectl apply -f 02-internal-service-deployment.yaml
kubectl apply -f 03-external-service-deployment.yaml
kubectl apply -f 04-external-service-ingress.yaml
kubectl apply -f 05-letsencrypt-clusterissuer.yaml

Update deployment:

Apply the YAML files again.

Get IP for minikube:

Used internal IP:

kubectl get nodes -o wide

Remove deployment:

kubectl delete deployment external-service
kubectl delete service external-service
kubectl delete ingress external-service-ingress

DigitalOcean:

Expected image names: registry.digitalocean.com/<your-registry-name>/<image-name>:<tag>

Connect with DigitalOcean: doctl registry login

kubernetes-poc's People

Contributors

pax523 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.