traefik with IngressRoute for rpuppy
diff --git a/apps/rpuppy/install.yaml b/apps/rpuppy/install.yaml
index bf2d666..2ddff28 100644
--- a/apps/rpuppy/install.yaml
+++ b/apps/rpuppy/install.yaml
@@ -4,8 +4,8 @@
metadata:
name: app-rpuppy
---
-kind: Service
apiVersion: v1
+kind: Service
metadata:
name: rpuppy
namespace: app-rpuppy
@@ -18,8 +18,26 @@
port: 80
targetPort: 1234
---
-kind: Deployment
+apiVersion: traefik.containo.us/v1alpha1
+kind: IngressRoute
+metadata:
+ name: ingress
+ namespace: app-rpuppy
+spec:
+ entryPoints:
+ - web
+ routes:
+ - kind: Rule
+ match: PathPrefix(`/rpuppy`)
+ services:
+ - kind: Service
+ name: rpuppy
+ namespace: app-rpuppy
+ passHostHeader: true
+ port: 80
+---
apiVersion: apps/v1
+kind: Deployment
metadata:
name: rpuppy
namespace: app-rpuppy