Skip to content →

Lee's Blog Posts

Kubernetes Host Networking

There is an option in Pod.spec called hostNetwork. What does it mean? My favorite way of learning about Kubernetes resources is by using the explain command. $ kubectl explain pod.sec.hostNetwork KIND: Pod VERSION: v1 FIELD: hostNetwork DESCRIPTION: Host networking requested for this pod. Use the host’s network namespace. If this…

Leave a Comment

Kubernetes Controller Manager Service Accounts

Each Kubernetes Controller Manager has a service account. $ kubectl get serviceaccount -n kube-system certificate-controller 1 85d cluster-autoscaler 1 15d cronjob-controller 1 85d daemon-set-controller 1 85d deployment-controller 1 85d disruption-controller 1 85d endpoint-controller 1 85d expand-controller 1 85d generic-garbage-collector 1 85d horizontal-pod-autoscaler 1 85d job-controller 1 85d … These service…

Leave a Comment

Smallest and Largest Numbers in Python

It’s useful to have a constant variable that represents the largest and smallest number that can be contained in an integer or floating-point number. In Python, these can be represented as so: small = float(‘-inf’) large = float(‘inf’) >>> large > 123123981029830192830198219999999999123192837 True >>> small < 0.0000000000000000001 True Source

Leave a Comment

Best of March 2020

Bill Kennedy’s Go Training Jerusalem artichokes from the farmer’s market Born to Run by Christopher McDougall Rich Roll Podcast with Zach Bush tgik Running around Prospect Park Chill Out by The KLF Playing piano Planting cucumber, basil, and spinach seeds and seeing them start to sprout

Leave a Comment