Giter Club home page Giter Club logo

ids721-individual2's Introduction

Kubernetes examples

Lab Minikube (based on official tutorial on https://kubernetes.io)

  1. Launch GitHub Codespace
  2. Run minikube start to start cluster
  3. Run minikube dashboard --url to view dashboard in a new terminal
  4. Hover over link and "follow link"
  5. Create a deployment: kubectl create deployment hello-node --image=registry.k8s.io/e2e-test-images/agnhost:2.39 -- /agnhost netexec --http-port=8080
  6. View deployment: kubectl get deployments
  7. View pods: kubectl get pods
  8. Create service and expose it: kubectl expose deployment hello-node --type=LoadBalancer --port=8080
  9. View services: kubectl get services
  10. Curl the url shown, for example: curl http://192.168.49.2:31839 or change to your URL.
  11. Cleanup
kubectl delete service hello-node
kubectl delete deployment hello-node
minikube stop

Docker

docker build . docker image ls #find image docker run -p 127.0.0.1:8080:8080 93fa55efa692

Cloud9 + ECR + App Runner

continuous-delivery

  • Clone repo into Cloud9 (pick a machine with decent size CPU and RAM if possible, but students should use micro)
  • Add ssh keys to GitHub
  • resize to bigger disk
  • Create virtualenv and add to bashrc and source python3 -m venv ~/.venv && echo 'source ~/.venv/bin/activate' >> ~/.bashrc && source ~/.bashrc
  • cd into checkout and run make install
  • Preview running FastAPI app after running: python main.py

After pushing the image to ECR and deployed by App runner

Success

ids721-individual2's People

Contributors

tobytyl avatar

Watchers

 avatar

Forkers

nogibjj

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.