-
Notifications
You must be signed in to change notification settings - Fork 1
/
oracle-persistent.yaml
104 lines (104 loc) · 2.27 KB
/
oracle-persistent.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
apiVersion: template.openshift.io/v1
kind: Template
metadata:
name: oracle-persistent
objects:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: orcl
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
status: {}
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
app: oracle12c
name: oracle12c
spec:
replicas: 1
selector:
app: oracle12c
deploymentconfig: oracle12c
strategy:
activeDeadlineSeconds: 21600
recreateParams:
timeoutSeconds: 600
resources: {}
type: Recreate
template:
metadata:
labels:
app: oracle12c
deploymentconfig: oracle12c
spec:
containers:
- name: oracle12c
imagePullPolicy: Always
ports:
- containerPort: 1521
protocol: TCP
- containerPort: 5500
protocol: TCP
resources:
limits:
memory: 2Gi
requests:
memory: 2Gi
securityContext: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /ORCL
name: orcl
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 54321
serviceAccount: oracle
serviceAccountName: oracle
terminationGracePeriodSeconds: 30
volumes:
- name: orcl
persistentVolumeClaim:
claimName: orcl
test: false
triggers:
- imageChangeParams:
automatic: true
containerNames:
- oracle12c
from:
kind: ImageStreamTag
name: oracle12c:12.2.0.1-slim
type: ImageChange
- type: ConfigChange
status: {}
- apiVersion: v1
kind: Service
metadata:
labels:
app: oracle12c
name: oracle12c
spec:
ports:
- name: 1521-tcp
port: 1521
protocol: TCP
targetPort: 1521
- name: 5500-tcp
port: 5500
protocol: TCP
targetPort: 5500
selector:
deploymentconfig: oracle12c
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}