Giter Site home page Giter Site logo

time-machine's Introduction

Step 1, Create Service

curl --silent --show-error localhost:8080 | jq  

Step 2, Containerise Service

docker build . -t time-machine

docker run  --name time-machine -p 8080:8080 time-machine --name time-machine 

Note : The health check

curl --silent --show-error -v  --silent --show-error localhost:8080/actuator/health | jq

Step 3, Add a namespace

kubectl config set-context --current --namespace=time-machine

Step 4, Fix the "test"

kubectl port-forward time-machine 8080:8080

kubectl delete pod time-machine

Step 5, Add a deployment and scale it

kubectl scale --current-replicas=1 --replicas=3 deployment/time-machine

Step 6, Routing , ingress and service

curl localhost/

Note: 
https://kubernetes.github.io/ingress-nginx/deploy/#quick-start

Step 7, So PODs

kubectl exec -it time-machine-7f8d4bc44b-5r9dl --container=netshoot  bash
tcpdump -v -i any -w file.pcap
tshark  -r file.pcap -T fields -e http.request.method  -e http.request.full_uri

time-machine's People

Watchers

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