Differences

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

Link to this comparison view

devops:laboratoare:05 [2021/07/28 16:27]
bogdan.croitoru
devops:laboratoare:05 [2021/07/28 16:54] (current)
bogdan.croitoru
Line 230: Line 230:
  
 <​note>​cd ../​Laborator3</​note>​ <​note>​cd ../​Laborator3</​note>​
 +
 +==== 5.3. Daemonsets ====
 +
 +  * Daemonset-urile sunt resurse stateless, folosite pentru a putea rula, spre exemplu, un proces pe toate nodurile din cluster.
 +  * Daemonset-urile se asigura ca anumite nod-uri Kubernetes sau chiar toate ruleaza o copie a unui pod.
 +  * Editam continutul fisierului daemonset.yaml,​ actualizand "​student[id]"​ cu id-ul corespunzator
 +
 +<​note>​vi daemonset.yaml</​note>​
 +
 +  * Aplicam fisierul "​daemonset.yaml"​
 +
 +<​note>​kubectl apply -f daemonset.yaml</​note>​
 +
 +  * Verificam ca pod-urile au pornit. Vom vedea ca s-au creat 3 pod-uri, cate unul pe fiecare worker node.
 +
 +<​note>​kubectl get pods -owide
 +kubectl describe daemonset daemonset-studentid</​note>​
 +
 +  * Editam fisierul "​daemonset.yaml",​ decomentam liniile 16,17 si 18 .
 +
 +<​note>​vi daemonset.yaml</​note>​
 +
 +  * Aplicam din nou fisierul "​daemonset.yaml"​
 +
 +<​note>​kubectl apply -f daemonset.yaml</​note>​
 +
 +  * Unordered List ItemVerificam starea daemonset-ului si a pod-urilor. Observam ca s-a creat un pod si pe nodul master.
 +
 +<​note>​kubectl get daemonset
 +kubectl get pods -owide</​note>​
 +
 +  * Incercati sa stergeti un pod creat de daemonset.
 +
 +<​note>​kubectl delete pod daemonset-student[id]-xxxxx</​note>​
 +
 +  * Curatam mediul
 +
 +<​note>​kubectl delete daemonset daemonset-student[id]</​note>​
 +sau
 +<​note>​kubectl delete -f daemonset.yaml</​note>​
  
devops/laboratoare/05.1627478867.txt.gz ยท Last modified: 2021/07/28 16:27 by bogdan.croitoru
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0