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

View File

@ -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

View File

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