-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathgeoserver-deployment.yaml
84 lines (84 loc) · 1.85 KB
/
geoserver-deployment.yaml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: geoserver
labels:
app: geoserver
spec:
replicas: 1
selector:
matchLabels:
app: geoserver
template:
metadata:
labels:
app: geoserver
version: v1
spec:
containers:
- name: geoserver
image: remiremi/geoserver4hana
#imagePullPolicy: Always
#imagePullPolicy: IfNotPresent
#Always because I updated the image and the new version was not pulled
imagePullPolicy: "Always"
ports:
- name: http
containerPort: 8080
volumeMounts:
- mountPath: /geoserver/data_dir
name: geoserver-datadir
env:
#Not sure CSRF protection is working. Deactivated in docker image
- name: GEOSERVER_CSRF_WHITELIST
value: "*.kyma.shoot.live.k8s-hana.ondemand.com,*.svc.cluster.local"
resources:
limits:
memory: 800Mi
requests:
memory: 700Mi
volumes:
- name: geoserver-datadir
persistentVolumeClaim:
claimName: geoserver-pv-claim
---
apiVersion: v1
kind: Service
metadata:
name: geoserver
labels:
app: geoserver
spec:
#clusterIP: None
ports:
- name: http
targetPort: 8080
protocol: TCP
port: 8080
selector:
app: geoserver
---
apiVersion: gateway.kyma-project.io/v1beta1
kind: APIRule
metadata:
name: geoserver
spec:
gateway: kyma-gateway.kyma-system.svc.cluster.local
host: geoserver
service:
#virtual host nam should be unique for the whole cluster
#maybe include namespace in the virtual host name
name: geoserver
port: 8080
rules:
- accessStrategies:
- config: {}
handler: allow
methods:
- GET
- POST
- PUT
- PATCH
- DELETE
- HEAD
path: /.*