From 447fb3232b9e388b295a35b2ad5f66478768dea5 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 22 Sep 2024 08:51:36 +0100 Subject: [PATCH] add service ip --- apps/production/flyimg/flyimg.yaml | 12 ++++++++++++ apps/production/flyimg/ingress.yaml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/apps/production/flyimg/flyimg.yaml b/apps/production/flyimg/flyimg.yaml index 2340431..660e9d0 100644 --- a/apps/production/flyimg/flyimg.yaml +++ b/apps/production/flyimg/flyimg.yaml @@ -19,3 +19,15 @@ spec: image: flyimg/flyimg ports: - containerPort: 80 +--- +apiVersion: v1 +kind: Service +metadata: + name: flyimg-service +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: 80 + selector: + app: flyimg diff --git a/apps/production/flyimg/ingress.yaml b/apps/production/flyimg/ingress.yaml index 605f5db..01806c0 100644 --- a/apps/production/flyimg/ingress.yaml +++ b/apps/production/flyimg/ingress.yaml @@ -15,7 +15,7 @@ spec: - name: default-headers namespace: traefik services: - - name: flyimg + - name: flyimg-service port: 80 tls: secretName: fascinated-cc