76 lines
1.4 KiB
YAML
76 lines
1.4 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: frontend-config
|
|
data:
|
|
ZBX_SERVER_HOST: backend.zabbix.svc.cluster.local
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: frontend
|
|
labels:
|
|
app: frontend
|
|
annotations:
|
|
secret.reloader.stakater.com/reload: database-cred
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: frontend
|
|
spec:
|
|
containers:
|
|
- name: frontend
|
|
image: zabbix/zabbix-web-nginx-pgsql:ol-7.0.6
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8080
|
|
protocol: TCP
|
|
envFrom:
|
|
- secretRef:
|
|
name: database-cred
|
|
- configMapRef:
|
|
name: frontend-config
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: frontend
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: frontend
|
|
ports:
|
|
- name: http
|
|
protocol: TCP
|
|
port: 8080
|
|
targetPort: 8080
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: zabbix
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt-production-http
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- monitoring.hottis.de
|
|
secretName: zabbix-cert
|
|
rules:
|
|
- host: monitoring.hottis.de
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: frontend
|
|
port:
|
|
name: http
|
|
|