https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG.md https://v1-10.docs.kubernetes.io/docs/setup/independent/high-availability/
#!/bin/bash
export ETCDCTL_API=3
# kindnetd networking manifest | |
# would you kindly template this file | |
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: kindnet | |
rules: | |
- apiGroups: | |
- policy |
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 |
#!/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] |
# 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, |
#!/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 |
local-hostname: my-servername |
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 |
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" |
#!/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. |