DevOps Curriculum

...String, Integer, Float, Boolean, Array, Hash Control flow: if, each, case, break... Functions: def, return, implicit return in methods and blocks Errors, raise and rescue Classes and inheritance The difference...

...addresses.size # => 3 Now write a method AddressBook#search that takes a query string and returns an array of Contact objects that match the given word in any of their properties...

Ändere die Konfiguration in der ConfigMap (valide Konfiguration). Du kannst beispielsweise mit return einen custom HTTP Statuscode zurückgeben. Wird die Konfiguration jetzt erfolgreich angewendet? Verwende kubectl rollout restart...

...Erstelle eine neue ConfigMap, die den gleichen Inhalt hat wie deine bisherige. Ändere den returncode nochmals auf einen neuen Wert. Editiere das Deployment und lass es die neue ConfigMap verwenden...

DevOps Curriculum

...die grundsätzlichen "Bestandteile" von iptables Tables Chains Rules Targets Du verstehst was drop, reject, return und accept machen. Du kennst die 4 default tables Wie kannst du dir iptables Regeln...

Best results in other decks

An association defined with has_many :through will return the same record multiple times if multiple join models for the same record exist (a n:m relation). To prevent this...

invoice_id product_id 11 1001 55 12 1001 55 Now #products will return the product with ID #55 two times for this invoice: invoice = Invoice.find(1001) invoice.products # => [# , # ]

...IN (?)", excluded_ids) When the exclusion list is empty, you would expect this to return all records. However, this is not what happens: # Broken example User.where("id NOT IN (?)", []).to...

...SELECT `users`.* FROM `users` WHERE (id NOT IN (NULL)) Passing an empty exclusion list returns no records at all! See below for better implementations. Rails 4+ Use the .not method...

Search in all decks