From ae27af92a7ed2ab92d8ba7ac05a0b8c86157314f Mon Sep 17 00:00:00 2001 From: Dex Date: Wed, 1 May 2024 03:11:59 -0400 Subject: [PATCH] Adding ArgoCD --- application.yaml | 23 +++++++++++++++++++++++ components/navigation-menu.tsx | 2 +- deployment/deployment.yaml | 19 +++++++++++++++++++ deployment/services.yaml | 11 +++++++++++ 4 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 application.yaml create mode 100644 deployment/deployment.yaml create mode 100644 deployment/services.yaml diff --git a/application.yaml b/application.yaml new file mode 100644 index 0000000..b1ee54d --- /dev/null +++ b/application.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: kx3dex-radio-site + namespace: argocd +spec: + project: kx3dex-radio + + source: + repoURL: https://gitea.simplysyncedllc.com/Dex/kx3dex_radio.git + targetRevision: HEAD + path: deployment + destination: + server: https://kubernetes.default.svc + namespace: kx3dex-radio + + syncPolicy: + syncOptions: + - CreateNamespace=true + + automated: + selfHeal: true + prune: true diff --git a/components/navigation-menu.tsx b/components/navigation-menu.tsx index 1daf099..5b5bf5d 100644 --- a/components/navigation-menu.tsx +++ b/components/navigation-menu.tsx @@ -41,7 +41,7 @@ NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName const NavigationMenuItem = NavigationMenuPrimitive.Item const navigationMenuTriggerStyle = cva( - "group inline-flex h-10 w-max items-center justify-center rounded-md yarnpy-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50" + "group inline-flex h-10 w-max items-center justify-center rounded-md yarnpy-2 text-sm font-medium transition-colors focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50" ) const NavigationMenuTrigger = React.forwardRef< diff --git a/deployment/deployment.yaml b/deployment/deployment.yaml new file mode 100644 index 0000000..e5c9d09 --- /dev/null +++ b/deployment/deployment.yaml @@ -0,0 +1,19 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: kx3dex-radio-deployment +spec: + selector: + matchLabels: + app: KX3DEX_Radio + replicas: 2 + template: + metadata: + labels: + app: KX3DEX_Radio + spec: + containers: + - name: kx3dex-radio-site + image: gitea.simplysyncedllc.com/dex/kx3dex_radio:latest + ports: + - containerPort: 3000 diff --git a/deployment/services.yaml b/deployment/services.yaml new file mode 100644 index 0000000..5aef174 --- /dev/null +++ b/deployment/services.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: kx3dex-radio-service +spec: + selector: + app: myapp + ports: + - port: 3000 + protocol: TCP + targetPort: 3000