Skip to content

Instantly share code, notes, and snippets.

@feiskyer
feiskyer / Setup Pod egress.md
Last active February 22, 2022 07:02
Setup Pod egress manually

IP List:

  • Pod IP: 10.244.1.6
  • Gateway IP: 10.240.0.6
  • Pod's Node IP: 10.240.0.4
@feiskyer
feiskyer / arp_responder.py
Created February 22, 2022 05:51
ARP Responder (with python)
# sudo apt install -y python3-scapy
from __future__ import print_function
from scapy.all import *
iface = "vxlan42"
vxlan_mac = get_if_hwaddr(iface)
def handle_packet(packet):
if packet[ARP].op == ARP.who_has:
print(packet.summary())
@feiskyer
feiskyer / go.mod
Created February 7, 2021 05:39
Add VMSS and all instances to LoadBalancer backend address pool
module test
go 1.15
require (
github.com/Azure/azure-sdk-for-go v49.1.0+incompatible
github.com/Azure/go-autorest/autorest v0.11.17
github.com/ghodss/yaml v1.0.0
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
k8s.io/apimachinery v0.0.0
@feiskyer
feiskyer / privatednszone-none-template.json
Created November 3, 2020 01:57
Templates to create private cluster with "none" PrivateDNSZone
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.1",
"parameters": {
"clusterName": {
"type": "string",
"metadata": {
"description": "The name of the Managed Cluster resource."
},
"defaultValue": "demo"
@feiskyer
feiskyer / calico-packet-logs.yaml
Created September 28, 2020 02:07
Grabe calico-packet logs from syslog
apiVersion: crd.projectcalico.org/v1
kind: GlobalNetworkPolicy
metadata:
name: calico-log
spec:
egress:
- action: Log
destination: {}
protocol: TCP
source: {}
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: echoserver
name: echoserver
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
@feiskyer
feiskyer / aks-engine-dualstack.json
Created August 13, 2020 02:19
Dualstack Kubernetes cluster with aks-engine
{
"apiVersion": "vlabs",
"properties": {
"featureFlags": {
"enableIPv6DualStack": true
},
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorRelease": "1.19",
"kubernetesConfig": {
#!/bin/bash
# Copyright 2019 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@feiskyer
feiskyer / devops_best_practices.md
Created October 30, 2018 08:51 — forked from jpswade/devops_best_practices.md
Devops Best Practices

DevOps started out as "Agile Systems Administration". In 2008, Andrew Shafer did a talk called "Agile Infrastucture" addressing issues around involving more of the company in the same disciplines as programmers.

In 2009, Patrick Debois created "DevOpsDays" conference to help to bring it to light. However, it wouldn't begin to trend until about 2010, when people would begin to describe it as a standalone discipline.

Today, DevOps goes beyond just developers, systems administration and infrastructure, its about [dev, ops, agile, cloud, open source and business](https://blogs.the451group.com/opensource/2010/03/03/devops-mixing-dev-ops-agile-cloud-open-source-and-busi

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
generation: 1
labels:
addonmanager.kubernetes.io/mode: EnsureExists
k8s-app: heapster
kubernetes.io/cluster-service: "true"