summaryrefslogtreecommitdiffstats
path: root/src/fuel-plugin/deployment_tasks.yaml
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2017-03-13 03:06:56 +0800
committerGuo Ruijing <ruijing.guo@intel.com>2017-03-13 03:13:38 +0800
commit14592c93aa4dd318edd686394bd13a8880c2219b (patch)
treec92a3ff881bc679efd339e32c5a4d003c33a66b9 /src/fuel-plugin/deployment_tasks.yaml
parent2a5f2db83cc403e36820464225478bf70a946c3d (diff)
Deploy K8s with flannel/weave by fuel plugin
1. add license information 2. add fuel plugin to deploy k8s with flannel/weave: [root@fuel ~]# fuel plugins id | name | version | package_version | releases ---+-----------------+---------+-----------------+--------------------- 9 | fuel-plugin-k8s | 1.0.0 | 4.0.0 | ubuntu (newton-10.0) [root@fuel ~]# fuel nodes id | status | name | cluster | ip | mac | roles | pending_roles | online | group_id ---+--------+------------------+---------+-----------+-------------------+------------+---------------+--------+--------- 15 | ready | Untitled (36:ba) | 5 | 10.20.0.7 | 52:54:00:37:36:ba | compute | | 1 | 5 20 | ready | Untitled (a5:c0) | 5 | 10.20.0.5 | 52:54:00:15:a5:c0 | k8s-master | | 1 | 5 21 | ready | Untitled (f6:58) | 5 | 10.20.0.8 | 42:bc:7f:4a:ed:1e | k8s-slave | | 1 | 5 14 | ready | Untitled (7e:60) | 5 | 10.20.0.6 | 32:20:08:b9:e4:9a | controller | | 1 | 5 [root@fuel ~]# ssh 10.20.0.5 Warning: Permanently added '10.20.0.5' (ECDSA) to the list of known hosts. Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-66-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage Last login: Sun Mar 12 19:30:52 2017 from 10.20.0.2 root@node-20:~# kubectl get nodes NAME STATUS AGE node-20.domain.tld Ready,master 50m node-21.domain.tld Ready 14m root@node-20:~# kubectl get pods NAME READY STATUS RESTARTS AGE busybox 1/1 Running 0 11m Change-Id: I4969c08fb35d0e7354a1cacdf89d739fff2e5eba Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/fuel-plugin/deployment_tasks.yaml')
-rw-r--r--src/fuel-plugin/deployment_tasks.yaml44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/fuel-plugin/deployment_tasks.yaml b/src/fuel-plugin/deployment_tasks.yaml
new file mode 100644
index 0000000..be7ce74
--- /dev/null
+++ b/src/fuel-plugin/deployment_tasks.yaml
@@ -0,0 +1,44 @@
+# Copyright (c) 2017 Intel Corporation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+- id: k8s
+ type: group
+ role: [k8s-master, k8s-slave]
+ requires: [deploy_start]
+ required_for: [deploy_end]
+ tasks: [hiera, setup_repositories, fuel_pkgs, globals, tools, logging, netconfig]
+ parameters:
+ strategy:
+ type: parallel
+
+- id: k8s-master-install
+ type: puppet
+ version: 2.0.0
+ groups: [k8s-master]
+ required_for: [deploy_end]
+ requires: [netconfig]
+ parameters:
+ puppet_manifest: puppet/manifests/k8s-master-install.pp
+ puppet_modules: puppet/modules:/etc/puppet/modules
+ timeout: 720
+
+- id: k8s-slave-install
+ type: puppet
+ version: 2.0.0
+ groups: [k8s-slave]
+ required_for: [post_deployment_end]
+ requires: [post_deployment_start]
+ parameters:
+ puppet_manifest: puppet/manifests/k8s-slave-install.pp
+ puppet_modules: puppet/modules:/etc/puppet/modules
+ timeout: 720