summaryrefslogtreecommitdiffstats
path: root/hw_config
diff options
context:
space:
mode:
authorMichael S. Pedersen <michaelx.pedersen@intel.com>2020-10-23 12:24:43 +0000
committerRihab Banday <rihab.banday@ericsson.com>2020-11-13 16:24:54 +0000
commit5d28b70edce08ee912c433386599424f8202f303 (patch)
tree98c1246797f5a03f9417d6e1e6843f5bd90e8e09 /hw_config
parente34b4d93d5e288bdbb5ec798602ea5e8f1bc3985 (diff)
Add support for deploying to Equinix Metal bare-metal servers
Adds an additional hw_config which is simplified (equinix-metal). Adds support for skipping HW provisioning (pre-provisioned through EM). Usage: deploy.sh [k8s] Adds a few new helper functions, and updates existing to support changes. Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com> Signed-off-by: Victor Morales <v.morales@samsung.com> Change-Id: I2f84c662d183ba224e0edd8a218abe8b46c1fe45 Signed-off-by: Victor Morales <v.morales@samsung.com> Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71301 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Rihab Banday <rihab.banday@ericsson.com> Reviewed-by: Victor Morales <chipahuac@hotmail.com>
Diffstat (limited to 'hw_config')
-rw-r--r--hw_config/equinix-metal/idf.yaml40
-rw-r--r--hw_config/equinix-metal/pdf.yaml34
2 files changed, 74 insertions, 0 deletions
diff --git a/hw_config/equinix-metal/idf.yaml b/hw_config/equinix-metal/idf.yaml
new file mode 100644
index 0000000..2c61bb6
--- /dev/null
+++ b/hw_config/equinix-metal/idf.yaml
@@ -0,0 +1,40 @@
+---
+# 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
+##############################################################################
+
+idf:
+ version: 0.1
+ net_config: &net_config
+ public:
+ interface: 0
+ kubespray: &idf_kubespray
+ nodes_roles:
+ node1: [kube-master, etcd]
+ node2: [kube-node]
+ groups:
+ k8s-cluster:
+ - kube-node
+ - kube-master
+ hostnames:
+ # Update with hostnames of servers (node1: master, node2: worker)
+ node1: kref-mst
+ node2: kref-wrk
+
+engine:
+ pod_name: kref-jmp
+ net_config: *net_config
+
+ # net_config network to be used by the PXE
+ pxe_network: public
+
+ # net_config network to be used for the internet access
+ public_network: public
+
+ installers:
+ kubespray: *idf_kubespray
diff --git a/hw_config/equinix-metal/pdf.yaml b/hw_config/equinix-metal/pdf.yaml
new file mode 100644
index 0000000..61afc27
--- /dev/null
+++ b/hw_config/equinix-metal/pdf.yaml
@@ -0,0 +1,34 @@
+---
+# 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
+##############################################################################
+
+version: 1.0
+details:
+ pod_owner: Equinix Metal
+ contact: Equinix Metal
+ lab: EWR1
+ location: Parsipanny, USA
+ type: baremetal
+ link: https://console.equinix.com/
+jumphost:
+ name: kuberef-jump
+ interfaces:
+ - name: 'nic1'
+ mac_address: "52:54:00:4a:e8:2d"
+nodes:
+ - name: node1
+ interfaces:
+ - name: 'nic1'
+ # Update with public IP of target server 1 (master)
+ address: <Server IP>
+ - name: node2
+ interfaces:
+ - name: 'nic1'
+ # Update with public IP of target server 2 (worker)
+ address: <Server IP>