bffbfc3ef53436824de95f91413e48375dcdf88d
[osm/devops.git] /
1 #######################################################################################
2 # Copyright ETSI Contributors and Others.
3 #
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
7 #
8 #    http://www.apache.org/licenses/LICENSE-2.0
9 #
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
13 # implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #######################################################################################
17
18 ---
19 apiVersion: ec2.aws.upbound.io/v1beta1
20 kind: Subnet
21 metadata:
22   name: ${cluster_resource_name}-public-subnet-${cluster_location}a
23   labels:
24     type: subnet
25     provider: aws
26     cluster: ${cluster_resource_name}
27     zone: ${cluster_location}a
28     access: public
29 spec:
30   forProvider:
31     region: ${cluster_location}
32     availabilityZone: ${cluster_location}a
33     cidrBlock: 10.10.0.0/24
34     vpcIdSelector:
35       matchLabels:
36         provider: aws
37         cluster: ${cluster_resource_name}
38     mapPublicIpOnLaunch: true
39     tags:
40       kubernetes.io/role/elb: "1"
41       Name: ${cluster_name}-public-subnet-${cluster_location}a
42   # Use in case you wanted to use different credentials (i.e., ProviderConfig different than default)
43   providerConfigRef:
44     name: ${providerconfig_name}
45
46 ---
47 apiVersion: ec2.aws.upbound.io/v1beta1
48 kind: Subnet
49 metadata:
50   name: ${cluster_resource_name}-public-subnet-${cluster_location}b
51   labels:
52     type: subnet
53     provider: aws
54     cluster: ${cluster_resource_name}
55     zone: ${cluster_location}b
56     access: public
57 spec:
58   forProvider:
59     region: ${cluster_location}
60     availabilityZone: ${cluster_location}b
61     cidrBlock: 10.10.1.0/24
62     vpcIdSelector:
63       matchLabels:
64         provider: aws
65         cluster: ${cluster_resource_name}
66     mapPublicIpOnLaunch: true
67     tags:
68       kubernetes.io/role/elb: "1"
69       Name: ${cluster_name}-public-subnet-${cluster_location}b
70   # Use in case you wanted to use different credentials (i.e., ProviderConfig different than default)
71   providerConfigRef:
72     name: ${providerconfig_name}
73
74 ---
75 apiVersion: ec2.aws.upbound.io/v1beta1
76 kind: Subnet
77 metadata:
78   name: ${cluster_resource_name}-private-subnet-${cluster_location}a
79   labels:
80     type: subnet
81     provider: aws
82     cluster: ${cluster_resource_name}
83     zone: ${cluster_location}a
84     access: private
85 spec:
86   forProvider:
87     region: ${cluster_location}
88     availabilityZone: ${cluster_location}a
89     cidrBlock: 10.10.2.0/24
90     vpcIdSelector:
91       matchLabels:
92         provider: aws
93         cluster: ${cluster_resource_name}
94     mapPublicIpOnLaunch: false
95     tags:
96       kubernetes.io/role/elb: "1"
97       Name: ${cluster_name}-private-subnet-${cluster_location}a
98       kubernetes.io/cluster/{cluster_name}: shared
99   # Use in case you wanted to use different credentials (i.e., ProviderConfig different than default)
100   providerConfigRef:
101     name: ${providerconfig_name}
102
103 ---
104 apiVersion: ec2.aws.upbound.io/v1beta1
105 kind: Subnet
106 metadata:
107   name: ${cluster_resource_name}-private-subnet-${cluster_location}b
108   labels:
109     type: subnet
110     provider: aws
111     cluster: ${cluster_resource_name}
112     zone: ${cluster_location}b
113     access: private
114 spec:
115   forProvider:
116     region: ${cluster_location}
117     availabilityZone: ${cluster_location}b
118     cidrBlock: 10.10.3.0/24
119     vpcIdSelector:
120       matchLabels:
121         provider: aws
122         cluster: ${cluster_resource_name}
123     mapPublicIpOnLaunch: false
124     tags:
125       kubernetes.io/role/elb: "1"
126       Name: ${cluster_name}-private-subnet-${cluster_location}b
127       kubernetes.io/cluster/{cluster_name}: shared
128   # Use in case you wanted to use different credentials (i.e., ProviderConfig different than default)
129   providerConfigRef:
130     name: ${providerconfig_name}