-
Startup Probe
Startup probes have recently been introduced to Kubernetes as an alternative way of managing slow-starting containers. When a Pod is started, the startup probe is run before any other probing of the Pod is started. The startup probe proceeds until it either times out (in which case the Pod is restarted) or it succeeds, at which…
-
Readiness Probe
Of course, liveness isn’t the only kind of health check we want to perform. Kubernetes makes a distinction between liveness and readiness. Liveness determines if an application is running properly. Containers that fail liveness checks are restarted. Readiness describes when a container is ready to serve user requests. Containers that fail readiness checks are removed from service load balancers.…
-
Liveness Probe
Once the kuard process is up and running, we need a way to confirm that it is actually healthy and shouldn’t be restarted. Liveness probes are defined per container, which means each container inside a Pod is health checked separately. The preceding Pod manifest uses an httpGet probe to perform an HTTP GET request against the /healthy endpoint on port 8080 of the kuard container. The probe…
-
kubectl commands
print the IP address of the specified Pod: see the logs for a running container: use the exec command to execute a command in a running container: If you don’t have bash or some other terminal available within your container, you can always attach to the running process: You can also copy files to and from a container using the cp command: opens up…
-
Installing Kubernetes with GKE
Once you have gcloud installed, set a default zone: Then you can create a cluster: This will take a few minutes. When the cluster is ready, you can get credentials for the cluster using:
-
Transfers for Large Files
The previous recipe covered transfers with a large number of operations; this one is targeted at individual large files. Upload the file as several simultaneous chunks and observe transfer speed. If your previous upload saturated your link, you may not see a performance increase. You’ll notice we set the file size threshold that triggers parallel…
-
Transfers by Multiprocessing
Add -m to multiprocess your transfer and observe greatly increased speed: Adding -m to the gsutil causes most commands to run in parallel, using a combination of multithreading and multiprocessing. The number of threads and processes are set by parallel_thread_count and parallel_process_count. These can be set in your .boto configuration file or set on the command line with the -o option flag. In general, if you…
-
knowledge over wealth
Remember, knowledge is better than wealth, because knowledge protects you, while you have to guard wealth. Wealth decreases if you spend it, but the more you make use of knowledge, the more it increases.
-
Choose the Good
There will never be any shortage of good people in the world. All you need to do is seek them out and bring as many of them into your life as possible. Keep the rest, and the hell, out.
-
Cloud Logging practice
Only logs that contain log entries are listed. Kubernetes events: