Skip to content

Instantly share code, notes, and snippets.

View akhilerm's full-sized avatar

Akhil Mohan akhilerm

View GitHub Profile
@akhilerm
akhilerm / pod_sandbox_metrics.json
Created August 24, 2025 17:37
Sample crictl metricsp output
{
"podMetrics": [
{
"podSandboxId": "0c7b70cf580b2baccbfffd1fb5957ead926c631a04eba44ed62345d140aea379",
"metrics": [
{
"name": "container_network_receive_bytes_total",
"timestamp": "1756056774580590522",
"metricType": "COUNTER",
"labelValues": [

Welcome to the v1.6.24 release of containerd!

The twenty-fourth patch release for containerd 1.6 contains various fixes and updates.

Notable Updates

  • CRI: fix leaked shim caused by high IO pressure (#9004)
  • Update to go1.20.8 (#9073)
  • Update runc to v1.1.9 (#8966)
  • Backport: add configurable mount options to overlay snapshotter (#8961)
@akhilerm
akhilerm / prepare_dev_env.sh
Last active August 20, 2023 07:26
Script to setup dev environment for alexa hosted skill development
#!/bin/bash
# script to prepare the development environment for alexa hosted skill development
set -o xtrace
set -o errexit
set -o nounset
set -o pipefail
merge_skill_json () {
git checkout dev -- skill-package/skill_template.json
@akhilerm
akhilerm / Dockerfile
Created June 27, 2023 11:44
Reproducing containerd nightly build failure locally
FROM ubuntu:22.04
COPY ./setup.sh /bin/setup.sh
@akhilerm
akhilerm / api-split.sh
Created October 4, 2022 12:33
Script to extract api from containerd whenever a new tag is pushed to containerd/containerd
#!/usr/bin/env bash
# Usage
# api-split.sh https://github.com/akhilerm/containerd-api https://github.com/akhilerm/containerd release/1.6 v1.6.10
# the tag should exist in the source repo, also source branch should exist
API_REPO=$1
#API_REPO="https://github.com/akhilerm/containerd-api"
SOURCE_REPO=$2
@akhilerm
akhilerm / cowin.py
Created May 27, 2021 17:19
cowin slot
import os
import requests
import json
import datetime
import time
import sys
url = "https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict"
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0"}
@akhilerm
akhilerm / minio-official.yaml
Created November 15, 2020 17:48
Deploy Sample Minio application
#Create namespace
apiVersion: v1
kind: Namespace
metadata:
name: minio
---
apiVersion: apps/v1
kind: Deployment
metadata:
# This name uniquely identifies the Deployment
Flowchart for local pv upgrade
NOTE: Does not support upgrade of localPV rawblock
For Cstor, the same flowchart as below applies, but instead of using FSUUID annotation, partition table UUID
annotation will be used.
@akhilerm
akhilerm / example-blockdevice.yaml
Created September 16, 2019 04:27
Example BlockDevice custom resource to be used in OpenEBS.
apiVersion: openebs.io/v1alpha1
kind: BlockDevice
metadata:
name: example-blockdevice
labels:
kubernetes.io/hostname: <host name of the node in which disk/blockdevice is attached> # like gke-openebs-user-default-pool-044afcb8-bmc0
ndm.io/managed: "false" # for manual disk creation put false
ndm.io/blockdevice-type: blockdevice
status:
claimState: Unclaimed

Enabling disk UUID in proxmox VMs

The configuration file for each VM has to be edited, so that the disk comes with a unique serial number

  1. vi /etc/pve/qemu-server/<VMID>.conf
  2. Add a unique serial number to the disk
scsi1: images:<disk image>,cache=writeback,discard=on,size=120G,ssd=1,serial=5fb20ba17c2f
  1. Restart the VM qm shutdown <VMID> && qm start <VMID>