searxng/manifests/common/app.yaml
ange a540ba7854
All checks were successful
/ deploy (push) Successful in 5s
bump: 2024.9.26-6a3375be3 (#3)
Reviewed-on: #3
2024-09-27 00:49:53 +00:00

81 lines
1.6 KiB
YAML

---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: app
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
gethomepage.dev/enabled: "true"
gethomepage.dev/instance: "$GITHUB_REF_NAME"
gethomepage.dev/name: SearXNG
gethomepage.dev/icon: searxng
gethomepage.dev/description: Metasearch engine
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: 8080
envFrom:
- secretRef:
name: searxng
volumeMounts:
- name: config
mountPath: /etc/searxng/limiter.toml
subPath: limiter.toml
- name: config
mountPath: /etc/searxng/settings.yml
subPath: settings.yml
volumes:
- name: config
configMap:
name: searxng