COMAC-261 Add cluster-api control plane kustomization for COMAC on GCP
Also, restructured comac directory as we added another method of deploying K8S.
Change-Id: I4cd77549bf04f38b93201e9a6ac41799e4a2726f
diff --git a/comac/cluster-api/gcp/kustomization.yaml b/comac/cluster-api/gcp/kustomization.yaml
new file mode 100644
index 0000000..a1f9d12
--- /dev/null
+++ b/comac/cluster-api/gcp/kustomization.yaml
@@ -0,0 +1,21 @@
+# Copyright 2019-present Open Networking Foundation
+#
+# 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.
+
+---
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+bases:
+ - https://github.com/kubernetes-sigs/cluster-api-provider-gcp/examples/controlplane
+patchesStrategicMerge:
+ - kustomizecomac.yaml
diff --git a/comac/cluster-api/gcp/kustomizecomac.yaml b/comac/cluster-api/gcp/kustomizecomac.yaml
new file mode 100644
index 0000000..05b3ac9
--- /dev/null
+++ b/comac/cluster-api/gcp/kustomizecomac.yaml
@@ -0,0 +1,56 @@
+# Copyright 2019-present Open Networking Foundation
+#
+# 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.
+
+---
+apiVersion: bootstrap.cluster.x-k8s.io/v1alpha2
+kind: KubeadmConfig
+metadata:
+ name: ${CLUSTER_NAME}-controlplane-0
+spec:
+ clusterConfiguration:
+ apiServer:
+ extraArgs:
+ feature-gates: SCTPSupport=True
+ service-node-port-range: 2000-36767
+ scheduler:
+ extraArgs:
+ feature-gates: SCTPSupport=True
+---
+apiVersion: bootstrap.cluster.x-k8s.io/v1alpha2
+kind: KubeadmConfig
+metadata:
+ name: ${CLUSTER_NAME}-controlplane-1
+spec:
+ clusterConfiguration:
+ apiServer:
+ extraArgs:
+ feature-gates: SCTPSupport=True
+ service-node-port-range: 2000-36767
+ scheduler:
+ extraArgs:
+ feature-gates: SCTPSupport=True
+---
+apiVersion: bootstrap.cluster.x-k8s.io/v1alpha2
+kind: KubeadmConfig
+metadata:
+ name: ${CLUSTER_NAME}-controlplane-2
+spec:
+ clusterConfiguration:
+ apiServer:
+ extraArgs:
+ feature-gates: SCTPSupport=True
+ service-node-port-range: 2000-36767
+ scheduler:
+ extraArgs:
+ feature-gates: SCTPSupport=True