Skip to content

Commit

Permalink
New version in config
Browse files Browse the repository at this point in the history
  • Loading branch information
gpillon committed Dec 8, 2024
1 parent e499942 commit 1931f08
Show file tree
Hide file tree
Showing 52 changed files with 68 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/default-cluster-config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file is used to configure the device.
// The device will read this fle and apply the settings during boot.
{
"version": "1.5.1",
"version": "1.5.5",
"networking": {
//default_cni (calico cilium)
"cni": {
Expand Down
Empty file modified install-scripts/cleanup-lvm-coreos.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/cleanup-lvm-volumes.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/edit-disk.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/edit_config_startup.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/edit_network.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/eject-reboot.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/include_config.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/install-coreos.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/k4all-config.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/post-install.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/pre-install.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/unmount-lvm-coreos.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/validate_config.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/validator/disk.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/validator/features.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/validator/networking.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/validator/node.sh
100644 → 100755
Empty file.
Empty file modified install-scripts/validator/utils.sh
100644 → 100755
Empty file.
60 changes: 59 additions & 1 deletion overrides/bootstrap/k8s-config-bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,62 @@ apiVersion: kubeadm.k8s.io/v1beta3
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
volume-plugin-dir: "/opt/libexec/kubernetes/kubelet-plugins/volume/exec/"
volume-plugin-dir: "/opt/libexec/kubernetes/kubelet-plugins/volume/exec/"

# apiVersion: kubeadm.k8s.io/v1beta4
# bootstrapTokens:
# - groups:
# - system:bootstrappers:kubeadm:default-node-token
# token: ek4cg4.i9dc6iptft628qja
# ttl: 24h0m0s
# usages:
# - signing
# - authentication
# kind: InitConfiguration
# localAPIEndpoint:
# advertiseAddress: 192.168.5.98
# bindPort: 6443
# nodeRegistration:
# criSocket: unix:///var/run/crio/crio.sock
# imagePullPolicy: IfNotPresent
# imagePullSerial: true
# kubeletExtraArgs:
# - name: volume-plugin-dir
# value: /opt/libexec/kubernetes/kubelet-plugins/volume/exec/
# name: kube-bootstrap-6hcib.farm.local
# taints:
# - effect: NoSchedule
# key: node-role.kubernetes.io/control-plane
# timeouts:
# controlPlaneComponentHealthCheck: 4m0s
# discovery: 5m0s
# etcdAPICall: 2m0s
# kubeletHealthCheck: 4m0s
# kubernetesAPICall: 1m0s
# tlsBootstrap: 5m0s
# upgradeManifests: 5m0s
# ---
# apiServer: {}
# apiVersion: kubeadm.k8s.io/v1beta4
# caCertificateValidityPeriod: 87600h0m0s
# certificateValidityPeriod: 8760h0m0s
# certificatesDir: /etc/kubernetes/pki
# clusterName: kubernetes
# controllerManager:
# extraArgs:
# - name: flex-volume-plugin-dir
# value: /opt/libexec/kubernetes/kubelet-plugins/volume/exec/
# dns: {}
# encryptionAlgorithm: RSA-2048
# etcd:
# local:
# dataDir: /var/lib/etcd
# imageRepository: registry.k8s.io
# kind: ClusterConfiguration
# kubernetesVersion: v1.31.3
# networking:
# dnsDomain: cluster.local
# podSubnet: 10.100.0.1/18
# serviceSubnet: 10.96.0.0/16
# proxy: {}
# scheduler: {}
4 changes: 3 additions & 1 deletion overrides/worker/setup-k8s-ph3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ fi

# nothing to do ATM on workers

touch /opt/k4all/setup-ph3.done
touch /opt/k4all/setup-ph3.done

systemctl reboot
Empty file modified scripts/check-ip.sh
100644 → 100755
Empty file.
Empty file modified scripts/disk-helper.sh
100644 → 100755
Empty file.
Empty file modified scripts/install-status.sh
100644 → 100755
Empty file.
Empty file modified scripts/k4all-utils
100644 → 100755
Empty file.
Empty file modified scripts/node-ready-and-schedulable.sh
100644 → 100755
Empty file.
Empty file modified scripts/prune-bootstrap-tokens.sh
100644 → 100755
Empty file.
Empty file modified scripts/reinstall.sh
100644 → 100755
Empty file.
Empty file modified scripts/set-hostname.sh
100644 → 100755
Empty file.
Empty file modified scripts/set-static-ip.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-certmanager.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-cni-calico.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-cni-cilium.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-cni.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-custom-manifests.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-dashboard.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-feature-argocd.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-feature-virt.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-features.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-helm.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-ingress.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-k8s-ph1.sh
100644 → 100755
Empty file.
6 changes: 5 additions & 1 deletion scripts/setup-k8s-ph2.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ if [ "$CURRENT_IP_CONFIG" = "static" ]; then
modify_nmcli_connection_if_needed ovs-bridge-int ipv4.gateway "${GATEWAY}"
modify_nmcli_connection_if_needed ovs-bridge-int ipv4.dns "${DNS}"
modify_nmcli_connection_if_needed ovs-bridge-int ipv4.dns-search "${DNS_SEARCH}"
modify_nmcli_connection_if_needed ovs-bridge-int ethernet.mac-address "${MAC_ADDR}"

else
# echo "WARNING! this should not happen...."
Expand All @@ -99,6 +98,9 @@ else
modify_nmcli_connection_if_needed ovs-bridge-int ipv4.method auto
fi

modify_nmcli_connection_if_needed ovs-bridge-int ethernet.cloned-mac-address "${MAC_ADDR}"
# modify_nmcli_connection_if_needed ovs-port-eth-int ethernet.cloned-mac-address "${MAC_ADDR}"

# Bring up the ovs-port-eth-int and ovs-bridge-int connections
nmcli con up ovs-port-eth-int
nmcli con up ovs-bridge-int
Expand Down Expand Up @@ -187,6 +189,8 @@ if systemctl is-enabled --quiet firewalld; then
firewall-cmd --reload
fi

systemctl restart NetworkManager

# Mark the setup phase as done
touch /opt/k4all/setup-ph2.done

Expand Down
Empty file modified scripts/setup-lvm.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-metallb.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-metrics.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-ovs-cni.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-taint-master-scheduleable.sh
100644 → 100755
Empty file.
Empty file modified scripts/setup-topolvm.sh
100644 → 100755
Empty file.
Empty file modified scripts/update-node.sh
100644 → 100755
Empty file.
Empty file modified scripts/update-routes.sh
100644 → 100755
Empty file.
Empty file modified scripts/wait-default-service-account.sh
100644 → 100755
Empty file.

0 comments on commit 1931f08

Please sign in to comment.