Maddy account management UI
diff --git a/apps/maddy/install.yaml b/apps/maddy/install.yaml
index 22a46a7..f8a0926 100644
--- a/apps/maddy/install.yaml
+++ b/apps/maddy/install.yaml
@@ -30,6 +30,47 @@
protocol: TCP
name: e
---
+apiVersion: v1
+kind: Service
+metadata:
+ name: web
+ namespace: app-maddy
+spec:
+ type: ClusterIP
+ selector:
+ app: maddy
+ ports:
+ - name: http
+ port: 80
+ targetPort: http
+ protocol: TCP
+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: web-ingress
+ namespace: app-maddy
+ annotations:
+ cert-manager.io/cluster-issuer: "selfsigned-ca"
+ acme.cert-manager.io/http01-edit-in-place: "true"
+spec:
+ ingressClassName: nginx-private
+ tls:
+ - hosts:
+ - maddy.pcloud
+ secretName: cert-maddy-web.pcloud
+ rules:
+ - host: maddy.pcloud
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: web
+ port:
+ name: http
+---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
@@ -99,6 +140,22 @@
mountPath: /etc/maddy/certs
- name: data
mountPath: /var/lib/maddy
+ - name: web
+ image: giolekva/maddy-web:latest
+ imagePullPolicy: Always
+ ports:
+ - name: http
+ containerPort: 80
+ protocol: TCP
+ command: ["maddy-web"]
+ args: ["-port", "80", "-maddy-config", "/etc/maddy/config/maddy.conf"]
+ volumeMounts:
+ - name: config
+ mountPath: /etc/maddy/config
+ - name: certs
+ mountPath: /etc/maddy/certs
+ - name: data
+ mountPath: /var/lib/maddy
---
apiVersion: v1
kind: ConfigMap