Commit da6817c4 authored by Larkin Heintzman's avatar Larkin Heintzman

minor cluster load balancer startup fixes

parent d86f8baa
{"signing":{"default":{"expiry":"43800h","usages":["signing","key encipherment","server auth","client auth"]}}}
-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAuGx1qhljUBUTOssAOLgEkvQjgRM8my7bIdVSbUZi2/NjxK5f
VZ/HuLK0N/t+LeqaQNSrXupQbr9pYDM04PZM/1Ed1F+43c0G/Oo7+xMs5k6fp8jk
hOkZK5oi49ZtZsL3RSNxpcOqDzdRvkMLCnz6xkgHWPnV6s/uk9YK/GluM0zg0D/A
OWo9opqCMwSZ+SP7GYPk6lvZewkkAs0SkbHBHo6IsuE+PmCI+QTfR6dtK3cPygvu
a9svc9oyytAjk8ul8yU34X/xkLk7Y2weM+6pyhlNsDbFmdIlugIYK0UTEQGAzGr7
Q7tW9ojpIvn4kBn08FWZSI3JhB8IQRoEnlVUtQIDAQABAoIBAQCCHwRmH8OSnUwU
D2b4nd2cUeU7DPeWBllWZczijObziaa6/s0E/NdN2ciON0Ov4fc0Btli/rABc8xF
s9t7Xky1V+ZUEbW9yQtFJ39qhv0HAjJjj7qsjErWGMrFNmW6O5V7kqZ87rDuS3nB
ZExF+ih1/hwxCxWDt3H9nOfjb//w8Ph2tzJ56UDhXK+iKu++JYRoQyf8/eL2gadq
pwMXpk+FHwILfjZ1Fh49wWkxtoZDagCAFdFOwdLUB4zXgM4deSYsw+zjly3po+ya
9SHY5nZJZufhsSGBV6GeBBH3zh90NgCbcLuUEriupFpH1mcEKnAEKOvIYYkXewcc
CSp+XeQBAoGBAPQ9DdDsYt3WWW1+RgZNdoUVAJwZ23N3S9FcpeQlY/XX5sSsk5+0
rtn50bE9pRl0Hq92e9M05yBM1Bl9f9CbfH2ElhLJnZskg/5vk2jnwqLdRV4EzAP6
OXglHUQ1M7E19V2utNS6EOeo7Ib3mGICNWSAzBAja57oMbNINC++LXm9AoGBAMFO
A9JUI5JoWRS2XnSd6xl2YvN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os
NAME_2=rossetti
NAME_3=neruda
HOST_1=192.168.111.200
HOST_2=192.168.111.202
HOST_3=192.168.111.201
CLUSTER=pop-os=http://192.168.111.200:2380,rossetti=http://192.168.111.202:2380,neruda=http://192.168.111.201:2380
THIS_NAME=pop-os
THIS_IP=192.168.111.200
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAwYBPc9XFvHVm3ivhltXqpdYk/u38thNk7rVa6QrnnjmU65OR
hgdQBDHZTwrflglIGGlvtlUbUKxwpcDLQEoeSNvaoD0UdyP3cD+QbtihNko3N2id
VHt3FRx3KJd+u4Cmw0VN5Y1jsC1BxVzUVTY2e4ZtzjeexnYVh6X06pekmz+iwHck
QgauEybsSuDZ1MLkq05IN7gl/2vXkyQRAd+jW5fgi2IhKPlHvXSEbJHB3D+cLuEF
/AGYjLtuQ3yEB4rQNLrxC7Mo5rzbEhFYXdpG3tar25YUHN6Q+UoTKhJ060bv016n
EdgWHCELDk3DDCcTEHgs8pAgxYiJqA00bWJNzQIDAQABAoIBAQC2tOnQjSQVK6GC
3Fo4qynRhp8OGzbH0Q43mwQJEaPbsbEcswzwSc1S+KKg0LqHF6J8cmnp9vhAt2Hy
EFWaEaIA157aOHIvgMVttocxMtkdwvvaFKyhjabGR0d4C3u9nd9YeALyYguj2UfG
DD3ta7AL+MWLttbzu6HeoGPecmsZrldpHyyTpZrsinywjNZIWG6Dr5h0C6aO0qm0
ZrqCBfT0UxP2+n2VWWdqfAD4kAZoPQecrY4pojCsDIgtBtWPMo8EavEVW0IK5c36
0D/eABzSHPpzLozfJGnyl+QQsJoVThk0Z/hbhpF5hrIIV+ku16R31MdH0KQjlzxp
c8oPR4RdAoGBAP6Uw2g+pMBO1ZI1uxyYUVb/G3tZ80AjFzM7S49OhZWl0n4x67G3
IHRbLct8autffi9DnR/hZQAggiKHwDLkNXJyUpJgh5xZ86U7LS6MKblvExAz+qvq
QHkVU8iqaN+pF9QpyLT46j+Wl7StjmuFkz2KwU4UjiXCUfF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EqEC3ad4jaZWY
/4rsx72ZUrCOuPtncg2Q4gPjwiqTsjOCY8mopduBWzcX4OTJujI42zmzcjjUBFoW
zOWJc40pTOlUWm8fX94HqkOhhzNrLQddg8zu7Ivb
-----END CERTIFICATE-----
[Unit]
Description=etcd key-value store
Documentation=https://github.com/etcd-io/etcd
After=network.target
[Service]
Type=notify
EnvironmentFile=/etc/etcd/etcd.conf
ExecStart=/usr/bin/etcd
Restart=always
RestartSec=10s
LimitNOFILE=40000
[Install]
WantedBy=multi-user.target
ETCD_NAME=pop-os
ETCD_LISTEN_PEER_URLS="https://192.168.111.200:2380"
ETCD_LISTEN_CLIENT_URLS="https://192.168.111.200:2379"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster"
ETCD_INITIAL_CLUSTER="pop-os=https://192.168.111.200:2380,neruda=https://192.168.111.201:2380,rossetti=https://192.168.111.202:2380"
ETCD_INITIAL_ADVERTISE_PEER_URLS="https://192.168.111.200:2380"
ETCD_ADVERTISE_CLIENT_URLS="https://192.168.111.200:2379"
ETCD_TRUSTED_CA_FILE="/etc/etcd/etcd-ca.crt"
ETCD_CERT_FILE="/etc/etcd/server.crt"
ETCD_KEY_FILE="/etc/etcd/server.key"
ETCD_PEER_CLIENT_CERT_AUTH=true
ETCD_PEER_TRUSTED_CA_FILE="/etc/etcd/etcd-ca.crt"
ETCD_PEER_KEY_FILE="/etc/etcd/server.key"
ETCD_PEER_CERT_FILE="/etc/etcd/server.crt"
ETCD_DATA_DIR="/var/lib/etcd"
#!/bin/bash
# set -e
# script that starts up kubernetes cluster, and does some basic qol
IP=$(ip route get 8.8.8.8 | awk -F"src " 'NR==1{split($2,a," ");print a[1]}')
INTERFACE=$(ip route get 8.8.8.8 | awk -F"dev " 'NR==1{split($2,a," ");print a[1]}')
sudo swapoff -a # turn off swap memory
IFS="."
read ip1 ip2 ip3 ip4 <<< "$IP"
VIP="$ip1.$ip2.$ip3.233" # virtual ip addr
# make cert key for join command later (gets used in init automathically)
VIP="192.168.111.10"
sudo swapoff -a # turn off swap memory
# put load balancer pod spec in the manifests directory
sudo docker run --network host --rm ghcr.io/kube-vip/kube-vip:main manifest pod \
--vip $VIP \
--vip "$VIP" \
--interface "$INTERFACE" \
--arp \
--controlplane \
--leaderElection | sudo tee /etc/kubernetes/manifests/vip.yaml
sudo kubeadm init -v 6 --config kubeadm-config.yaml --upload-certs
# load up endpoint in the config file
# apiServerCertSANs:
# controlPlaneEndpoint:
# advertiseAddress:
configFile="kubeadm-config.yaml"
newIP="$VIP"
key="apiServerCertSANs"
sed -r "s/^(\s*${key}\s*:\s*).*/\1${newIP}/" -i "$configFile"
key="controlPlaneEndpoint"
sed -r "s/^(\s*${key}\s*:\s*).*/\1${newIP}/" -i "$configFile"
key="advertiseAddress"
sed -r "s/^(\s*${key}\s*:\s*).*/\1${newIP}/" -i "$configFile"
# exit 0
sudo kubeadm init --config kubeadm-config.yaml --upload-certs
if [[ $? -ne 0 ]] ; then
# some error
......@@ -26,10 +44,13 @@ fi
mkdir -p $HOME/.kube
sudo cp -f /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
#
kubectl apply -f flannel.yml
kubectl taint nodes --all node-role.kubernetes.io/master-
# print join command again to clipboard and add bling (COPY NOT WORKING)
# echo "$(kubeadm token create --print-join-command)--control-plane --certificate-key $KEEY" | xclip -sel clip
# create control-plane join command and copy it to clip
echo "------------------------------------------"
newKey=$(sudo kubeadm init phase upload-certs --upload-certs | sed -n '3~0p')
echo "$(kubeadm token create --print-join-command) --control-plane --certificate-key $newKey" | xclip -sel clip
exit 0
FROM alpine:3
COPY ping.sh /
HEALTHCHECK --interval=5s --timeout=3s \
CMD ps aux | grep '[s]h ping' || exit 1
#CMD ["sh", "ping"]
# CMD ["/bin/sh"]
#!/bin/bash
echo ping ${HOSTNAME:=localhost} every ${TIMEOUT:=300} sec
while true; do ping -c 1 ${HOSTNAME}; sleep ${TIMEOUT}; done;
#!/bin/sh
echo ping ${HOSTNAME:=localhost} every ${TIMEOUT:=5} sec
while true; do ping -c 1 ${HOSTNAME}; sleep ${TIMEOUT}; done;
......@@ -2,25 +2,17 @@
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
kubernetesVersion: v1.23.4
controlPlaneEndpoint: "192.168.111.10" # load balancer ip, in cluster_setup script
# gets set by startup
controlPlaneEndpoint: 192.168.1.233
networking:
podSubnet: "10.244.0.0/16"
apiServerCertSANs:
- 192.168.111.10
api:
advertiseAddress: 192.168.111.10
bindPort: 6443
# gets set by startup
apiServerCertSANs: 192.168.1.233
# etcd:
# # can be external or local
# external:
# endpoints:
# - https://192.168.111.200:4679
# - https://192.168.111.202:4679
# - https://192.168.111.201:4679
# caFile: /etc/etcd/etcd-ca.crt
# certFile: /etc/etcd/server.crt
# keyFile: /etc/etcd/server.key
apiServer:
# gets set by startup
advertiseAddress: 192.168.1.233
bindPort: 6443
---
kind: KubeletConfiguration
apiVersion: kubelet.config.k8s.io/v1beta1
......
# kubeadm-config.yaml
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
kubernetesVersion: v1.23.4
networking:
podSubnet: "10.244.0.0/16"
---
kind: KubeletConfiguration
apiVersion: kubelet.config.k8s.io/v1beta1
cgroupDriver: systemd
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
kubernetesVersion: v1.23.4
etcd:
external:
endpoints:
- https://192.168.111.200:4679
- https://192.168.111.202:4679
- https://192.168.111.201:4679
caFile: /etc/etcd/etcd-ca.crt
certFile: /etc/etcd/server.crt
keyFile: /etc/etcd/server.key
apiVersion: apps/v1
kind: Deployment
metadata:
name: ping
labels:
app: cluster
node: ping
spec:
replicas: 1
selector:
matchLabels:
node: ping
app: cluster
template:
metadata:
labels:
node: ping
app: cluster
spec:
hostname: service-ping
containers:
- name: ping
securityContext:
privileged: true
image: pinga/llh:v0
command: ["/bin/sh"] # You need to run some task inside a
args: ["-c", "/ping.sh & while true; do sleep 10; done;"] # Our simple program just sleeps inside
ports:
- containerPort: 11311
name: pingport
nodeSelector:
kubernetes.io/hostname: sentinel
# kubernetes.io/hostname: pop-os # to run on control plane
# ---
#
# apiVersion: v1
# kind: Service
# metadata:
# name: service-ping
# labels:
# app: cluster
# node: ping
# spec:
# selector:
# app: cluster
# node: ping
# clusterIP: None
# ports:
# - port: 11311
# name: ping
......@@ -6,7 +6,6 @@ metadata:
app: opendatacam
spec:
ports:
# was 27017
- name: "27017"
port: 27017
targetPort: 27017
......@@ -108,3 +107,5 @@ spec:
- name: mongodb-persistent-storage
persistentVolumeClaim:
claimName: mongodb-pv-claim
nodeSelector:
kubernetes.io/hostname: neruda
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment