Reference: kelseyhightower/kubernetes-the-hard-way
Reference: step 1
Verification:
Reference: kelseyhightower/kubernetes-the-hard-way
Reference: step 1
Verification:
Tools
Presentations
Picking the right architecture = Picking the right battles + Managing trade-offs
| #List traversal | |
| range(start, stop, hop) | |
| range(n) # [0,1,...,n-1] | |
| range(1,n) # [1,...,n-1] | |
| range(1,n,2) # [1,3,5,...,n-1] if n is even, or [1,3,5,...,n-2] if n is odd | |
| range(n,-1,-1) # [n,n-1,n-2,...,0] | |
| range(len(arr)) # Provides indices of an array arr | |
| range(len(arr)-1,-1,-1) # Provides indices of arr backwards | |
| # List slicing |
| Questions are not from any actual exam!!! | |
| Q: Create a job that calculates pi to 2000 decimal points using the container with the image named perl | |
| and the following commands issued to the container: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"] | |
| Once the job has completed, check the logs to and export the result to pi-result.txt. | |
| Solution: |
| <!DOCTYPE NETSCAPE-Bookmark-file-1> | |
| <!-- This is an automatically generated file. | |
| It will be read and overwritten. | |
| DO NOT EDIT! --> | |
| <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
| <TITLE>Bookmarks</TITLE> | |
| <H1>Bookmarks</H1> | |
| <DL><p> | |
| <DT><H3 ADD_DATE="1579618265" LAST_MODIFIED="1582022136" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Bar</H3> | |
| <DL><p> |