add service ip

This commit is contained in:
Lee 2024-09-22 08:51:36 +01:00
parent e4447074ad
commit 447fb3232b
2 changed files with 13 additions and 1 deletions

@ -19,3 +19,15 @@ spec:
image: flyimg/flyimg image: flyimg/flyimg
ports: ports:
- containerPort: 80 - containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: flyimg-service
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 80
selector:
app: flyimg

@ -15,7 +15,7 @@ spec:
- name: default-headers - name: default-headers
namespace: traefik namespace: traefik
services: services:
- name: flyimg - name: flyimg-service
port: 80 port: 80
tls: tls:
secretName: fascinated-cc secretName: fascinated-cc