Difference between revisions of "IT-SDK-Kubernetes-Basics"

From wiki.samerhijazi.net
Jump to navigation Jump to search
(Source)
(Source)
Line 3: Line 3:
 
* http://kubernetesbyexample.com/
 
* http://kubernetesbyexample.com/
 
* https://kubernetes.io/docs/reference/kubectl/cheatsheet/
 
* https://kubernetes.io/docs/reference/kubectl/cheatsheet/
 +
=Liveness, Readiness and Startup Probes=
 +
* Probe: describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
 +
* initialDelaySeconds: wait x seconds before performing the first probe.
 +
* periodSeconds: every x seconds to perform probe.
 +
* timeoutSeconds: wait x seconds after which the probe times out.
 +
* successThreshold: x times to considered successful after having failed (Defaults=1).
 +
* failureThreshold: x times to giving up after fails (Defaults=3). Giving up in case of liveness probe means restarting the container.
 
=Source=
 
=Source=
 
<pre class="code">
 
<pre class="code">

Revision as of 12:45, 17 July 2021

Ref.

Liveness, Readiness and Startup Probes

  • Probe: describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
  • initialDelaySeconds: wait x seconds before performing the first probe.
  • periodSeconds: every x seconds to perform probe.
  • timeoutSeconds: wait x seconds after which the probe times out.
  • successThreshold: x times to considered successful after having failed (Defaults=1).
  • failureThreshold: x times to giving up after fails (Defaults=3). Giving up in case of liveness probe means restarting the container.

Source

kubectl run  --image=nginx -o yaml --dry-run=client > pod-defination.yaml
kubectl create deployment  --image=nginx --replicas=3 -o yaml --dry-run=client > deployment-defination.yaml

minikube

minikube start
minikube dashboard
minikube stop		            #Halt the cluster:
minikube config set memory 16384    #Set memory limit
minikube addons list	            #Browse the catalog
minikube start -p aged --kubernetes-version=v1.16.1		#Create a second cluster
minikube delete --all		    #Delete all of the minikube