homepage/manifests/common/app.yaml

92 lines
2.0 KiB
YAML
Raw Normal View History

2024-05-03 15:16:30 +00:00
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: app
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
2024-05-15 23:38:46 +00:00
nginx.ingress.kubernetes.io/affinity: cookie
2024-05-03 15:16:30 +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:
serviceAccountName: homepage
imagePullSecrets:
- name: regcred
containers:
- name: app
image: "$IMAGEAPP"
ports:
- name: http
containerPort: 3000
2024-05-15 17:53:24 +00:00
env:
- name: LOG_TARGETS
value: stdout
2024-05-03 15:16:30 +00:00
volumeMounts:
- name: config
2024-05-15 22:01:50 +00:00
mountPath: /app/config/bookmarks.yaml
subPath: bookmarks.yaml
- name: config
mountPath: /app/config/custom.css
subPath: custom.css
- name: config
mountPath: /app/config/kubernetes.yaml
subPath: kubernetes.yaml
- name: config
mountPath: /app/config/services.yaml
subPath: services.yaml
2024-05-15 22:01:50 +00:00
- name: config
mountPath: /app/config/settings.yaml
subPath: settings.yaml
- name: config
mountPath: /app/config/widgets.yaml
subPath: widgets.yaml
2024-05-03 15:16:30 +00:00
volumes:
- name: config
configMap:
2024-05-15 22:01:50 +00:00
name: homepage