4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 - name: template Flannel DaemonSet file
19 dest: "{{ caas.manifests_directory }}/flannel-ds.yaml"
21 - name: template Flannel ConfigMap file
24 dest: "{{ caas.manifests_directory }}/flannel-cm.yaml"
26 - name: create Flannel ConfigMap
28 manifest: "{{ caas.manifests_directory }}/flannel-cm.yaml"
31 - name: create Flannel DS
33 manifest: "{{ caas.manifests_directory }}/flannel-ds.yaml"
36 - name: template DanmNet file for Flannel network for kube-system namespace
38 src: flannel_dnet.yaml
39 dest: "{{ caas.manifests_directory }}/flannel-danm_net_kube_system_ns.yaml"
41 - name: wait for DanmNet to be available
42 command: "kubectl api-resources"
43 register: kube_api_resources
44 until: kube_api_resources.stdout | search('danmnets')
48 - name: create Flannel DanmNet within kube-system namespace
50 manifest: "{{ caas.manifests_directory }}/flannel-danm_net_kube_system_ns.yaml"