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
View failed-self-hosted-kubelet.log
This file has been truncated, but you can view the full file.
$ ./hyperkube kubelet --node-ip=10.88.81.5 --anonymous-auth=false --authentication-token-webhook --authorization-mode=Webhook --client-ca-file=/etc/kubernetes/ca.crt --cluster_dns=10.3.0.10 --cluster_domain=cluster.local --cni-conf-dir=/etc/kubernetes/cni/net.d --config=/etc/kubernetes/kubelet.config --kubeconfig=/etc/kubernetes/kubeconfig --lock-file=/var/run/lock/kubelet.lock --network-plugin=cni --pod-manifest-path=/etc/kubernetes/manifests --read-only-port=0 --volume-plugin-dir=/var/lib/kubelet/volumeplugins --node-labels=node.kubernetes.io/node,
metallb.universe.tf/my-asn=65000,metallb.universe.tf/peer-asn=65530 --register-with-taints= --address=10.88.81.5
Flag --anonymous-auth has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
@surajssd
surajssd / install-vbox-ubuntu.sh
Last active Apr 14, 2020
Install Virtual Box on Ubuntu
View install-vbox-ubuntu.sh
apt-get update && \
apt-get -y upgrade && \
apt-get install -y make git byobu linux-generic
systemctl reboot
apt-get install -y linux-headers-`uname -r`
apt install -y virtualbox
apt-get install -y vagrant
dpkg-reconfigure virtualbox-dkms
@surajssd
surajssd / deploy-fail.yaml
Last active Mar 19, 2020
A deployment that fails constantly
View deploy-fail.yaml
echo '
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: bash
name: bash
spec:
replicas: 1
selector:
View 00-testing-mnt-mount.md
@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
You can’t perform that action at this time.