change k8s version to v1.9.1 41/51841/2
authorhu xinhui <xinhui_hu@foxmail.com>
Tue, 6 Feb 2018 02:20:40 +0000 (10:20 +0800)
committerhu xinhui <xinhui_hu@foxmail.com>
Fri, 9 Feb 2018 05:26:16 +0000 (13:26 +0800)
JIRA: -

1. compass4nfv can deploy v1.9.1  kubernetes
2. end user can use the kubernetes dashboard

Change-Id: I274dda38599da95f382dfcb4159b530da8422fd8
Signed-off-by: hu xinhui <xinhui_hu@foxmail.com>
build/build.yaml
deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml
deploy/adapters/ansible/kubernetes/roles/kargo/vars/main.yml
deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/main.yml
deploy/compass_conf/templates/ansible_installer/kubernetes/ansible_cfg/ansible-kubernetes.tmpl
deploy/conf/cluster.conf

index 93cb796..4f70f39 100644 (file)
@@ -23,7 +23,7 @@ packages:
   - name: compass-tasks-k8s
     description: "compass task container integrated with kubespray"
     get_method: docker
-    url: huangxiangyu/compass-tasks-k8s:latest
+    url: compass4nfv/compass-tasks-k8s:latest
 
   - name: compass-cobbler
     description: "cobbler container for compass"
index af52ad0..f68eec4 100644 (file)
     regexp: '^#loadbalancer_apiserver_localhost: true'
     line: 'loadbalancer_apiserver_localhost: true'
 
+- name: use the user name and password login the dashboard
+  lineinfile:
+    dest: /opt/kargo_k8s/inventory/group_vars/k8s-cluster.yml
+    regexp: '^#kube_basic_auth: false'
+    line: 'kube_basic_auth: true'
+
+
 - name: add vip to ssl keys
   lineinfile:
     dest: /opt/kargo_k8s/inventory/group_vars/k8s-cluster.yml
index b73056e..21287b0 100644 (file)
@@ -3,3 +3,4 @@ helm_flag: true
 apiserver_loadbalancer_domain_name: "{{ public_vip.ip  }}"
 vipaddress: "{{ public_vip.ip  }}"
 exlb_port: 8383
+kubelet_fail_swap_on: false
index 7620344..c915ec0 100644 (file)
@@ -12,3 +12,7 @@
 
 - include: "{{ ansible_os_family }}.yml"
   when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7'
+
+- name: close the swap partition
+  shell: |
+    swapoff -a
index f09fa9c..da4554e 100644 (file)
@@ -3,7 +3,7 @@
 log_path = /var/ansible/run/kubernetes-$cluster_name/ansible.log
 host_key_checking = False
 callback_whitelist = playbook_done, status_callback
-callback_plugins = /opt/ansible_callbacks
+callback_plugins = /opt/ansible_plugins/callback
 forks=100
 
 [ssh_connection]
index c7a708b..0d94710 100644 (file)
@@ -24,6 +24,7 @@ export ADAPTER_NAME="openstack_$OPENSTACK_VERSION"
 export ADAPTER_FLAVOR_PATTERN="HA-ansible-multinodes-$OPENSTACK_VERSION"
 
 if [[ "x"$KUBERNETES_VERSION != "x" ]]; then
+    unset  OPENSTACK_VERSION
     export ADAPTER_NAME=kubernetes
     export ADAPTER_FLAVOR_PATTERN=ansible-kubernetes
     export ADAPTER_TARGET_SYSTEM_PATTERN='^kubernetes$'