From eb488b2daf0dc9534516a0ccfcc4b3a2a715c948 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sun, 22 Sep 2024 12:15:43 +0200 Subject: [PATCH] fix manifest errors --- traefik/base/000-namespace.yaml | 6 ++++++ traefik/base/002-traefik-services.yaml | 17 ++++++++++++++--- traefik/kustomization.yaml | 3 ++- 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 traefik/base/000-namespace.yaml diff --git a/traefik/base/000-namespace.yaml b/traefik/base/000-namespace.yaml new file mode 100644 index 0000000..cf2261e --- /dev/null +++ b/traefik/base/000-namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: treafik + labels: + pod-security.kubernetes.io/enforce: privileged diff --git a/traefik/base/002-traefik-services.yaml b/traefik/base/002-traefik-services.yaml index 2327d04..37b9ecb 100644 --- a/traefik/base/002-traefik-services.yaml +++ b/traefik/base/002-traefik-services.yaml @@ -1,14 +1,25 @@ apiVersion: v1 kind: Service metadata: - name: traefik-service + name: traefik-dashboard-service + +spec: + type: LoadBalancer + ports: + - port: 8080 + targetPort: dashboard + selector: + app: traefik +--- +apiVersion: v1 +kind: Service +metadata: + name: traefik-web-service spec: type: LoadBalancer ports: - targetPort: web port: 80 - - targetPort: dashboard - port: 8080 selector: app: traefik diff --git a/traefik/kustomization.yaml b/traefik/kustomization.yaml index d9c8d80..60890cc 100644 --- a/traefik/kustomization.yaml +++ b/traefik/kustomization.yaml @@ -1,9 +1,10 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization -namespace: kube-system +namespace: traefik resources: +- ./base/000-namespace.yaml - ./base/000-role-binding.yaml - ./base/000-cluster-role.yaml - ./base/001-service-account.yaml