From 72bbf14c1fae1a49c3b918557ca998526e58714c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20BUISSON?= Date: Wed, 14 Feb 2024 11:30:06 +0100 Subject: [PATCH] feat: use public image (#42) --- apps/base/apps/customers/api-versioned.yaml | 10 ---------- apps/base/apps/customers/api.yaml | 4 +--- apps/base/apps/customers/customer-v2.yaml | 2 +- apps/base/apps/customers/customer-v3.yaml | 2 +- apps/base/apps/customers/customer-v4.yaml | 2 +- apps/base/apps/customers/customer.yaml | 2 +- apps/base/apps/employee/api.yaml | 2 -- apps/base/apps/employee/employee.yaml | 6 +++--- apps/base/apps/flight/api.yaml | 2 -- apps/base/apps/flight/flight.yaml | 2 +- apps/base/apps/ticket/api.yaml | 4 +--- apps/base/apps/ticket/ticket.yaml | 2 +- 12 files changed, 11 insertions(+), 29 deletions(-) diff --git a/apps/base/apps/customers/api-versioned.yaml b/apps/base/apps/customers/api-versioned.yaml index 3c013fb..7595471 100644 --- a/apps/base/apps/customers/api-versioned.yaml +++ b/apps/base/apps/customers/api-versioned.yaml @@ -27,8 +27,6 @@ spec: number: 3000 openApiSpec: path: /openapi.yaml - port: - number: 3000 --- apiVersion: hub.traefik.io/v1alpha1 @@ -49,8 +47,6 @@ spec: number: 3000 openApiSpec: path: /openapi.yaml - port: - number: 3000 --- apiVersion: hub.traefik.io/v1alpha1 @@ -71,8 +67,6 @@ spec: number: 3000 openApiSpec: path: /openapi.yaml - port: - number: 3000 --- apiVersion: hub.traefik.io/v1alpha1 @@ -98,8 +92,6 @@ spec: number: 3000 openApiSpec: path: /openapi.yaml - port: - number: 3000 --- apiVersion: hub.traefik.io/v1alpha1 @@ -120,8 +112,6 @@ spec: number: 3000 openApiSpec: path: /openapi.yaml - port: - number: 3000 cors: allowCredentials: true allowHeaders: diff --git a/apps/base/apps/customers/api.yaml b/apps/base/apps/customers/api.yaml index c76b1cb..2ec1a1d 100644 --- a/apps/base/apps/customers/api.yaml +++ b/apps/base/apps/customers/api.yaml @@ -12,8 +12,6 @@ spec: service: openApiSpec: path: /openapi.yaml - port: - number: 3000 name: customer-app port: - number: 3000 \ No newline at end of file + number: 3000 diff --git a/apps/base/apps/customers/customer-v2.yaml b/apps/base/apps/customers/customer-v2.yaml index 690a1d2..06207d4 100644 --- a/apps/base/apps/customers/customer-v2.yaml +++ b/apps/base/apps/customers/customer-v2.yaml @@ -32,7 +32,7 @@ spec: spec: containers: - name: api - image: mmatur/traefik-hub:kubecon + image: ghcr.io/traefik-workshops/api-server:v0.1.0 args: ["-data", "/api/api.json", "-openapi", "/public/openapi.yaml"] imagePullPolicy: Always volumeMounts: diff --git a/apps/base/apps/customers/customer-v3.yaml b/apps/base/apps/customers/customer-v3.yaml index 1a33ebd..a2c1efe 100644 --- a/apps/base/apps/customers/customer-v3.yaml +++ b/apps/base/apps/customers/customer-v3.yaml @@ -32,7 +32,7 @@ spec: spec: containers: - name: api - image: mmatur/traefik-hub:kubecon + image: ghcr.io/traefik-workshops/api-server:v0.1.0 args: ["-data", "/api/api.json", "-openapi", "/public/openapi.yaml"] imagePullPolicy: Always volumeMounts: diff --git a/apps/base/apps/customers/customer-v4.yaml b/apps/base/apps/customers/customer-v4.yaml index 2d1c7b7..ca4f597 100644 --- a/apps/base/apps/customers/customer-v4.yaml +++ b/apps/base/apps/customers/customer-v4.yaml @@ -32,7 +32,7 @@ spec: spec: containers: - name: api - image: mmatur/traefik-hub:kubecon + image: ghcr.io/traefik-workshops/api-server:v0.1.0 args: ["-data", "/api/api.json", "-openapi", "/public/openapi.yaml"] imagePullPolicy: Always volumeMounts: diff --git a/apps/base/apps/customers/customer.yaml b/apps/base/apps/customers/customer.yaml index 02b99fe..d4d0c8b 100644 --- a/apps/base/apps/customers/customer.yaml +++ b/apps/base/apps/customers/customer.yaml @@ -32,7 +32,7 @@ spec: spec: containers: - name: api - image: mmatur/traefik-hub:kubecon + image: ghcr.io/traefik-workshops/api-server:v0.1.0 args: ["-data", "/api/api.json", "-openapi", "/public/openapi.yaml", "-errorrate", "2"] imagePullPolicy: Always volumeMounts: diff --git a/apps/base/apps/employee/api.yaml b/apps/base/apps/employee/api.yaml index b390ad3..03e63ec 100644 --- a/apps/base/apps/employee/api.yaml +++ b/apps/base/apps/employee/api.yaml @@ -12,8 +12,6 @@ spec: service: openApiSpec: path: /openapi.yaml - port: - number: 3000 name: employee-app port: number: 3000 diff --git a/apps/base/apps/employee/employee.yaml b/apps/base/apps/employee/employee.yaml index c939a94..565941d 100644 --- a/apps/base/apps/employee/employee.yaml +++ b/apps/base/apps/employee/employee.yaml @@ -33,7 +33,7 @@ spec: spec: containers: - name: api - image: mmatur/traefik-hub:kubecon + image: ghcr.io/traefik-workshops/api-server:v0.1.0 args: ["-data", "/api/api.json", "-openapi", "/public/openapi.yaml", "-errorrate", "2"] imagePullPolicy: Always volumeMounts: @@ -83,7 +83,7 @@ spec: spec: containers: - name: api - image: mmatur/traefik-hub:kubecon + image: ghcr.io/traefik-workshops/api-server:v0.1.0 args: ["-data", "/api/api.json", "-openapi", "/public/openapi.yaml", "-errorrate", "40"] imagePullPolicy: Always volumeMounts: @@ -133,7 +133,7 @@ spec: spec: containers: - name: api - image: mmatur/traefik-hub:kubecon + image: ghcr.io/traefik-workshops/api-server:v0.1.0 args: ["-data", "/api/api.json", "-openapi", "/public/openapi.yaml", "-latency", "400ms"] imagePullPolicy: Always volumeMounts: diff --git a/apps/base/apps/flight/api.yaml b/apps/base/apps/flight/api.yaml index 7015465..91833d3 100644 --- a/apps/base/apps/flight/api.yaml +++ b/apps/base/apps/flight/api.yaml @@ -12,8 +12,6 @@ spec: service: openApiSpec: path: /openapi.yaml - port: - number: 3000 name: flight-app port: number: 3000 diff --git a/apps/base/apps/flight/flight.yaml b/apps/base/apps/flight/flight.yaml index 0de4dc5..9b0291f 100644 --- a/apps/base/apps/flight/flight.yaml +++ b/apps/base/apps/flight/flight.yaml @@ -33,7 +33,7 @@ spec: spec: containers: - name: api - image: mmatur/traefik-hub:kubecon + image: ghcr.io/traefik-workshops/api-server:v0.1.0 args: ["-data", "/api/api.json", "-openapi", "/public/openapi.yaml", "-errorrate", "2"] imagePullPolicy: Always volumeMounts: diff --git a/apps/base/apps/ticket/api.yaml b/apps/base/apps/ticket/api.yaml index 3bfdd09..a849227 100644 --- a/apps/base/apps/ticket/api.yaml +++ b/apps/base/apps/ticket/api.yaml @@ -12,8 +12,6 @@ spec: service: openApiSpec: path: /openapi.yaml - port: - number: 3000 name: ticket-app port: - number: 3000 \ No newline at end of file + number: 3000 diff --git a/apps/base/apps/ticket/ticket.yaml b/apps/base/apps/ticket/ticket.yaml index 05fdd47..f66fa5a 100644 --- a/apps/base/apps/ticket/ticket.yaml +++ b/apps/base/apps/ticket/ticket.yaml @@ -32,7 +32,7 @@ spec: spec: containers: - name: api - image: mmatur/traefik-hub:kubecon + image: ghcr.io/traefik-workshops/api-server:v0.1.0 args: ["-data", "/api/api.json", "-openapi", "/public/openapi.yaml", "-errorrate", "1"] imagePullPolicy: Always volumeMounts: