Skip to content

Instantly share code, notes, and snippets.

View aramase's full-sized avatar
:octocat:

Anish Ramasekar aramase

:octocat:
View GitHub Profile

Keybase proof

I hereby claim:

  • I am aramase on github.
  • I am aramase (https://keybase.io/aramase) on keybase.
  • I have a public key whose fingerprint is B980 FFF3 C6E1 C690 39F0 453E B137 10E4 6E80 62CB

To claim this, I am signing this object:

@aramase
aramase / myapimodel.json
Last active August 8, 2019 22:25
api model for ipv6 dual stack on aks-e
{
"apiVersion": "vlabs",
"properties": {
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorVersion": "1.16.0-alpha.1",
"kubernetesConfig": {
"enablePodSecurityPolicy": true,
"enableRbac": true,
"clusterSubnet": "10.244.0.0/16,fd00:101::/8",
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: azure-ip-masq-agent
namespace: kube-system
labels:
component: azure-ip-masq-agent
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile
tier: node
@aramase
aramase / allow-flexvolume-psp.yml
Created August 9, 2019 16:53
PSP to allow flexvolume
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: allow-flexvolume
spec:
seLinux:
rule: RunAsAny
volumes:
- flexVolume
- hostPath
@aramase
aramase / allow-hostnetwork-psp.yml
Created August 15, 2019 17:21
psp to allow hostnetwork and privileged only in a specific namespace
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: allow-hostnetwork
spec:
seLinux:
rule: RunAsAny
privileged: true
allowedCapabilities:
- NET_ADMIN
@aramase
aramase / dualstack-phase2.json
Last active October 3, 2019 00:07
API model for creating dualstack cluster with phase2 changes
{
"apiVersion": "vlabs",
"properties": {
"featureFlags": {
"enableIPv6DualStack": true
},
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorVersion": "1.16.0-rc.1",
"kubernetesConfig": {
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
app: csi-secrets-store-provider-vault
name: csi-secrets-store-provider-vault
spec:
updateStrategy:
type: RollingUpdate
template:
{
"apiVersion": "vlabs",
"properties": {
"featureFlags": {
"enableIPv6DualStack": true
},
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorVersion": "1.16.1",
"kubernetesConfig": {
{
"apiVersion": "vlabs",
"properties": {
"featureFlags": {
"enableIPv6DualStack": true
},
"orchestratorProfile": {
"orchestratorType": "Kubernetes",
"orchestratorRelease": "1.16",
"kubernetesConfig": {
using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web;
using Microsoft.Azure.KeyVault;
using Microsoft.Azure.Services.AppAuthentication;
using Newtonsoft.Json.Linq;
namespace aramase.test