This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "exec-opts": ["native.cgroupdriver=systemd"], | |
| "log-driver": "json-file", | |
| "log-opts": { | |
| "max-size": "100m" | |
| }, | |
| "storage-driver": "overlay2" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # kindnetd networking manifest | |
| # would you kindly template this file | |
| --- | |
| kind: ClusterRole | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| metadata: | |
| name: kindnet | |
| rules: | |
| - apiGroups: | |
| - policy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exec docker run --rm -i --entrypoint=yq mikefarah/yq r - -d1 -X <$0 | |
| --- | |
| apiVersion: v1 | |
| kind: List | |
| metadata: | |
| anchors: | |
| - &name drupal | |
| - &image drupal:latest | |
| - &port 80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #apt-get update | |
| #apt-get install -y curl | |
| curl -sL https://www.virtualhere.com/sites/default/files/usbclient/vhclientx86_64 > /usr/local/bin/vhclientx86_64 | |
| chmod +x /usr/local/bin/vhclientx86_64 | |
| cat > /root/.vhui << EOF | |
| [Transport] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local-hostname: my-servername |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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. |