-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest-openbas.yml
126 lines (126 loc) · 2.78 KB
/
manifest-openbas.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
apiVersion: v1
kind: Namespace
metadata:
name: customer-all
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: map-openbas
namespace: customer-all
labels:
app: map-openbas
spec:
replicas: 1
selector:
matchLabels:
app: map-openbas
template:
metadata:
namespace: customer-all
labels:
app: map-openbas
spec:
containers:
- name: openmaptiles-server
image: klokantech/openmaptiles-server:latest
ports:
- containerPort: 80
name: http
resources:
limits:
memory: "2048Mi"
cpu: "1"
volumeMounts:
- name: map-openbas-data
mountPath: /data
volumes:
- name: map-openbas-data
persistentVolumeClaim:
claimName: pvc-map-openbas
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-map-openbas
namespace: customer-all
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: le-prod
external-dns.alpha.kubernetes.io/hostname: map.openbas.io
external-dns.alpha.kubernetes.io/ttl: "120"
nginx.ingress.kubernetes.io/configuration-snippet: |
rewrite ^/?$ https://map.openbas.io/styles/filigran-dark2/#2/0/0 permanent;
name: map-openbas-ingress
namespace: customer-all
spec:
ingressClassName: nginx
rules:
- host: map.openbas.io
http:
paths:
- backend:
service:
name: map-openbas
port:
number: 80
path: /
pathType: Prefix
tls:
- hosts:
- map.openbas.io
secretName: map-openbas-cert
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: le-prod
external-dns.alpha.kubernetes.io/hostname: map.openbas.io
external-dns.alpha.kubernetes.io/ttl: "120"
nginx.ingress.kubernetes.io/configuration-snippet: |
rewrite ^/?$ https://map.openbas.io/styles/filigran-dark/#2/0/0 permanent;
rewrite ^/styles/luatix-(.*)$ https://map.openbas.io/styles/filigran-$1 permanent;
name: map-openbas-ingress
namespace: customer-all
spec:
ingressClassName: nginx
rules:
- host: map.openbas.io
http:
paths:
- backend:
service:
name: map-openbas
port:
number: 80
path: /
pathType: Prefix
tls:
- hosts:
- map.openbas.io
secretName: map-openbas-cert
---
apiVersion: v1
kind: Service
metadata:
name: map-openbas
namespace: customer-all
spec:
ports:
- name: map-openbas
port: 80
protocol: TCP
targetPort: 80
selector:
app: map-openbas
type: ClusterIP