Skip to content

Instantly share code, notes, and snippets.

@juniorz
juniorz / README.md
Last active May 12, 2022
Annoying Kubernetes Issues
View README.md

kubectl logs has quirks due to log-rotation

kubectl logs does not take into account container log rotation (kubelet config containerLogMaxSize and containerLogMaxFiles). You can still find the latest rotated logs in /var/log/pods/<namespace>_<pod-name>_<pod-uid>/ though.

Don’t assume --since=0s will have all logs since the container started because it won't look into previous log files. Don't assume a long-running --follow will always give you latest logs, because it will not switch over to the new log after current is rotated.

See: kubernetes/kubernetes#59902

KUBECONFIG is not portable

View k8s-upgrades.md

1.16

  • Deprecation of kubernetes.io/role label.

  • Deprecation of API versions.

  • Action: Make sure helm charts release state also have the manifests with the new API version.

View hard-truths.md

Software development hard truths

View brhue.md
View software-development-definitions.md

computer programs are the tangible output of a thought process - the conversion of a thought process into a product.

Edward H. Bersoff, "Elements of Software Configuration Management"

software testing alone does not produce or ensure good software -- it only gives an indication of error frequency that can be expected and [...] verification only shows correspondence to functional requirements.

Joseph P. Cavano and James A. McCall, "A Framework for the Measurement of Software Quality"

View software-development-anecdotes.md
  • Dead Space development struggling to integrate changes from multiple teams/experts: https://youtu.be/BQ3iqq49Ew8?t=655
  • Desktop apps: once in a while you kill a process eating all you RAM. Web apps: once in a while you kill the Google Chrome GPU task eating all your RAM after you open a GIF.
  • Today's browser wars: migrating a customer's 100s open tab from Chrome to Firefox/Edge/Opera/Safari.
  • Why it is important to make experimention cheap.
  • The origin of Control Plane vs Data Plane and how the concept influenced UNIX design
@juniorz
juniorz / platform-engineering.md
Last active Oct 16, 2020
Reflections on the product space and the solution space for web-scale distributed containerized cloud systems
View platform-engineering.md

"Those that know, do. Those that understand, teach."

Aristoteles (supposedly)

Learning goals

  • Establish a taxonomy for this segment of software development industry (the domain).
  • Define evaluation criteria for products in the solution space.
  • Assess the landscape of the solution space and how they fit the market.
  • Better understand the problem space.
View bizarre-daily-design.md

(not always bizarre, sometimes just backfiring daily design)

Kubernetes