Add netflux-homepage service

This commit is contained in:
Rob Watson 2022-06-06 13:47:37 +02:00
parent d9923385ec
commit 73b46f5bf0
5 changed files with 88 additions and 0 deletions

View File

@ -0,0 +1,52 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: netflux-homepage
labels:
app: netflux-homepage
component: web
app.kubernetes.io/name: netflux-homepage
app.kubernetes.io/instance: netflux-homepage
spec:
selector:
matchLabels:
app: netflux-homepage
component: web
template:
metadata:
labels:
app: netflux-homepage
component: web
app.kubernetes.io/name: netflux-homepage
app.kubernetes.io/instance: netflux-homepage
spec:
containers:
- image: netfluxio/homepage:latest
imagePullPolicy: Always
name: netflux-homepage
ports:
- name: http
protocol: TCP
containerPort: 9000
env:
- name: NETFLUX_MATRIX_HOSTNAME
value: synapse.netflux.io:443
- name: NETFLUX_MATRIX_BASE_URL
value: https://synapse.matrix.io
resources:
requests:
memory: "16Mi"
cpu: "50m"
limits:
memory: "64Mi"
cpu: "100m"
livenessProbe:
failureThreshold: 10
httpGet:
path: /
port: 9000
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 3

View File

@ -74,3 +74,13 @@ spec:
name: synapse
port:
name: http
- host: netflux.internal
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: netflux-homepage
port:
name: http

View File

@ -90,6 +90,9 @@ resources:
- statefulset-synapse.yaml
- svc-synapse.yaml
- deploy-netflux-homepage.yaml
- svc-netflux-homepage.yaml
configMapGenerator:
- name: gitea-scripts
files:

View File

@ -0,0 +1,19 @@
---
apiVersion: v1
kind: Service
metadata:
labels:
app: netflux-homepage
app.kubernetes.io/instance: netflux-homepage
app.kubernetes.io/name: netflux-homepage
name: netflux-homepage
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 9000
selector:
app.kubernetes.io/instance: netflux-homepage
app.kubernetes.io/name: netflux-homepage
type: ClusterIP

View File

@ -15,6 +15,7 @@
- git.netflux.io
- drone.netflux.io
- synapse.netflux.io
- netflux.io
secretName: prod-ingress-tls
- op: replace
path: /spec/rules/0/host
@ -34,3 +35,6 @@
- op: replace
path: /spec/rules/5/host
value: synapse.netflux.io
- op: replace
path: /spec/rules/6/host
value: netflux.io