Merge pull request #944 from elek/HDDS-1668
HDDS-1668. Add liveness probe to the example k8s resources files
This commit is contained in:
commit
141151325b
@ -38,13 +38,6 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
initContainers:
|
|
||||||
- name: init
|
|
||||||
image: "@docker.image@"
|
|
||||||
args: ["ozone","om","--init"]
|
|
||||||
env:
|
|
||||||
- name: WAITFOR
|
|
||||||
value: scm-0.scm:9876
|
|
||||||
containers:
|
containers:
|
||||||
- name: om
|
- name: om
|
||||||
image: "@docker.image@"
|
image: "@docker.image@"
|
||||||
@ -52,4 +45,10 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: WAITFOR
|
- name: WAITFOR
|
||||||
value: scm-0.scm:9876
|
value: scm-0.scm:9876
|
||||||
|
- name: ENSURE_OM_INITIALIZED
|
||||||
|
value: /data/metadata/om/current/VERSION
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 9862
|
||||||
|
initialDelaySeconds: 30
|
||||||
volumes: []
|
volumes: []
|
||||||
|
@ -36,3 +36,8 @@ spec:
|
|||||||
- name: s3g
|
- name: s3g
|
||||||
image: "@docker.image@"
|
image: "@docker.image@"
|
||||||
args: ["ozone","s3g"]
|
args: ["ozone","s3g"]
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 9878
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
@ -46,3 +46,7 @@ spec:
|
|||||||
- name: scm
|
- name: scm
|
||||||
image: "@docker.image@"
|
image: "@docker.image@"
|
||||||
args: ["ozone","scm"]
|
args: ["ozone","scm"]
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 9861
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
@ -55,12 +55,12 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- ozone
|
- ozone
|
||||||
- datanode
|
- datanode
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
@ -39,22 +39,6 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
initContainers:
|
|
||||||
- name: init
|
|
||||||
image: '@docker.image@'
|
|
||||||
args:
|
|
||||||
- ozone
|
|
||||||
- om
|
|
||||||
- --init
|
|
||||||
env:
|
|
||||||
- name: WAITFOR
|
|
||||||
value: scm-0.scm:9876
|
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
|
||||||
- name: data
|
|
||||||
mountPath: /data
|
|
||||||
containers:
|
containers:
|
||||||
- name: om
|
- name: om
|
||||||
image: '@docker.image@'
|
image: '@docker.image@'
|
||||||
@ -64,12 +48,18 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: WAITFOR
|
- name: WAITFOR
|
||||||
value: scm-0.scm:9876
|
value: scm-0.scm:9876
|
||||||
envFrom:
|
- name: ENSURE_OM_INITIALIZED
|
||||||
- configMapRef:
|
value: /data/metadata/om/current/VERSION
|
||||||
name: config
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 9862
|
||||||
|
initialDelaySeconds: 30
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
@ -39,12 +39,17 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- ozone
|
- ozone
|
||||||
- s3g
|
- s3g
|
||||||
envFrom:
|
livenessProbe:
|
||||||
- configMapRef:
|
httpGet:
|
||||||
name: config
|
path: /
|
||||||
|
port: 9878
|
||||||
|
initialDelaySeconds: 30
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
@ -46,24 +46,28 @@ spec:
|
|||||||
- ozone
|
- ozone
|
||||||
- scm
|
- scm
|
||||||
- --init
|
- --init
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
containers:
|
containers:
|
||||||
- name: scm
|
- name: scm
|
||||||
image: '@docker.image@'
|
image: '@docker.image@'
|
||||||
args:
|
args:
|
||||||
- ozone
|
- ozone
|
||||||
- scm
|
- scm
|
||||||
envFrom:
|
livenessProbe:
|
||||||
- configMapRef:
|
tcpSocket:
|
||||||
name: config
|
port: 9861
|
||||||
|
initialDelaySeconds: 30
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
@ -21,5 +21,6 @@ import:
|
|||||||
- path: ozone
|
- path: ozone
|
||||||
transformations:
|
transformations:
|
||||||
- type: ozone/csi
|
- type: ozone/csi
|
||||||
|
- type: ozone/emptydir
|
||||||
- path: pv-test
|
- path: pv-test
|
||||||
destination: pv-test
|
destination: pv-test
|
||||||
|
@ -44,12 +44,16 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 9870
|
- containerPort: 9870
|
||||||
name: rpc
|
name: rpc
|
||||||
envFrom:
|
livenessProbe:
|
||||||
- configMapRef:
|
tcpSocket:
|
||||||
name: config
|
port: 9858
|
||||||
|
initialDelaySeconds: 30
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
initContainers: []
|
initContainers: []
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
|
28
hadoop-ozone/dist/src/main/k8s/examples/ozone-csi/datanode-service.yaml
vendored
Normal file
28
hadoop-ozone/dist/src/main/k8s/examples/ozone-csi/datanode-service.yaml
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
# or more contributor license agreements. See the NOTICE file
|
||||||
|
# distributed with this work for additional information
|
||||||
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
|
# to you under the Apache License, Version 2.0 (the
|
||||||
|
# "License"); you may not use this file except in compliance
|
||||||
|
# with the License. You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: datanode
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 9870
|
||||||
|
name: rpc
|
||||||
|
clusterIP: None
|
||||||
|
selector:
|
||||||
|
app: ozone
|
||||||
|
component: datanode
|
66
hadoop-ozone/dist/src/main/k8s/examples/ozone-csi/datanode-statefulset.yaml
vendored
Normal file
66
hadoop-ozone/dist/src/main/k8s/examples/ozone-csi/datanode-statefulset.yaml
vendored
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
# Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
# or more contributor license agreements. See the NOTICE file
|
||||||
|
# distributed with this work for additional information
|
||||||
|
# regarding copyright ownership. The ASF licenses this file
|
||||||
|
# to you under the Apache License, Version 2.0 (the
|
||||||
|
# "License"); you may not use this file except in compliance
|
||||||
|
# with the License. You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: StatefulSet
|
||||||
|
metadata:
|
||||||
|
name: datanode
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/component: ozone
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: ozone
|
||||||
|
component: datanode
|
||||||
|
serviceName: datanode
|
||||||
|
replicas: 3
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: ozone
|
||||||
|
component: datanode
|
||||||
|
annotations:
|
||||||
|
prdatanodeetheus.io/scrape: "true"
|
||||||
|
prdatanodeetheus.io/port: "9882"
|
||||||
|
prdatanodeetheus.io/path: /prom
|
||||||
|
spec:
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- labelSelector:
|
||||||
|
matchExpressions:
|
||||||
|
- key: component
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- datanode
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
securityContext:
|
||||||
|
fsGroup: 1000
|
||||||
|
containers:
|
||||||
|
- name: datanode
|
||||||
|
image: '@docker.image@'
|
||||||
|
args:
|
||||||
|
- ozone
|
||||||
|
- datanode
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
emptyDir: {}
|
@ -37,22 +37,8 @@ spec:
|
|||||||
prometheus.io/port: "9874"
|
prometheus.io/port: "9874"
|
||||||
prometheus.io/path: /prom
|
prometheus.io/path: /prom
|
||||||
spec:
|
spec:
|
||||||
initContainers:
|
securityContext:
|
||||||
- name: init
|
fsGroup: 1000
|
||||||
image: '@docker.image@'
|
|
||||||
args:
|
|
||||||
- ozone
|
|
||||||
- om
|
|
||||||
- --init
|
|
||||||
env:
|
|
||||||
- name: WAITFOR
|
|
||||||
value: scm-0.scm:9876
|
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
|
||||||
- name: data
|
|
||||||
mountPath: /data
|
|
||||||
containers:
|
containers:
|
||||||
- name: om
|
- name: om
|
||||||
image: '@docker.image@'
|
image: '@docker.image@'
|
||||||
@ -62,12 +48,18 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: WAITFOR
|
- name: WAITFOR
|
||||||
value: scm-0.scm:9876
|
value: scm-0.scm:9876
|
||||||
envFrom:
|
- name: ENSURE_OM_INITIALIZED
|
||||||
- configMapRef:
|
value: /data/metadata/om/current/VERSION
|
||||||
name: config
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 9862
|
||||||
|
initialDelaySeconds: 30
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
@ -39,13 +39,17 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- ozone
|
- ozone
|
||||||
- s3g
|
- s3g
|
||||||
envFrom:
|
livenessProbe:
|
||||||
- configMapRef:
|
httpGet:
|
||||||
name: config
|
path: /
|
||||||
|
port: 9878
|
||||||
|
initialDelaySeconds: 30
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
initContainers: []
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
@ -37,6 +37,8 @@ spec:
|
|||||||
prometheus.io/port: "9876"
|
prometheus.io/port: "9876"
|
||||||
prometheus.io/path: /prom
|
prometheus.io/path: /prom
|
||||||
spec:
|
spec:
|
||||||
|
securityContext:
|
||||||
|
fsGroup: 1000
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: init
|
- name: init
|
||||||
image: '@docker.image@'
|
image: '@docker.image@'
|
||||||
@ -44,24 +46,28 @@ spec:
|
|||||||
- ozone
|
- ozone
|
||||||
- scm
|
- scm
|
||||||
- --init
|
- --init
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
containers:
|
containers:
|
||||||
- name: scm
|
- name: scm
|
||||||
image: '@docker.image@'
|
image: '@docker.image@'
|
||||||
args:
|
args:
|
||||||
- ozone
|
- ozone
|
||||||
- scm
|
- scm
|
||||||
envFrom:
|
livenessProbe:
|
||||||
- configMapRef:
|
tcpSocket:
|
||||||
name: config
|
port: 9861
|
||||||
|
initialDelaySeconds: 30
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
@ -55,9 +55,6 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- ozone
|
- ozone
|
||||||
- datanode
|
- datanode
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: config
|
|
||||||
env:
|
env:
|
||||||
- name: JAEGER_SAMPLER_TYPE
|
- name: JAEGER_SAMPLER_TYPE
|
||||||
value: probabilistic
|
value: probabilistic
|
||||||
@ -68,6 +65,9 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
@ -39,22 +39,6 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
initContainers:
|
|
||||||
- name: init
|
|
||||||
image: '@docker.image@'
|
|
||||||
args:
|
|
||||||
- ozone
|
|
||||||
- om
|
|
||||||
- --init
|
|
||||||
env:
|
|
||||||
- name: WAITFOR
|
|
||||||
value: scm-0.scm:9876
|
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
|
||||||
- name: data
|
|
||||||
mountPath: /data
|
|
||||||
containers:
|
containers:
|
||||||
- name: om
|
- name: om
|
||||||
image: '@docker.image@'
|
image: '@docker.image@'
|
||||||
@ -64,18 +48,24 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: WAITFOR
|
- name: WAITFOR
|
||||||
value: scm-0.scm:9876
|
value: scm-0.scm:9876
|
||||||
|
- name: ENSURE_OM_INITIALIZED
|
||||||
|
value: /data/metadata/om/current/VERSION
|
||||||
- name: JAEGER_SAMPLER_TYPE
|
- name: JAEGER_SAMPLER_TYPE
|
||||||
value: probabilistic
|
value: probabilistic
|
||||||
- name: JAEGER_SAMPLER_PARAM
|
- name: JAEGER_SAMPLER_PARAM
|
||||||
value: "0.01"
|
value: "0.01"
|
||||||
- name: JAEGER_AGENT_HOST
|
- name: JAEGER_AGENT_HOST
|
||||||
value: jaeger-0.jaeger
|
value: jaeger-0.jaeger
|
||||||
envFrom:
|
livenessProbe:
|
||||||
- configMapRef:
|
tcpSocket:
|
||||||
name: config
|
port: 9862
|
||||||
|
initialDelaySeconds: 30
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
@ -39,9 +39,11 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- ozone
|
- ozone
|
||||||
- s3g
|
- s3g
|
||||||
envFrom:
|
livenessProbe:
|
||||||
- configMapRef:
|
httpGet:
|
||||||
name: config
|
path: /
|
||||||
|
port: 9878
|
||||||
|
initialDelaySeconds: 30
|
||||||
env:
|
env:
|
||||||
- name: JAEGER_SAMPLER_TYPE
|
- name: JAEGER_SAMPLER_TYPE
|
||||||
value: probabilistic
|
value: probabilistic
|
||||||
@ -52,6 +54,9 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
@ -46,21 +46,22 @@ spec:
|
|||||||
- ozone
|
- ozone
|
||||||
- scm
|
- scm
|
||||||
- --init
|
- --init
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
containers:
|
containers:
|
||||||
- name: scm
|
- name: scm
|
||||||
image: '@docker.image@'
|
image: '@docker.image@'
|
||||||
args:
|
args:
|
||||||
- ozone
|
- ozone
|
||||||
- scm
|
- scm
|
||||||
envFrom:
|
livenessProbe:
|
||||||
- configMapRef:
|
tcpSocket:
|
||||||
name: config
|
port: 9861
|
||||||
|
initialDelaySeconds: 30
|
||||||
env:
|
env:
|
||||||
- name: JAEGER_SAMPLER_TYPE
|
- name: JAEGER_SAMPLER_TYPE
|
||||||
value: probabilistic
|
value: probabilistic
|
||||||
@ -71,6 +72,9 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
@ -55,12 +55,12 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- ozone
|
- ozone
|
||||||
- datanode
|
- datanode
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: data
|
name: data
|
||||||
|
@ -39,22 +39,6 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
initContainers:
|
|
||||||
- name: init
|
|
||||||
image: '@docker.image@'
|
|
||||||
args:
|
|
||||||
- ozone
|
|
||||||
- om
|
|
||||||
- --init
|
|
||||||
env:
|
|
||||||
- name: WAITFOR
|
|
||||||
value: scm-0.scm:9876
|
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
|
||||||
- name: data
|
|
||||||
mountPath: /data
|
|
||||||
containers:
|
containers:
|
||||||
- name: om
|
- name: om
|
||||||
image: '@docker.image@'
|
image: '@docker.image@'
|
||||||
@ -64,12 +48,18 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: WAITFOR
|
- name: WAITFOR
|
||||||
value: scm-0.scm:9876
|
value: scm-0.scm:9876
|
||||||
envFrom:
|
- name: ENSURE_OM_INITIALIZED
|
||||||
- configMapRef:
|
value: /data/metadata/om/current/VERSION
|
||||||
name: config
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 9862
|
||||||
|
initialDelaySeconds: 30
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
volumes: []
|
volumes: []
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
|
@ -39,12 +39,17 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- ozone
|
- ozone
|
||||||
- s3g
|
- s3g
|
||||||
envFrom:
|
livenessProbe:
|
||||||
- configMapRef:
|
httpGet:
|
||||||
name: config
|
path: /
|
||||||
|
port: 9878
|
||||||
|
initialDelaySeconds: 30
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: data
|
name: data
|
||||||
|
@ -46,24 +46,28 @@ spec:
|
|||||||
- ozone
|
- ozone
|
||||||
- scm
|
- scm
|
||||||
- --init
|
- --init
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
containers:
|
containers:
|
||||||
- name: scm
|
- name: scm
|
||||||
image: '@docker.image@'
|
image: '@docker.image@'
|
||||||
args:
|
args:
|
||||||
- ozone
|
- ozone
|
||||||
- scm
|
- scm
|
||||||
envFrom:
|
livenessProbe:
|
||||||
- configMapRef:
|
tcpSocket:
|
||||||
name: config
|
port: 9861
|
||||||
|
initialDelaySeconds: 30
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: data
|
name: data
|
||||||
|
Loading…
Reference in New Issue
Block a user