This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Course - https://www.udemy.com/kubernetes-microservices | |
| k8s example - https://github.com/apssouza22/k8s-microservices | |
| Istio example - https://github.com/apssouza22/service-mesh-istio | |
| ## K8s commands | |
| Delete all services | |
| kubectl delete daemonsets,replicasets,services,deployments,pods,rc -n namespace-name —all | |
| - kubectl describe pod pod_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Money = (function(){ | |
| function Money(qty) { | |
| this.whole = 0; | |
| this.cents = 0; | |
| this.add(qty); | |
| } | |
| Money.prototype.calc = function() { | |
| while (this.cents > 100) { | |
| this.cents -= 100; | |
| this.whole += 1; |