Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
kubernates [2019/09/08 07:43]
root [Replication Controller]
kubernates [2019/12/18 02:24] (current)
root [Overview]
Line 17: Line 17:
  
 {{ https://​d33wubrfki0l68.cloudfront.net/​d35c2b375b43b4fa374ae834f95224975418e33f/​6b47b/​images/​blog/​2018-06-05-11-ways-not-to-get-hacked/​kubernetes-control-plane.png?​600px }} {{ https://​d33wubrfki0l68.cloudfront.net/​d35c2b375b43b4fa374ae834f95224975418e33f/​6b47b/​images/​blog/​2018-06-05-11-ways-not-to-get-hacked/​kubernetes-control-plane.png?​600px }}
 +
 +== Configuration Files == 
 +
  
  
Line 59: Line 62:
  ​kubectl exec node-js-pod -- curl <private ip address> ​  ​kubectl exec node-js-pod -- curl <private ip address> ​
 </​code>​ </​code>​
 +
 +=== Pods Services Accounts ===
 +
 +The "​default"​ service account is "​defaults"​. For production environments we would want a service account dependng on the authorization plugin and policy in use. We can get the service accounts with:
 +
 +<​code>​
 +kubectl get serviceAccounts
 +</​code>​
 +
 +see also: https://​kubernetes.io/​docs/​tasks/​configure-pod-container/​configure-service-account/​
  
 === Services ===  === Services === 
Line 129: Line 142:
 </​code>​ </​code>​
  
-== Local Setup ==  
  
-* https://​github.com/​kubernetes/​kops ​ 
-* https://​helm.sh/​ - Helm helps you manage Kubernetes applications — Helm Charts helps you define, install, and upgrade even the most complex Kubernetes application. 
-* AWS https://​docs.aws.amazon.com/​eks/​latest/​userguide/​getting-started.html 
- 
-== MiniKube ==  
- 
-Start/​stop/​status ​ 
- 
-<code java> 
-minikube start 
-minikube stop  
-minikube status 
-minikube: Running 
-cluster: Running 
-kubectl: Correctly Configured: pointing to minikube-vm at 192.168.99.100 
-</​code>​ 
- 
-To get the ip the minikube is running on  
- 
-<code java> 
-minikube ip 
-192.168.99.100 
-</​code>​ 
- 
- 
-Minikube context :  The context is what determines which cluster kubectl is interacting with. You can see all your available contexts in the ~/​.kube/​config file. 
- 
-<code java> 
-kubectl config use-context minikube 
-</​code>​ 
- 
-Verify that kubectl is configured to communicate with your cluster: 
- 
-<​code>​ 
-kubectl cluster-info 
-</​code>​ 
- 
-Open the Kubernetes dashboard in a browser: 
- 
-<code java> 
-minikube dashboard 
-</​code>​ 
- 
-that will open your browser to something like ..http://​192.168.99.100:​30000/#​!/​overview?​namespace=default 
- 
-Deploy an image to Kube use the [[https://​kubernetes.io/​docs/​reference/​generated/​kubectl/​kubectl-commands#​run | run]]  command ​ 
- 
-<code java> 
-kubectl run salesforce --image=wtr-ecomm-etl-salesforce/​wtr-etl-salesforce:​latest ​ --port=8080 
-</​code>​ 
- 
-To update a run we can **set** a new instance: 
-<code java> 
-kubectl set image deployment/​hello-node hello-node=hello-node:​v2 
-</​code>​ 
  
 == Kubectrl Pull Problem ==  == Kubectrl Pull Problem == 
Line 248: Line 205:
 Use the kubectl run command to create a Deployment that manages a Pod. The Pod runs a Container based on your hello-node:​v1 Docker image: Use the kubectl run command to create a Deployment that manages a Pod. The Pod runs a Container based on your hello-node:​v1 Docker image:
  
 +
 +<​code>​
 kubectl run hello-node --image=hello-node:​v1 --port=8080 kubectl run hello-node --image=hello-node:​v1 --port=8080
 View the Deployment: View the Deployment:
  
 kubectl get deployments kubectl get deployments
 +</​code>​
 +
 +See also [[Kubernates in Development]] with minikube ​
 +
 +== Stateful Kubernates == 
 +<​code> ​
 +kubectl create -f sdc.yaml
 +</​code>​
 +
 +
 +== Docker Kompose ==
 +https://​kubernetes.io/​docs/​tasks/​configure-pod-container/​translate-compose-kubernetes/​
  
 +Kompose It’s a conversion tool for all things compose (namely Docker Compose) to container orchestrators (Kubernetes or OpenShift).
 == Kubernates Gateways ==  == Kubernates Gateways == 
 * Kubernates nginx Ingress controller https://​github.com/​kubernetes/​ingress-nginx * Kubernates nginx Ingress controller https://​github.com/​kubernetes/​ingress-nginx
Line 258: Line 230:
 == Etcd == == Etcd ==
 A distributed,​ reliable key-value store for the most critical data of a distributed system A distributed,​ reliable key-value store for the most critical data of a distributed system
 +
 +== Monitoring ==
 +see also [[prometheus]]
 +Kubernates exposes
 +
 +
 == Links and Ref ==  == Links and Ref == 
 * [[https://​testdriven.io/​blog/​running-flask-on-kubernetes/?​source=4320ef6a6395 | A full article to spin up flask]] on kuberantes * [[https://​testdriven.io/​blog/​running-flask-on-kubernetes/?​source=4320ef6a6395 | A full article to spin up flask]] on kuberantes
 * [[https://​docs.datadoghq.com/​integrations/​kubernetes/​ | data dog kubernates]] blog  * [[https://​docs.datadoghq.com/​integrations/​kubernetes/​ | data dog kubernates]] blog 
 * My [[http://​www.client2server.com/​doku.php/​blog_post_video#​kubernates_playlist | Kubernates Blogs]] list  * My [[http://​www.client2server.com/​doku.php/​blog_post_video#​kubernates_playlist | Kubernates Blogs]] list 
 +* Lightweight Kubernetes. 5 less than k8s. https://​k3s.io from rancher ​
 +
 +== Links and Reference ==
 +* My {{https://​docs.google.com/​presentation/​d/​1E-CM4FnDDDp1N7HLSse3al8KlzgE41_4K5ueZkBfZqA/​edit?​usp=sharing | Getting Started with Kubernates}}
 
kubernates.1567953810.txt.gz · Last modified: 2019/09/08 07:43 by root
 
RSS - 200 © CrosswireDigitialMedia Ltd