From ad22fe5f3b0427ed8c0016c535ad6ac6b75d9efd Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sun, 22 Sep 2024 13:29:38 +0200 Subject: [PATCH] test --- .../ip-mziesel-nl-application.yaml | 20 ++++++++++++++++++ traefik/base/002-traefik-services.yaml | 21 +++++++++++++------ traefik/base/002-traefik.yaml | 2 +- whoami/base/whoami-deployment.yaml | 1 - whoami/base/whoami-svc.yaml | 1 - 5 files changed, 36 insertions(+), 9 deletions(-) create mode 100644 application-manifests/ip-mziesel-nl-application.yaml diff --git a/application-manifests/ip-mziesel-nl-application.yaml b/application-manifests/ip-mziesel-nl-application.yaml new file mode 100644 index 0000000..fbe4ed9 --- /dev/null +++ b/application-manifests/ip-mziesel-nl-application.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: argo-app-ip-mziesel-nl + namespace: argocd +spec: + destination: + name: '' + namespace: default + server: https://kubernetes.default.svc + source: + path: ip-mziesel-nl + repoURL: https://git.mziesel.nl/mans/argocd-test + targetRevision: HEAD + sources: [] + project: default + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/traefik/base/002-traefik-services.yaml b/traefik/base/002-traefik-services.yaml index 4632bb3..37b9ecb 100644 --- a/traefik/base/002-traefik-services.yaml +++ b/traefik/base/002-traefik-services.yaml @@ -1,16 +1,25 @@ apiVersion: v1 kind: Service metadata: - name: traefik-service + name: traefik-dashboard-service spec: type: LoadBalancer ports: - - name: web - targetPort: web - port: 80 - - name: dashbaord - port: 8080 + - port: 8080 targetPort: dashboard selector: app: traefik +--- +apiVersion: v1 +kind: Service +metadata: + name: traefik-web-service + +spec: + type: LoadBalancer + ports: + - targetPort: web + port: 80 + selector: + app: traefik diff --git a/traefik/base/002-traefik.yaml b/traefik/base/002-traefik.yaml index ad414df..277eb87 100644 --- a/traefik/base/002-traefik.yaml +++ b/traefik/base/002-traefik.yaml @@ -22,7 +22,7 @@ spec: args: - --api.insecure - --providers.kubernetesingress - - --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik-service + - --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik-web-service ports: - name: web containerPort: 80 diff --git a/whoami/base/whoami-deployment.yaml b/whoami/base/whoami-deployment.yaml index a91c84e..2ea60a9 100644 --- a/whoami/base/whoami-deployment.yaml +++ b/whoami/base/whoami-deployment.yaml @@ -2,7 +2,6 @@ apiVersion: apps/v1 kind: Deployment metadata: name: whoami - namespace: whoami spec: replicas: 3 revisionHistoryLimit: 3 diff --git a/whoami/base/whoami-svc.yaml b/whoami/base/whoami-svc.yaml index f702ee5..f9c62d4 100644 --- a/whoami/base/whoami-svc.yaml +++ b/whoami/base/whoami-svc.yaml @@ -2,7 +2,6 @@ apiVersion: v1 kind: Service metadata: name: whoami - namespace: whoami spec: type: NodePort ports: