Interesting feature was introduced in the 1.27 kubernetes release - log of the host system can be retrieved by kubectl command
https://kubernetes.io/blog/2023/04/21/node-log-query-alpha/
https://kubernetes.io/blog/2023/04/21/node-log-query-alpha/
Kubernetes
Kubernetes 1.27: Query Node Logs Using The Kubelet API
Kubernetes 1.27 introduced a new feature called Node log query that allows viewing logs of services running on the node.
What problem does it solve? Cluster administrators face issues when debugging malfunctioning services running on the node. They usually…
What problem does it solve? Cluster administrators face issues when debugging malfunctioning services running on the node. They usually…
Kubernetes events help you understand how Kubernetes resource decisions are made and they can be helpful for debugging. Learn more about k8s events in this in-depth guide. https://www.containiq.com/post/kubernetes-events
Very helpful video that explains how network namespaces works in linux kernel https://www.youtube.com/watch?v=j_UUnlVC2Ss
YouTube
Network Namespaces Basics Explained in 15 Minutes
Get introduced to the basics of Network Namespaces in Linux.
💻Access full course here: https://kodekloud.com/p/certified-kubernetes-administrator-with-practice-tests/?coupon_code=YTNETNAM50
Network Namespaces are used by containerization technologies…
💻Access full course here: https://kodekloud.com/p/certified-kubernetes-administrator-with-practice-tests/?coupon_code=YTNETNAM50
Network Namespaces are used by containerization technologies…
Envio is a command-line tool that simplifies the management of environment variables across multiple profiles. It allows users to easily switch between different configurations and apply them to their current environment
https://github.com/humblepenguinn/envio
https://github.com/humblepenguinn/envio
GitHub
GitHub - envio-cli/envio: Envio is a modern and secure command-line tool that simplifies the management of environment variables
Envio is a modern and secure command-line tool that simplifies the management of environment variables - envio-cli/envio
Good start point for starting to work with loki and promtail https://akyriako.medium.com/kubernetes-logging-with-grafana-loki-promtail-in-under-10-minutes-d2847d526f9e
Medium
Kubernetes Logging with Grafana Loki & Promtail in under 10 minutes
Consolidate all your Kubernetes logs in a intuitive Grafana dashboard.
A case of migration from OpenShift to k8s https://blog.palark.com/migrating-from-openshift-to-vanilla-kubernetes/
Palark
Migrating an application running in OpenShift to vanilla Kubernetes
This guide demonstrates how to move a basic web app from the OpenShift platform to vanilla Kubernetes. It includes all related listings for this specific example and a cheatsheet for a general migration approach.
This will help you to check a default alerts when you just init a monitoring from groud https://awesome-prometheus-alerts.grep.to/rules.html
Spin up ready-to-code, disposable dev environments on your own servers. Self-hosted alternative to Gitpod and Github Codespaces.
https://github.com/hocus-dev/hocus
https://github.com/hocus-dev/hocus
GitHub
GitHub - hocus-dev/hocus: 🪄 Spin up ready-to-code, disposable dev environments on your own servers. Self-hosted alternative to…
🪄 Spin up ready-to-code, disposable dev environments on your own servers. Self-hosted alternative to Gitpod and Github Codespaces. - hocus-dev/hocus
A new alternative to DockerDesktop was released by RedHat https://developers.redhat.com/articles/2023/05/23/podman-desktop-now-generally-available#local_kubernetes_with_kind
Red Hat Developer
Podman Desktop 1.0: Local container development made easy | Red Hat Developer
As containerization continues to gain popularity in the world of enterprise software development, there is also growing demand for tools and technologies that make container management more accessible
A web-based UI for deploying and managing applications in Kubernetes clusters
https://github.com/vmware-tanzu/kubeapps
https://github.com/vmware-tanzu/kubeapps
GitHub
GitHub - vmware-tanzu/kubeapps: A web-based UI for deploying and managing applications in Kubernetes clusters
A web-based UI for deploying and managing applications in Kubernetes clusters - vmware-tanzu/kubeapps
In this blog post, Ahmet Alp Balkan explains the peculiar and undocumented behavior of file changes in Kubernetes Secret and ConfigMap volumes when using the inotify(7) syscall. He highlights that typical file watch events like IN_MODIFY or IN_CLOSE_WRITE don't occur for files in these volumes. Instead, only the IN_DELETE_SELF event is received, requiring code to handle re-establishing the monitor each time a file is updated.
Balkan discusses the resilient file reloads from disk and the AtomicWriter algorithm used by kubelet for atomic and consistent updates to Secret/ConfigMap volumes. He explains the file structure in a mounted Secret/ConfigMap volume and the reason behind receiving only the IN_DELETE_SELF event.
To handle this behavior, Balkan suggests mounting ConfigMaps/Secrets as directories, starting inotify watches on individual files, avoiding the use of IN_DONT_FOLLOW option, handling inotify deletion events, re-establishing inotify watches when receiving deletion events, and testing the file reloading logic on Kubernetes. He also mentions opening an issue to document this behavior in the official Kubernetes documentation.
https://ahmet.im/blog/kubernetes-inotify/index.html
Balkan discusses the resilient file reloads from disk and the AtomicWriter algorithm used by kubelet for atomic and consistent updates to Secret/ConfigMap volumes. He explains the file structure in a mounted Secret/ConfigMap volume and the reason behind receiving only the IN_DELETE_SELF event.
To handle this behavior, Balkan suggests mounting ConfigMaps/Secrets as directories, starting inotify watches on individual files, avoiding the use of IN_DONT_FOLLOW option, handling inotify deletion events, re-establishing inotify watches when receiving deletion events, and testing the file reloading logic on Kubernetes. He also mentions opening an issue to document this behavior in the official Kubernetes documentation.
https://ahmet.im/blog/kubernetes-inotify/index.html
Ahmet Alp Balkan
Pitfalls reloading files from Kubernetes Secret & ConfigMap volumes
Files on Kubernetes Secret and ConfigMap volumes work in peculiar and undocumented ways when it comes to watching changes to these files with the inotify(7) syscall. Your typical file watch that works outside Kubernetes might not work as you expect...