From 118994d7f5d294cae5abec7b1171521ba17ff0f3 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Wed, 28 Aug 2024 15:50:03 +1000 Subject: [PATCH 1/2] refactor --- .../base/{crb.yaml => cluster-role-binding.yaml} | 0 .../base/{cr.yaml => cluster-role.yaml} | 0 .../base/{cm.yaml => configmap.yaml} | 0 ...{crd.yaml => custom-resource-definition.yaml} | 0 .../argo-workflows/base/kustomization.yaml | 16 ++++++++-------- .../base/{pc.yaml => priority-class.yaml} | 0 .../base/{rb.yaml => role-binding.yaml} | 0 .../base/{sa.yaml => service-account.yaml} | 0 .../base/{svc.yaml => service.yaml} | 0 9 files changed, 8 insertions(+), 8 deletions(-) rename infrastructures/argo-workflows/base/{crb.yaml => cluster-role-binding.yaml} (100%) rename infrastructures/argo-workflows/base/{cr.yaml => cluster-role.yaml} (100%) rename infrastructures/argo-workflows/base/{cm.yaml => configmap.yaml} (100%) rename infrastructures/argo-workflows/base/{crd.yaml => custom-resource-definition.yaml} (100%) rename infrastructures/argo-workflows/base/{pc.yaml => priority-class.yaml} (100%) rename infrastructures/argo-workflows/base/{rb.yaml => role-binding.yaml} (100%) rename infrastructures/argo-workflows/base/{sa.yaml => service-account.yaml} (100%) rename infrastructures/argo-workflows/base/{svc.yaml => service.yaml} (100%) diff --git a/infrastructures/argo-workflows/base/crb.yaml b/infrastructures/argo-workflows/base/cluster-role-binding.yaml similarity index 100% rename from infrastructures/argo-workflows/base/crb.yaml rename to infrastructures/argo-workflows/base/cluster-role-binding.yaml diff --git a/infrastructures/argo-workflows/base/cr.yaml b/infrastructures/argo-workflows/base/cluster-role.yaml similarity index 100% rename from infrastructures/argo-workflows/base/cr.yaml rename to infrastructures/argo-workflows/base/cluster-role.yaml diff --git a/infrastructures/argo-workflows/base/cm.yaml b/infrastructures/argo-workflows/base/configmap.yaml similarity index 100% rename from infrastructures/argo-workflows/base/cm.yaml rename to infrastructures/argo-workflows/base/configmap.yaml diff --git a/infrastructures/argo-workflows/base/crd.yaml b/infrastructures/argo-workflows/base/custom-resource-definition.yaml similarity index 100% rename from infrastructures/argo-workflows/base/crd.yaml rename to infrastructures/argo-workflows/base/custom-resource-definition.yaml diff --git a/infrastructures/argo-workflows/base/kustomization.yaml b/infrastructures/argo-workflows/base/kustomization.yaml index 44b2f85..18c9e0b 100644 --- a/infrastructures/argo-workflows/base/kustomization.yaml +++ b/infrastructures/argo-workflows/base/kustomization.yaml @@ -1,14 +1,14 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - - ./crd.yaml - - ./sa.yaml + - ./custom-resource-definition.yaml + - ./service-account.yaml - ./role.yaml - - ./cr.yaml - - ./rb.yaml - - ./crb.yaml - - ./cm.yaml + - ./cluster-role.yaml + - ./role-binding.yaml + - ./cluster-role-binding.yaml + - ./configmap.yaml - ./secret.yaml - - ./svc.yaml - - ./pc.yaml + - ./service.yaml + - ./priority-class.yaml - ./deployment.yaml \ No newline at end of file diff --git a/infrastructures/argo-workflows/base/pc.yaml b/infrastructures/argo-workflows/base/priority-class.yaml similarity index 100% rename from infrastructures/argo-workflows/base/pc.yaml rename to infrastructures/argo-workflows/base/priority-class.yaml diff --git a/infrastructures/argo-workflows/base/rb.yaml b/infrastructures/argo-workflows/base/role-binding.yaml similarity index 100% rename from infrastructures/argo-workflows/base/rb.yaml rename to infrastructures/argo-workflows/base/role-binding.yaml diff --git a/infrastructures/argo-workflows/base/sa.yaml b/infrastructures/argo-workflows/base/service-account.yaml similarity index 100% rename from infrastructures/argo-workflows/base/sa.yaml rename to infrastructures/argo-workflows/base/service-account.yaml diff --git a/infrastructures/argo-workflows/base/svc.yaml b/infrastructures/argo-workflows/base/service.yaml similarity index 100% rename from infrastructures/argo-workflows/base/svc.yaml rename to infrastructures/argo-workflows/base/service.yaml From f95f5ea23eee000bbbe47daf712a37e25392d6bc Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Wed, 28 Aug 2024 15:51:51 +1000 Subject: [PATCH 2/2] deploy pods to amd64 node --- infrastructures/argo-workflows/base/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infrastructures/argo-workflows/base/deployment.yaml b/infrastructures/argo-workflows/base/deployment.yaml index 44bfb36..db5a1d1 100644 --- a/infrastructures/argo-workflows/base/deployment.yaml +++ b/infrastructures/argo-workflows/base/deployment.yaml @@ -45,6 +45,7 @@ spec: name: tmp nodeSelector: kubernetes.io/os: linux + kubernetes.io/arch: amd64 securityContext: runAsNonRoot: true serviceAccountName: argo-server @@ -99,6 +100,7 @@ spec: runAsNonRoot: true nodeSelector: kubernetes.io/os: linux + kubernetes.io/arch: amd64 priorityClassName: workflow-controller securityContext: runAsNonRoot: true