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.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment