-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path99-liferay-nginx.yaml
More file actions
53 lines (52 loc) · 933 Bytes
/
Copy path99-liferay-nginx.yaml
File metadata and controls
53 lines (52 loc) · 933 Bytes
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
apiVersion: v1
kind: Service
metadata:
name: liferay-nginx
namespace: liferay
labels:
app: liferay
tier: nginx
spec:
type: ClusterIP
ports:
- port: 8081
selector:
app: liferay
tier: nginx
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: liferay-nginx
namespace: liferay
labels:
app: liferay
tier: nginx
spec:
selector:
matchLabels:
app: liferay
tier: nginx
strategy:
type: Recreate
template:
metadata:
namespace: liferay
labels:
app: liferay
tier: nginx
spec:
containers:
- name: nginx
image: nginx:1.25.2
ports:
- containerPort: 8081
name: nginx
volumeMounts:
- name: nginx-config
subPath: nginx.conf
mountPath: /etc/nginx/nginx.conf
volumes:
- name: nginx-config
configMap:
name: liferay-nginx-config