From a30e001f852507546f3a1efe5caff6feb836bcac Mon Sep 17 00:00:00 2001 From: Jugwan Eom Date: Wed, 27 Oct 2021 04:51:30 +0000 Subject: [PATCH 1/2] create-usercluster: reduce cluster creation time Some tasks could be done later was removed. They will be executed in parallel at the time of installation of the first App such as LMA. --- tks-cluster/create-usercluster-wftpl.yaml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tks-cluster/create-usercluster-wftpl.yaml b/tks-cluster/create-usercluster-wftpl.yaml index 5e3a204e..d54e0a91 100755 --- a/tks-cluster/create-usercluster-wftpl.yaml +++ b/tks-cluster/create-usercluster-wftpl.yaml @@ -52,11 +52,6 @@ spec: - - name: wait-for-clster-to-be-registered template: wait-for-cluster-registration - - - name: prepare-additional-aws-infra - templateRef: - name: aws-infrastructure - template: AddAwsInfra - - - name: install-cni-and-csi templateRef: name: tks-create-application-new @@ -66,7 +61,6 @@ spec: - name: list value: | [ - { "path": "ingress-nginx", "namespace": "taco-system" }, { "path": "kubernetes-addons", "namespace": "taco-system" } ] From 8ea867c5eca77b975a340e073936fd8960c870d7 Mon Sep 17 00:00:00 2001 From: Jugwan Eom Date: Wed, 27 Oct 2021 04:58:42 +0000 Subject: [PATCH 2/2] add ingress controller install workflow template --- deploy_apps/tks-ingress-controller-wftpl.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 deploy_apps/tks-ingress-controller-wftpl.yaml diff --git a/deploy_apps/tks-ingress-controller-wftpl.yaml b/deploy_apps/tks-ingress-controller-wftpl.yaml new file mode 100644 index 00000000..e7c6c37d --- /dev/null +++ b/deploy_apps/tks-ingress-controller-wftpl.yaml @@ -0,0 +1,48 @@ +apiVersion: argoproj.io/v1alpha1 +kind: WorkflowTemplate +metadata: + name: tks-install-ingress-controller + namespace: argo +spec: + entrypoint: deploy + arguments: + parameters: + - name: contract_id + value: "0010010a-d6cb-459b-9148-1b02ac545753" + - name: cluster_id + value: "011b88fa-4d53-439f-9336-67845f994051" + - name: git_account + value: "tks-management" + - name: revision + value: main + - name: tks_admin + value: "tks-admin" + - name: app_group + value: "tks-cluster" + + volumes: + - name: config + secret: + secretName: tks-admin-kubeconfig-secret + namespace: argo + - name: artifacts + configMap: + name: aws-artifacts + namespace: argo + defaultMode: 0555 + + templates: + - name: deploy + steps: + + - - name: install-ingress-controller + templateRef: + name: tks-create-application-new + template: installApps + arguments: + parameters: + - name: list + value: | + [ + { "path": "ingress-nginx", "namespace": "taco-system" } + ]