Skip to content

Instantly share code, notes, and snippets.

Chad Moon moondev

  • VMware
  • Denver, CO
Block or report user

Report or block moondev

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
@moondev
moondev / ARM64_INIT.sh
Last active Oct 31, 2019
ARM64_INIT.sh
View ARM64_INIT.sh
#!/bin/bash
kubeadm reset -f
# hostnamectl set-hostname `cat /sys/class/net/eth0/address`.localdomain
# wget -O /master.sh https://gist.githubusercontent.com/moondev/32ded4d7cd3556395206bfb57b9f6e71/raw/master.sh
# chmod 0777 /master.sh
# /master.sh > master_log.txt
@moondev
moondev / instakube-meta-data
Last active Oct 17, 2019
instakube-user-data
View instakube-meta-data
local-hostname: my-servername
@moondev
moondev / BOOT.CFG
Last active Sep 2, 2019
esxi kickstart examples
View BOOT.CFG
bootstate=0
timeout=5
prefix=
kernel=/b.b00
# title=DEFAULT ESXi installer
# kernelopt=cdromBoot runweasel
# kernelopt=netdevice=vmnic0 bootproto=dhcp ks=nfs://192.168.0.6/kickstart/ESXiLabConfig.cfg
# kernelopt=ks=cdrom:/KS_AUTO.CFG
@moondev
moondev / memberlist.sh
Created Aug 23, 2019
MEMBER LIST FOR KOPS
View memberlist.sh
kubectl exec -it `kubectl get pods -n kube-system -l k8s-app=etcd-manager-main -o jsonpath='{.items[0].metadata.name}'` -n kube-system -- bash -c "ETCDCTL_API=3 /opt/etcd-v3.2.18-linux-amd64/etcdctl --key /rootfs/etc/kubernetes/pki/kube-apiserver/etcd-client.key --cert /rootfs/etc/kubernetes/pki/kube-apiserver/etcd-client.crt --cacert /rootfs/etc/kubernetes/pki/kube-apiserver/etcd-ca.crt --endpoints=https://127.0.0.1:4001 member list"
View setup.sh
#!/bin/bash
DOCKER=18.06.2
K8S=1.14.3
CNI=0.7.5
modprobe overlay
modprobe br_netfilter
# Setup required sysctl params, these persist across reboots.
@moondev
moondev / upgrade.md
Last active Sep 25, 2019
K8S upgrade 1.10.x -> 1.11.x -> 1.12.x -> 1.13.x -> 1.14.x
View iscsi
sudo iscsiadm -m discovery -t st -p 10.10.103.248
sudo iscsiadm --mode node --targetname "iqn.2018-01.vmware:speedtest" -p 10.10.103.248:3260 --login
View rook-class.yaml
apiVersion: rook.io/v1alpha1
kind: Pool
metadata:
name: replicapool
namespace: rook
spec:
replicated:
size: 3
---
apiVersion: storage.k8s.io/v1
View rook-cluster.yaml
apiVersion: v1
kind: Namespace
metadata:
name: rook
---
apiVersion: rook.io/v1alpha1
kind: Cluster
metadata:
name: rook
namespace: rook
View dash.yaml
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: kubernetes-dashboard
labels:
k8s-app: kubernetes-dashboard
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
You can’t perform that action at this time.