-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the kube wiki!
la idea es anotar todo lo que haga @ inv
-
instalar ubuntu en 3 cuchillas (las unicas que funcionaron)
bootear de USB
instalacion default
apt update
apt upgrade
-
asignar ip fija
editar /etc/netplan/50-cloud-init.yaml
-
crear llaves rsa
ssh-keygen -t rsa
-
loguearse sin clave
copiar la rsa.pub en todos los /root/.ssh/authorized.keys
dar acceso a las cuchillas a internet
descargar el script de #!/bin/bash
#Software Needed [Ubuntu] sudo apt-get install -y git python3-venv git clone https://github.com/kubernetes-incubator/kubespray.git
#Kubespray customization mkdir -p kubespray/inventory/cluster cp -r kubespray/inventory/sample/* kubespray/inventory/cluster pyvenv .venv && source .venv/bin/activate pip3 install --upgrade pip && pip3 install -r kubespray/requirements.txt && pip3 install ruamel.yaml
cat > kubespray/inventory/cluster/local.yml << EOF bootstrap_os: ubuntu kubeadm_enabled: true helm_enabled: true ingress_nginx_enabled: true #Fix for https://github.com/kubernetes-sigs/kubespray/issues/4357 ingress_nginx_host_network: true #Fix for https://github.com/kubernetes/kubernetes/pull/76640 enable_nodelocaldns: false upstream_dns_servers:
- 1.1.1.1
- 8.8.4.4 #Needed for rook-ceph kubelet_flexvolumes_plugins_dir: /usr/libexec/kubernetes/kubelet-plugins/volume/exec EOF
cd kubespray
#Declare IP for VMs declare -a IPS=(172.16.0.111 172.16.0.113 172.16.0.115) CONFIG_FILE=inventory/cluster/hosts.yml python3 contrib/inventory_builder/inventory.py ${IPS[@]} ansible-playbook -b -u root -i inventory/cluster/hosts.yml cluster.yml --extra-vars @inventory/cluster/local.yml
verificamos conectando por telnet al 172.16.1.202 como esta armado fisicamente el storage
list volume
Current Machine Local Time: 08/26/2019 04:08:32 PM
| Vol# | VolumeName | Cap | RaidType | Status |
|||||___________________________|
| 0| r1:v1| 931GB| 1| VBL INI|
| 1| r2:v2| 931GB| 1| VBL INI|
| 2| r3:v3| 931GB| 1| VBL INI|
| 3| r4:v4| 279GB| 1| VBL INI|
| 4| r5:v5| 279GB| 1| VBL DEG|
| 5| r6:v6| 279GB| 1| VBL INI|
|||||___________________________|
Usage: VBL=Viable DEG=Degraded INI=Inited
NVBL=Non-Viable TRN=In-Transition
list drive
Current Machine Local Time: 08/26/2019 04:08:45 PM
| Drive#| E:T | SerialNo | Cap | Pool | Usage | State | Mount State |Ctl0|Ctl1| RPM |FW level|
|||||||||||______|________|
| 0| 1:1 | 6SJ85XXG| 279GB| r4| GRP| OK| Online| 1| 1| 15000| BA5A|
| 1| 1:2 | BJ5057PW| 279GB| r5| GRP| OK| Online| 1| 1| 15000| SA0A|
| 2| 1:3 | BJ5058L1| 279GB| r6| GRP| OK| Online| 1| 1| 15000| SA0A|
| 3| 1:4 | 3QP2G9PC| 279GB| r4| GRP| OK| Online| 1| 1| 15000| BA4D|
| 4| 1:5 | N/A| 279GB| r5| GRP| M| Service| 0| 0| 15000| BA4D|
| 5| 1:6 | 3QP2G9Q0| 279GB| r6| GRP| OK| Online| 1| 1| 15000| BA4D|
| 6| 2:1 | Z1N2KZWY| 931GB| r1| GRP| OK| Online| 1| 1| 7200| BC4A|
| 7| 2:2 | Z1N3C4AQ| 931GB| r2| GRP| OK| Online| 1| 1| 7200| BC4A|
| 8| 2:3 | 9WK31EC3| 931GB| r3| GRP| OK| Online| 1| 1| 7200| BC2D|
| 9| 2:4 | 9WK31DMH| 931GB| r1| GRP| OK| Online| 1| 1| 7200| BC2D|
| 10| 2:5 | 9WK2L45L| 931GB| r2| GRP| OK| Online| 1| 1| 7200| BC2D|
| 11| 2:6 | 9WK31DBA| 931GB| r3| GRP| OK| Online| 1| 1| 7200| BC2D|
|||||||||||______|________|
Drive E:T is Enclosure:Tray; tray numbers start at 1, and tray 1 is the uppermost tray.
Usage: UNA=unassigned GRP/SGR=current/stale group member INI=initialized
FOR=foreign LCS/SLS=current/stale local spare CBL/SCL=current/stale auto-copy-back local spare
NQ=non-qualified GLS/SGS=current/stale global spare CBG/SCG=current/stale auto-copy-back global spare
IMD=incompatible metadata with this software version; either assimilate drive or update controller firmware.
State: OK=healthy M=missing P=PFA predicted failure U=unreliable (M/P/U can be combined)
UNS=unsupported (non-IBM) drive PM=path missing
UNF=firmware version unsupported for drive