element/manifests/common/app.yaml

75 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2024-05-01 09:24:20 +00:00
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: app
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
2024-05-15 20:32:50 +00:00
gethomepage.dev/enabled: "true"
gethomepage.dev/instance: "$GITHUB_REF_NAME"
2024-05-15 20:32:50 +00:00
gethomepage.dev/name: Element
2024-05-15 21:06:12 +00:00
gethomepage.dev/icon: element
gethomepage.dev/description: Secure collaboration and messaging
2024-05-01 09:24:20 +00:00
spec:
ingressClassName: nginx
tls:
- secretName: tls-app
hosts:
- "$BASE_URL"
rules:
- host: "$BASE_URL"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: app
port:
name: http
---
apiVersion: v1
kind: Service
metadata:
name: app
labels:
app: app
spec:
selector:
app: app
ports:
- name: http
port: 80
targetPort: http
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: app
labels:
app: app
spec:
replicas: $NB_REPLICAS
selector:
matchLabels:
app: app
template:
metadata:
labels:
app: app
spec:
containers:
- name: app
image: "$IMAGEAPP"
ports:
- name: http
containerPort: 80
volumeMounts:
- name: config
mountPath: /app/config.json
subPath: config.json
volumes:
- name: config
configMap:
name: element