Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Suraj Deshmukh surajssd

🏠
Working from home
Block or report user

Report or block surajssd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@surajssd
surajssd / test.sh
Last active Aug 21, 2019
Testing RAIDs
View test.sh
#!/bin/bash
set -e
echo 'In `cluster.tf` file:'
echo
echo '
```tf
```
View setup-ubuntu-kvm.sh
apt-get update -y
apt-get install -y virt-manager libvirt-clients libvirt-daemon-system qemu-kvm byobu git
@surajssd
surajssd / README.md
Last active Jul 4, 2019
Kind configs
View README.md

Using Kind

Multinode PSP enabled

kind create cluster --name multi-node-psp --config psp-multi-cluster.yaml
export KUBECONFIG="$(kind get kubeconfig-path --name="multi-node-psp")"
kubectl apply -f https://raw.githubusercontent.com/kinvolk/terraform-render-bootkube/kinvolk-master/resources/manifests/psp-privileged.yaml
kubectl apply -f https://raw.githubusercontent.com/kinvolk/terraform-render-bootkube/kinvolk-master/resources/manifests/psp-restricted.yaml
View podinfo-canary.yaml
apiVersion: flagger.app/v1alpha3
kind: Canary
metadata:
name: podinfo
namespace: test
spec:
# deployment reference
targetRef:
apiVersion: apps/v1
kind: Deployment
View deploy-istio.sh
# download the release from https://istio.io/docs/setup/kubernetes/#downloading-the-release
cd ~/study/istio-setup/istio-1.2.2/
kubectl apply -f install/kubernetes/istio-demo-auth.yaml
kubectl get pods,svc -n istio-system
sleep 200
kubectl apply -f <(istioctl kube-inject -f samples/bookinfo/platform/kube/bookinfo.yaml)
kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml
kubectl apply -f samples/bookinfo/networking/destination-rule-all-mtls.yaml
kubectl get pods,svc
View deploytillerhelm.sh
start-minikube
kubectl apply -f https://raw.githubusercontent.com/kinvolk/terraform-render-bootkube/kinvolk-master/resources/manifests/psp-restricted.yaml
kubectl apply -f https://raw.githubusercontent.com/kinvolk/terraform-render-bootkube/kinvolk-master/resources/manifests/psp-privileged.yaml
kubectl --namespace kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
@surajssd
surajssd / storageprovisioner.yaml
Created Apr 5, 2019
Minikube's storage provisioner
View storageprovisioner.yaml
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
annotations:
storageclass.beta.kubernetes.io/is-default-class: "true"
labels:
addonmanager.kubernetes.io/mode: EnsureExists
name: standard
provisioner: k8s.io/minikube-hostpath
View keybase.md

Keybase proof

I hereby claim:

  • I am surajssd on github.
  • I am surajd (https://keybase.io/surajd) on keybase.
  • I have a public key ASB8i9JgXg7hQyCJZbvRL7BtgYjhzKacxHCdOVvGeOXJOQo

To claim this, I am signing this object:

@surajssd
surajssd / flatcar.ipxe
Last active Feb 25, 2019
flatcar pxe configs
View flatcar.ipxe
#!ipxe
set base-url https://stable.release.flatcar-linux.net/amd64-usr/current
kernel ${base-url}/flatcar_production_pxe.vmlinuz initrd=flatcar_production_pxe_image.cpio.gz flatcar.first_boot=1 flatcar.oem.id=packet console=ttyS1,115200n8
initrd ${base-url}/flatcar_production_pxe_image.cpio.gz
boot
You can’t perform that action at this time.