Skip to content

Instantly share code, notes, and snippets.

@juniorz
juniorz / README.md
Last active May 12, 2022 07:57
Annoying Kubernetes Issues

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

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.

Software development hard truths

@juniorz
juniorz / brhue.md
Last active May 12, 2020 10:53
brhue.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"

  • 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 June 21, 2023 11:07
The jungle I live in

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

Aristoteles (supposedly)

Scope: Building and running web-scale distributed cloud systems with container technologies :P

Learning goals

  • Establish the challenges for engineering cloud-native systems (the problem space).
  • Establish the approaches to address those challenges (the solution space).

(not always bizarre, sometimes just backfiring daily design)

Kubernetes