-
Notifications
You must be signed in to change notification settings - Fork 1
/
st.yaml
180 lines (180 loc) · 4.96 KB
/
st.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
################################################################################
# #
# Author: Serguei Nastassi [email protected] #
# Created 01/03/2023 #
################################################################################
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: oracle-rac-213
spec:
serviceName: rdbms
podManagementPolicy: Parallel
updateStrategy:
type: RollingUpdate
replicas: 1
selector:
matchLabels:
app: oracle-rac-213
template:
metadata:
labels:
app: oracle-rac-213
annotations:
k8s.v1.cni.cncf.io/networks: '[
{
"name": "macvlan-conf",
"ips": ["172.16.1.150/24"]
},
{
"name": "macvlan-priv-conf",
"ips": ["192.168.17.150/24"]
}
]'
spec:
terminationGracePeriodSeconds: 3
securityContext:
sysctls:
- name: kernel.shmall
value: "2097152"
- name: kernel.sem
value: "250 32000 100 128"
- name: kernel.shmmax
value: "8589934592"
- name: kernel.shmmni
value: "4096"
containers:
- name: rdbms
image: cr.local:32424/container-registry.oracle.com/database/rac:21.3.0.0
resources:
requests:
memory: "16Gi"
limits:
memory: "16Gi"
securityContext:
privileged: true
capabilities:
add: ["SYS_NICE","SYS_RESOURCE","NET_ADMIN","AUDIT_CONTROL","AUDIT_WRITE","SYSLOG","SYS_TIME","SYS_RESOURCE","SYS_RAWIO","SYS_MODULE","SYS_CHROOT","SYS_BOOT","SYS_ADMIN","SETUID","SETGID","NET_BIND_SERVICE","CHOWN"]
runAsUser: 0
procMount: "Unmasked"
allowPrivilegeEscalation: true
envFrom:
- configMapRef:
name: oracle-rdbms-config
ports:
- containerPort: 1521
name: oracle-listener
- containerPort: 5500
name: oem-express
volumeDevices:
- name: ora-blk0
devicePath: /dev/asm_disk01
- name: ora-blk1
devicePath: /dev/asm_disk02
- name: ora-blk2
devicePath: /dev/asm_disk03
- name: ora-blk3
devicePath: /dev/asm_disk04
- name: ora-blk4
devicePath: /dev/asm_disk05
volumeMounts:
- name: oradata
mountPath: /oradata
- name: tmpfs
mountPath: /dev/shm
- name: hp
mountPath: /dev/hugepages
- name: cgroups
mountPath: /sys/fs/cgroup
# readOnly: true
- name: proc
mountPath: /hostproc
- name: boot
mountPath: /boot
readOnly: true
volumes:
- name: oradata
nfs:
server: "192.168.1.4"
path: /home/oracle-rac-213
- name: ora-blk0
persistentVolumeClaim:
claimName: nas-0-oracle-rac-213-0
- name: ora-blk1
persistentVolumeClaim:
claimName: nas-1-oracle-rac-213-0
- name: ora-blk2
persistentVolumeClaim:
claimName: nas-2-oracle-rac-213-0
- name: ora-blk3
persistentVolumeClaim:
claimName: nas-3-oracle-rac-213-0
- name: ora-blk4
persistentVolumeClaim:
claimName: nas-4-oracle-rac-213-0
- name: tmpfs
emptyDir:
medium: Memory
sizeLimit: 4Gi
- name: hp
hostPath:
path: /dev/hugepages
- name: cgroups
hostPath:
path: /sys/fs/cgroup
type: Directory
- name: proc
hostPath:
path: /home/hostproc
type: Directory
- name: boot
hostPath:
path: /boot
type: Directory
volumeClaimTemplates:
- metadata:
name: nas-0
spec:
accessModes:
- ReadWriteMany
volumeMode: Block
resources:
requests:
storage: 23Gi
- metadata:
name: nas-1
spec:
accessModes:
- ReadWriteMany
volumeMode: Block
resources:
requests:
storage: 23Gi
- metadata:
name: nas-2
spec:
accessModes:
- ReadWriteMany
volumeMode: Block
resources:
requests:
storage: 23Gi
- metadata:
name: nas-3
spec:
accessModes:
- ReadWriteMany
volumeMode: Block
resources:
requests:
storage: 23Gi
- metadata:
name: nas-4
spec:
accessModes:
- ReadWriteMany
volumeMode: Block
resources:
requests:
storage: 23Gi