add flyimg

This commit is contained in:
Lee 2024-09-22 08:35:43 +01:00
parent 252b08c205
commit 47094b3dca
5 changed files with 42 additions and 16 deletions

View File

@ -0,0 +1,21 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: flyimg
namespace: public-services
spec:
replicas: 1
selector:
matchLabels:
app: flyimg
template:
metadata:
labels:
app: flyimg
spec:
containers:
- name: flyimg-container
image: flyimg/flyimg
ports:
- containerPort: 80

View File

@ -1,20 +1,8 @@
kind: Service
apiVersion: v1
metadata:
name: img-proxy-external
namespace: traefik
spec:
type: ExternalName
externalName: 10.0.50.185
ports:
- name: http
port: 8080
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: img-proxy-external-ingress
namespace: traefik
name: capacitor-external-ingress
namespace: public-services
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
@ -27,7 +15,7 @@ spec:
- name: default-headers
namespace: traefik
services:
- name: img-proxy-external
port: 8080
- name: flyimg
port: 80
tls:
secretName: fascinated-cc

View File

@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: public-services
resources:
- flyimg.yaml

View File

@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: public-services
resources:
- public-services-namespace.yaml

View File

@ -0,0 +1,5 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: public-services