Skip to content

Instantly share code, notes, and snippets.

@nehayward
Created April 30, 2018 18:30
Show Gist options
  • Save nehayward/44e71cf3cdc2f7d3db02a961110e028d to your computer and use it in GitHub Desktop.
Save nehayward/44e71cf3cdc2f7d3db02a961110e028d to your computer and use it in GitHub Desktop.
# Kubernetes + Minikube
### Commands
Linking docker and minikube
eval $(minikube docker-env)
### Deploy Local Container
* [Getting Started with Minikube and Docker](https://medium.com/@claudiopro/getting-started-with-kubernetes-via-minikube-ada8c7a29620)
* [Hello World](https://kubernetes.io/docs/tutorials/stateless-application/hello-minikube/)
* [Minikube Workflow](https://kubecloud.io/minikube-workflows-d7166e1da290)
### Notes
* Pods
* Collection of one or more container that work well together.
* Contain data volumes.
* Contains namespace
* Making building blocks.
* Share a network namespace
* Labels
* i.e. stage and roles: backend, production, testing, frontend.
* Reconciliation
* Get from current state to desired state with appropriate action
* Health check - If pod failed then get back to desired state.
* Delete, Health check, and create all use this.
* Replication Controller
* Combination of template and labels.
* Services
* Get a none status fix ip address and a dns. Every service should have load balancer at the edge.
* Ports, label, ip, dns name
Deployments
https://github.com/CiscoCloud/shipped/wiki/Deployments
Mini
* This is a single node
* http://kubernetes.io/docs/getting-started-guides/minikube/
* Download
* brew install minikube
* curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.7.1/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
* Install here
Mounting
* https://docs.docker.com/engine/tutorials/dockervolumes/
* mount docker volume on host
### Port Forward
kubectl port-forward monitoring-daemonset-drrr9 8090:8090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment