-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkustomization.yaml
112 lines (112 loc) · 2.14 KB
/
kustomization.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
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
apiVersion: v1
data:
application.properties: FOO=Bar
kind: ConfigMap
metadata:
name: qgis-configmap-mh9c5264dd
---
apiVersion: v1
kind: Service
metadata:
name: qgis-exec-server
namespace: default
spec:
ports:
- port: 5555
targetPort: 5555
selector:
myLabel: qgis-exec-server
type: ClusterIP
---
apiVersion: v1
kind: Service
metadata:
name: qgis-nginx
namespace: default
spec:
ports:
- nodePort: 30080
port: 80
targetPort: 80
selector:
myLabel: qgis-nginx
type: NodePort
---
apiVersion: v1
kind: Service
metadata:
name: qgis-server
namespace: default
spec:
ports:
- port: 5555
targetPort: 5555
selector:
myLabel: qgis-server
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: qgis-nginx
namespace: default
spec:
replicas: 1
selector:
matchLabels:
myLabel: qgis-nginx
template:
metadata:
labels:
myLabel: qgis-nginx
spec:
containers:
- image: nginx:1.13
name: qgis-nginx
ports:
- containerPort: 80
volumeMounts:
- mountPath: /etc/nginx/conf.d/default.conf
name: nginx-conf
volumes:
- hostPath:
path: C:\Users\Elitebook\Documents\GitHub\docker_simile\qgis-server\nginx.conf
name: nginx-conf
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: qgis-server
namespace: default
spec:
replicas: 1
selector:
matchLabels:
myLabel: qgis-server
template:
metadata:
labels:
myLabel: qgis-server
spec:
containers:
- env:
- name: LANG
value: en_EN.UTF-8
- name: QGIS_PROJECT_FILE
value: /data/Cartografia_base.qgz
- name: QGIS_SERVER_LOG_LEVEL
value: "0"
- name: DEBUG
value: "1"
image: localhost:32000/qgis-server:latest
imagePullPolicy: IfNotPresent
name: qgis-server
ports:
- containerPort: 5555
volumeMounts:
- mountPath: /data/
name: qgis-data
volumes:
- hostPath:
path: C:\Users\Elitebook\Documents\GitHub\docker_simile\qgis-server\data
name: qgis-data