summaryrefslogtreecommitdiffstats
path: root/deploy/conf/hardware_environment/huawei-pod1/os-nosdn-nofeature-ha.yml
blob: 8d5794f78a4c5b2ea651cfa7795b6963fe7d2c16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
TYPE: baremetal
FLAVOR: cluster
POWER_TOOL: ipmitool

ipmiUser: root
ipmiVer: '2.0'

hosts:
  - name: host1
    mac: 'F8:4A:BF:55:A2:8D'
    interfaces:
       - eth1: 'F8:4A:BF:55:A2:8E'
    ipmiIp: 172.16.130.26
    ipmiPass: Huawei@123
    roles:
      - controller
      - ha
      - ceph-adm
      - ceph-mon

  - name: host2
    mac: 'D8:49:0B:DA:5A:B7'
    interfaces:
      - eth1: 'D8:49:0B:DA:5A:B8'
    ipmiIp: 172.16.130.27
    ipmiPass: huawei@123
    roles:
      - controller
      - ha
      - ceph-mon

  - name: host3
    mac: '78:D7:52:A0:B1:99'
    interfaces:
      - eth1: '78:D7:52:A0:B1:9A'
    ipmiIp: 172.16.130.29
    ipmiPass: Huawei@123
    roles:
      - controller
      - ha
      - ceph-mon

  - name: host4
    mac: 'D8:49:0B:DA:5B:5D'
    interfaces:
      - eth1: 'D8:49:0B:DA:5B:5E'
    ipmiIp: 172.16.130.30
    ipmiPass: Huawei@123
    roles:
      - compute
      - ceph-osd

  - name: host5
    mac: 'D8:49:0B:DA:56:85'
    interfaces:
      - eth1: 'D8:49:0B:DA:56:86'
    ipmiIp: 172.16.130.31
    ipmiPass: Huawei@123
    roles:
      - compute
      - ceph-osd
="nv">$EX_IP -p tcp --dport $PORT -j DNAT --to 192.16.1.222:443 The $EX_IP here is the server's ip address that can be access from external. You can use below command to query your external IP address. .. code-block:: bash external_nic=`ip route |grep '^default'|awk '{print $5F}' ip addr show $external_nic The $PORT here is the one of the port [1- 65535] that does't be used in system. After that, you can visit OpenStack Dashboard by URL: http://$EX_IP:$PORT How to access controller nodes after deployment =============================================== You can login the controller nodes (host1-3) by default user/pass root/root via the install network IPs which are configured in "compass4nfv/deploy/conf/base.conf", defined as below: .. code-block:: bash export MANAGEMENT_IP_START=${MANAGEMENT_IP_START:-'10.1.0.50'} .. code-block:: console +-------------+ | | +----------+ host1 | | | | | +-------------+ | +---------+ | +-------------+ | | install | | | | Compass +---------------+----------+ host2 | | | network | | | +---+VM+--+ | +-------------+ +--------------------+ | | | | +-------------+ | Jumphost | | | | | | +----------+ host3 | +--------------------+ | | +-------------+ Where is OpenStack RC file ========================== The RC file named openrc is located in /root in utility container on each controller node as default. Please source it first if you want to use OpenStack CLI. .. code-block:: bash lxc-attach -n $(lxc-ls | grep utility) source /root/openrc How to recovery network connection after Jumphost reboot ======================================================== .. code-block:: bash source deploy/network.sh && save_network_info How to use Kubernetes CLI ========================= Login one of the controllers ---------------------------- There are 3 controllers referring to host1 to host3 with IPs from 10.1.0.50 to 10.1.0.52. The username of the nodes is root, and the password is root. .. code-block:: bash ssh root@10.1.0.50 Run the Kubernetes command -------------------------- Kubectl controls the Kubernetes cluster manager. .. code-block:: bash kubectl help Follow the k8s example to create a ngnix service ------------------------------------------------ To create a nginx service, please read Ref[2] at the end of this page. References ========== [1] --- For more information on the Compass4nfv FAQ, please visit `COMPASS FAQ WIKI Page <https://wiki.opnfv.org/compass4nfv_faq>`_ [2] --- `K8s Get-Started Page <http://containertutorials.com/get_started_kubernetes/k8s_example.html>`_