Let's look at some basic kubectl output options.
Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).
We can start with:
kubectl get no
| Below are the Big O performance of common functions of different Java Collections. | |
| List | Add | Remove | Get | Contains | Next | Data Structure | |
| ---------------------|------|--------|------|----------|------|--------------- | |
| ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array | |
| LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List | |
| CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array |
| _hashCode java/lang/Object.hashCode()I | |
| _getClass java/lang/Object.getClass()Ljava/lang/Class; | |
| _clone java/lang/Object.clone()Ljava/lang/Object; | |
| _dabs java/lang/Math.abs(D)D | |
| _dsin java/lang/Math.sin(D)D | |
| _dcos java/lang/Math.cos(D)D | |
| _dtan java/lang/Math.tan(D)D | |
| _datan2 java/lang/Math.atan2(DD)D | |
| _dsqrt java/lang/Math.sqrt(D)D | |
| _dlog java/lang/Math.log(D)D |
| import io.vertx.core.Vertx; | |
| import io.vertx.core.net.KeyCertOptions; | |
| import javax.net.ssl.*; | |
| import java.net.Socket; | |
| import java.security.*; | |
| import java.security.cert.X509Certificate; | |
| public class DynamicCertOptions implements KeyCertOptions { |
| #include <Servo.h> | |
| Servo myservo; // create servo object to control a servo | |
| // twelve servo objects can be created on most boards | |
| int pos = 90; // variable to store the servo position | |
| int resetPos= 100; | |
| int maxPos = 150; | |
| int minPos=50; |