summaryrefslogtreecommitdiffstats
path: root/hw_config
diff options
context:
space:
mode:
Diffstat (limited to 'hw_config')
-rw-r--r--hw_config/libvirt-vms/idf.yaml114
-rw-r--r--hw_config/libvirt-vms/pdf.yaml128
2 files changed, 242 insertions, 0 deletions
diff --git a/hw_config/libvirt-vms/idf.yaml b/hw_config/libvirt-vms/idf.yaml
new file mode 100644
index 0000000..1616f9f
--- /dev/null
+++ b/hw_config/libvirt-vms/idf.yaml
@@ -0,0 +1,114 @@
+---
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2020
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+### Installer descriptor file ###
+idf:
+ version: 0.1
+ net_config: &net_config
+ admin:
+ interface: 0
+ network: 10.1.0.0
+ mask: 24
+ public:
+ interface: 1
+ network: 10.2.0.0
+ mask: 24
+ gateway: 10.2.0.1
+ dns:
+ - 8.8.8.8
+ - 8.8.4.4
+ kubespray: &idf_kubespray
+ nodes_roles:
+ node1: [k8s-cluster, kube-master, etcd, vault]
+ node2: [k8s-cluster, kube-node]
+ groups:
+ k8s-cluster:
+ - kube-node
+ - kube-master
+ hostnames:
+ node1: master1
+ node2: worker1
+ network:
+ # network mapping
+ network_mapping:
+ # Admin network
+ net_admin: admin
+ # Public network
+ net_public: public
+ # Management network used by installer components to communicate
+ net_mgmt: admin
+
+engine:
+ pod_name: jumphost
+ net_config: *net_config
+
+ # net_config network to be used by the PXE
+ pxe_network: admin
+
+ # net_config network to be used for the internet access
+ public_network: public
+
+ # interface to be used by the PXE
+ pxe_interface: br_admin
+
+ installers:
+ kubespray: *idf_kubespray
+
+bmra:
+ profile: full_nfv
+ network_roles:
+ sriov:
+ - name: ens2
+ pci: "00:02.0"
+ pf_driver: virtio_net
+ vf_driver: virtio_net
+ sriov_dpdk:
+ - name: ens3
+ pci: "00:03.0"
+ pf_driver: virtio_net
+ vf_driver: virtio_net
+ device_roles:
+# qat:
+# - name: crypto01
+# pci: "0000:ab:00.0"
+# mod_type: qat_c62x
+# pci_type: c6xx
+# vfs: 4
+ features:
+ sriov:
+ enable: false
+ sriov_vfs_per_port: 2
+ sriov_dpdk_vfs_per_port: 4
+ sriov_cni: true
+ sriov_net_dp: true
+ hugepages:
+ enable: true
+ default: 2M
+ hugepages_1G: 0
+ hugepages_2M: 5120
+ isolcpus:
+ enable: false
+ autogenerate: false
+ cpus: "4-19,24-39,44-59,64-79" # Not used when autogenerate is true
+ nfd: true
+ cmk:
+ enable: true
+ num_shared_cores: 1
+ num_exclusive_cores: 2
+ topology_manager:
+ enable: true
+ policy: "best-effort"
+ tas:
+ enable: true
+ demo_policy: false
+ bond_cni: true
+ psp: true
+ qat:
+ enable: false
+ update_drivers: false
diff --git a/hw_config/libvirt-vms/pdf.yaml b/hw_config/libvirt-vms/pdf.yaml
new file mode 100644
index 0000000..6686e02
--- /dev/null
+++ b/hw_config/libvirt-vms/pdf.yaml
@@ -0,0 +1,128 @@
+---
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2020
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+### POD descriptor file ###
+details:
+ type: virtual
+ link: http://wiki.nordix.org/
+jumphost:
+ name: jumphost
+ node:
+ type: virtual
+ vendor: libvirt
+ model: pc
+ arch: x86_64
+ cpus: 12
+ cpu_cflags: host-passthrough
+ cores: 12
+ memory: 16G
+ disks:
+ - name: disk1
+ disk_capacity: 300G
+ disk_type: hdd
+ disk_interface: sata
+ disk_rotation:
+ os: ubuntu1804
+ interfaces:
+ # NOTE (fdegir): The IPs listed below actually belong to the libvirt bridges
+ # we create & configure since this is virtual POD and its real IP has nothing
+ # to do with the deployment itself.
+ # interface connected to admin/pxe network
+ - address: 10.1.0.1
+ # interface connected to public network
+ - address: 10.2.0.1
+##############################################################################
+nodes:
+ - name: node1
+ node:
+ type: virtual
+ vendor: libvirt
+ model: pc
+ arch: x86_64
+ cpus: 4
+ cpu_cflags: host-passthrough
+ cores: 4
+ memory: 16G
+ disks: &disks
+ - name: disk1
+ disk_capacity: 30G
+ disk_type: hdd
+ disk_interface: sata
+ disk_rotation:
+ - name: disk2
+ disk_capacity: 20G
+ disk_type: hdd
+ disk_interface: sata
+ disk_rotation:
+ remote_params: &remote_params
+ type:
+ - ipmi
+ user: admin
+ pass: password
+ privilege_level: OPERATOR
+ remote_management:
+ <<: *remote_params
+ port: 623
+ address: 10.1.0.1
+ mac_address: "52:54:00:72:bf:cf"
+ interface_common_nic1: &interface_common_nic1
+ name: nic1
+ speed:
+ features:
+ vlan: native
+ interface_common_nic2: &interface_common_nic2
+ name: nic2
+ speed:
+ features:
+ vlan: native
+ interface_common_nic3: &interface_common_nic3
+ name: nic3
+ speed:
+ features:
+ vlan: native
+ interface_common_nic4: &interface_common_nic4
+ name: nic4
+ speed:
+ features:
+ vlan: native
+ interfaces:
+ # interface connected to admin/pxe network
+ - mac_address: "52:54:00:72:bf:cf"
+ address: 10.1.0.3
+ <<: *interface_common_nic1
+ # interface connected to public network
+ - mac_address: "52:54:00:21:4f:fb"
+ address: 10.2.0.3
+ <<: *interface_common_nic2
+ ##############################################################################
+ - name: node2
+ node:
+ type: virtual
+ vendor: libvirt
+ model: pc
+ arch: x86_64
+ cpus: 6
+ cpu_cflags: host-passthrough
+ cores: 6
+ memory: 32G
+ disks: *disks
+ remote_management:
+ <<: *remote_params
+ port: 624
+ address: 10.1.0.1
+ mac_address: "52:54:00:b9:d4:87"
+ interfaces:
+ # interface connected to admin/pxe network
+ - mac_address: "52:54:00:b9:d4:87"
+ address: 10.1.0.4
+ <<: *interface_common_nic1
+ # interface connected to public network
+ - mac_address: "52:54:00:b7:9f:50"
+ address: 10.2.0.4
+ <<: *interface_common_nic2