diff --git a/.gitignore b/.gitignore index fa68d5606..7059aacc0 100644 --- a/.gitignore +++ b/.gitignore @@ -24,11 +24,11 @@ contrib/terraform/aws/credentials.tfvars vagrant/ plugins/mitogen -# Ansible inventory -inventory/* -!inventory/local -!inventory/sample -inventory/*/artifacts/ +# # Ansible inventory +# inventory/* +# !inventory/local +# !inventory/sample +# inventory/*/artifacts/ # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/inventory/soluna/group_vars/all.yml b/inventory/soluna/group_vars/all.yml new file mode 100644 index 000000000..2f24d0e92 --- /dev/null +++ b/inventory/soluna/group_vars/all.yml @@ -0,0 +1,16 @@ +allow_privileged: false + +# Add extra SANs to API server certificate +supplementary_addresses_in_ssl_keys: + - "sunset.clusters.sfcompute.com" # sunset = soluna + +kube_network_plugin: cilium + +# Enable Cilium +cilium_enable_ipv4: true +cilium_tunnel_mode: "vxlan" + +# Enable hubble (Cilium's UI) +cilium_enable_hubble: true +cilium_hubble_install: true +cilium_hubble_tls_generate: true \ No newline at end of file diff --git a/inventory/soluna/inventory.ini b/inventory/soluna/inventory.ini new file mode 100644 index 000000000..9fbc3e17f --- /dev/null +++ b/inventory/soluna/inventory.ini @@ -0,0 +1,41 @@ +## Configure 'ip' variable to bind kubernetes services on a +# ## different ip than the default iface +# ## We should set etcd_member_name for etcd cluster. The node that is not a etcd member do not need to set the value, or can set the empty string value. +[all] +soluna-1 ansible_host=10.250.3.10 +soluna-2 ansible_host=10.250.3.11 +soluna-3 ansible_host=10.250.3.12 +soluna-4 ansible_host=10.250.3.13 +soluna-5 ansible_host=10.250.3.14 +soluna-6 ansible_host=10.250.3.15 etcd_member_name=etcd1 +soluna-7 ansible_host=10.250.3.16 etcd_member_name=etcd2 +soluna-8 ansible_host=10.250.3.17 etcd_member_name=etcd3 +# node1 ansible_host=95.54.0.12 # ip=10.3.0.1 etcd_member_name=etcd1 + +# ## configure a bastion host if your nodes are not directly reachable +# [bastion] +# bastion ansible_host=x.x.x.x ansible_user=some_user + +[kube_control_plane] +soluna-6 +soluna-7 +soluna-8 + +[etcd] +soluna-6 +soluna-7 +soluna-8 + +[kube_node] +soluna-1 +soluna-2 +soluna-3 +soluna-4 +soluna-5 +soluna-6 +soluna-7 +soluna-8 + +[k8s_cluster:children] +kube_control_plane +kube_node