rpuppy: update build and installation configs
diff --git a/apps/rpuppy/install.yaml b/apps/rpuppy/install.yaml
index 2ddff28..69c4961 100644
--- a/apps/rpuppy/install.yaml
+++ b/apps/rpuppy/install.yaml
@@ -5,7 +5,7 @@
name: app-rpuppy
---
apiVersion: v1
-kind: Service
+kind: Service
metadata:
name: rpuppy
namespace: app-rpuppy
@@ -14,27 +14,36 @@
selector:
app: rpuppy
ports:
- - nodePort:
- port: 80
- targetPort: 1234
+ - name: http
+ port: 80
+ targetPort: http
+ protocol: TCP
---
-apiVersion: traefik.containo.us/v1alpha1
-kind: IngressRoute
+apiVersion: networking.k8s.io/v1
+kind: Ingress
metadata:
name: ingress
namespace: app-rpuppy
+ annotations:
+ cert-manager.io/cluster-issuer: "letsencrypt-prod"
+ acme.cert-manager.io/http01-edit-in-place: "true"
spec:
- entryPoints:
- - web
- routes:
- - kind: Rule
- match: PathPrefix(`/rpuppy`)
- services:
- - kind: Service
- name: rpuppy
- namespace: app-rpuppy
- passHostHeader: true
- port: 80
+ ingressClassName: nginx
+ tls:
+ - hosts:
+ - woof.lekva.me
+ secretName: cert-woof.lekva.me
+ rules:
+ - host: woof.lekva.me
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: rpuppy
+ port:
+ name: http
---
apiVersion: apps/v1
kind: Deployment
@@ -54,7 +63,9 @@
containers:
- name: rpuppy
image: giolekva/rpuppy-arm:latest
- imagePullPolicy: IfNotPresent
+ imagePullPolicy: Always
ports:
- - containerPort: 1234
- command: ["rpuppy", "--port=1234"]
+ - name: http
+ containerPort: 8080
+ protocol: TCP
+ command: ["rpuppy", "--port=8080"]