From edf351b82f6df2b5fd91c02be9f22f7ae4dccc55 Mon Sep 17 00:00:00 2001 From: wutianwei Date: Fri, 9 Feb 2018 09:20:45 +0800 Subject: Access the K8s dashboard and configure the CLI in opnfv host 1. Add the type: NodePort in dashboard service. the default is ClustIP, which cannot access from outside. 2. Print the url ,user, password for user to access dashboard. 3. configure the kubectl CLI in opnfv host. Change-Id: I6cb6e6f7547412139ece0c40a85de67a9edce0ef Signed-off-by: wutianwei --- xci/installer/kubespray/playbooks/configure-opnfvhost.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xci/installer/kubespray/playbooks') diff --git a/xci/installer/kubespray/playbooks/configure-opnfvhost.yml b/xci/installer/kubespray/playbooks/configure-opnfvhost.yml index 4db9ac1a..d6e1d7b8 100644 --- a/xci/installer/kubespray/playbooks/configure-opnfvhost.yml +++ b/xci/installer/kubespray/playbooks/configure-opnfvhost.yml @@ -62,6 +62,13 @@ state: present update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}" when: XCI_FLAVOR == 'aio' + + - name: change dashboard server type to NodePort + lineinfile: + path: "{{ remote_xci_path }}/.cache/repos/kubespray/roles/kubernetes-apps/ansible/templates/dashboard.yml.j2" + insertafter: 'targetPort' + line: " type: NodePort" + - name: pip install ansible pip: name: ansible -- cgit 1.2.3-korg on value='stable/gambia'>stable/gambia Grokmirror user
summaryrefslogtreecommitdiffstats
blob: 2dc621be3aa0539ebf02b52433ae906c63261493 (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
##############################################################################
# Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
#
# 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
##############################################################################
---
# Sample benchmark task config file
# Reading cache hit/miss ratio and usage statistics

schema: "yardstick:task:0.1"

scenarios:
-
  type: CACHEstat
  options:
    interval: 1

  host: kratos.demo

  runner:
    type: Duration
    duration: 60

context:
  name: demo
  image: yardstick-image
  flavor: yardstick-flavor
  user: ubuntu

  servers:
    kratos:
      floating_ip: true

  networks:
    test:
      cidr: '10.0.1.0/24'