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