-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest-opencti.yml
96 lines (96 loc) · 1.97 KB
/
manifest-opencti.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
apiVersion: v1
kind: Namespace
metadata:
name: customer-all
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: map-opencti
namespace: customer-all
labels:
app: map-opencti
spec:
replicas: 1
selector:
matchLabels:
app: map-opencti
template:
metadata:
namespace: customer-all
labels:
app: map-opencti
spec:
containers:
- name: openmaptiles-server
image: klokantech/openmaptiles-server:latest
ports:
- containerPort: 80
name: http
resources:
limits:
memory: "2048Mi"
cpu: "1"
volumeMounts:
- name: map-opencti-data
mountPath: /data
volumes:
- name: map-opencti-data
persistentVolumeClaim:
claimName: pvc-map-opencti
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-map-opencti
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.opencti.io
external-dns.alpha.kubernetes.io/ttl: "120"
nginx.ingress.kubernetes.io/configuration-snippet: |
rewrite ^/?$ https://map.opencti.io/styles/filigran-dark2/#2/0/0 permanent;
name: map-opencti-ingress
namespace: customer-all
spec:
ingressClassName: nginx
rules:
- host: map.opencti.io
http:
paths:
- backend:
service:
name: map-opencti
port:
number: 80
path: /
pathType: Prefix
tls:
- hosts:
- map.opencti.io
secretName: map-opencti-cert
---
apiVersion: v1
kind: Service
metadata:
name: map-opencti
namespace: customer-all
spec:
ports:
- name: map-opencti
port: 80
protocol: TCP
targetPort: 80
selector:
app: map-opencti
type: ClusterIP