Skip to content

Instantly share code, notes, and snippets.

@nikhil-bhat
nikhil-bhat / aks-node-kubelet-configuration.yaml
Created July 28, 2022 17:42 — forked from henrylilei/aks-node-kubelet-configuration.yaml
Using Kured to update kubelet config in AKS.
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: server-maintenance-priority
value: 1000000
globalDefault: false
description: "This priority class should be used for server maintenance pods only. It will be scheduled first to the node."
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
@nikhil-bhat
nikhil-bhat / main.go
Created February 9, 2022 13:13
Golang http Server with custom Keep-ALive Header
package main
import (
"context"
"io"
"io/ioutil"
"log"
"net/http"
"net/http/httptrace"
"time"
@nikhil-bhat
nikhil-bhat / main.go
Created February 9, 2022 13:12
Golang http clinet which tells whether the tcp connection was reused or not
package main
import (
"context"
"io"
"io/ioutil"
"log"
"net/http"
"net/http/httptrace"
"time"
@nikhil-bhat
nikhil-bhat / pedantically_commented_playbook.yml
Created August 24, 2016 07:03 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.