X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ffoundation%2Fhot%2Fk8s_net.yaml;fp=src%2Ffoundation%2Fhot%2Fk8s_net.yaml;h=a1507d102fe8e90c7f764165a0a8c681b27d9024;hb=e598bff59a4a0873488fd180a5a915e49b9f1788;hp=0000000000000000000000000000000000000000;hpb=2fe3d7c689341cc5e25678416c4f035ef3e5c96a;p=iec.git diff --git a/src/foundation/hot/k8s_net.yaml b/src/foundation/hot/k8s_net.yaml new file mode 100644 index 0000000..a1507d1 --- /dev/null +++ b/src/foundation/hot/k8s_net.yaml @@ -0,0 +1,61 @@ +# yamllint disable-line rule:document-start +heat_template_version: 2015-04-30 + +parameters: + external_net: + type: string + description: Name of the external network + default: "external" + +resources: + + k8s_mgmt_net: + type: OS::Neutron::Net + properties: + name: "k8s_mgmt_net" + + k8s_mgmt_subnet: + type: OS::Neutron::Subnet + properties: + network_id: {get_resource: k8s_mgmt_net} + cidr: "192.168.11.0/24" + gateway_ip: 192.168.11.254 + ip_version: 4 + + k8s_mgmt_router: + type: OS::Neutron::Router + properties: + external_gateway_info: {network: {get_param: external_net}} + + k8s_mgmt_interface: + type: OS::Neutron::RouterInterface + properties: + router_id: {get_resource: k8s_mgmt_router} + subnet: {get_resource: k8s_mgmt_subnet} + + k8s_int_net: + type: OS::Neutron::Net + properties: + name: "k8s_int_net" + + k8s_int_subnet: + type: OS::Neutron::Subnet + properties: + network_id: {get_resource: k8s_int_net} + cidr: "172.16.10.0/24" + gateway_ip: null + allocation_pools: + - start: 172.16.10.10 + end: 172.16.10.253 + ip_version: 4 + enable_dhcp: false + +outputs: + k8s_master_ip: + value: "172.16.10.36" + k8s_pod_net_cidr: + value: "100.100.0.0/16" + k8s_svc_net_cidr: + value: "172.16.1.0/24" + k8s_cluster_ip: + value: "172.16.1.136"