-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwildfly-dep.yaml
56 lines (56 loc) · 1.12 KB
/
wildfly-dep.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
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: wildfly-pvc
labels:
app: wildfly
namespace: ubuntu-test
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
selector:
matchLabels:
storage-tier: pv1-wildfly
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wildfly
labels:
app: wildfly
namespace: ubuntu-test
spec:
selector:
matchLabels:
app: wildfly
replicas: 2
template:
metadata:
labels:
app: wildfly
tier: backend
spec:
containers:
- name: wildfly
image: giuliadi78/wildfly:1.1
ports:
- name: port8080
containerPort: 8080
- name: port9990
containerPort: 9990
resources:
limits:
cpu: 500m
requests:
cpu: 200m
volumeMounts:
- name: wildfly-persistent-storage
mountPath: /opt/jboss/wildfly/standalone/deployments
volumes:
- name: wildfly-persistent-storage
persistentVolumeClaim:
claimName: wildfly-pvc