Skip to content

Instantly share code, notes, and snippets.

@awssimplified
Created July 27, 2020 01:41
Show Gist options
  • Save awssimplified/0c596ab9894d439c69eb807d69409dba to your computer and use it in GitHub Desktop.
Save awssimplified/0c596ab9894d439c69eb807d69409dba to your computer and use it in GitHub Desktop.

Revisions

  1. awssimplified created this gist Jul 27, 2020.
    43 changes: 43 additions & 0 deletions Docker Notes 2
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,43 @@
    Docker Orchestration
    ----

    Kubernetes
    ---
    Takes declared state, and works to make that happen across a cluster.

    Node - 'kubelet' runs pods and talks 2 master. Node = Computer
    Pod - runs 1+ containers, exists on node
    Service - handles requests using LB
    Deployment - defines desired state

    Replication Controller - manages deployment state, ensures health, maintains history,

    Deployment Yamls specify spec for kubernetes deployment.

    ports section
    ---
    port -> accessible port within the cluster
    *targetPort* -> Port that a request on 8080 from within the cluster gets forwarded to.
    nodePort -> Port thats accessible outside the cluster, it gets mapped to 'port' as well

    replicas specify the number of pods
    kubernetes automatically replaces failed hardware - even if its a manual action.





    minikube start
    kubectl get pods
    kubectl get deployments
    minikube dashboard

    TODO
    ---
    Install Minikube (GUI)
    Get DockerHub Account

    Links
    ---
    https://nodejs.org/en/docs/guides/nodejs-docker-webapp/
    https://www.youtube.com/watch?v=1xo-0gCVhTU