Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[GENERAL] Use readiness container v3.0.1
[oom.git]
/
kubernetes
/
dcaegen2
/
components
/
dcae-servicechange-handler
/
templates
/
deployment.yaml
diff --git
a/kubernetes/dcaegen2/components/dcae-servicechange-handler/templates/deployment.yaml
b/kubernetes/dcaegen2/components/dcae-servicechange-handler/templates/deployment.yaml
index
eb20683
..
9a06187
100644
(file)
--- a/
kubernetes/dcaegen2/components/dcae-servicechange-handler/templates/deployment.yaml
+++ b/
kubernetes/dcaegen2/components/dcae-servicechange-handler/templates/deployment.yaml
@@
-15,7
+15,7
@@
# limitations under the License.
# ============LICENSE_END=========================================================
# limitations under the License.
# ============LICENSE_END=========================================================
-apiVersion:
extensions/v1beta
1
+apiVersion:
apps/v
1
kind: Deployment
metadata:
name: {{ include "common.fullname" . }}
kind: Deployment
metadata:
name: {{ include "common.fullname" . }}
@@
-27,6
+27,9
@@
metadata:
heritage: {{ .Release.Service }}
spec:
replicas: 1
heritage: {{ .Release.Service }}
spec:
replicas: 1
+ selector:
+ matchLabels:
+ app: {{ include "common.name" . }}
template:
metadata:
labels:
template:
metadata:
labels:
@@
-35,10
+38,10
@@
spec:
spec:
initContainers:
- name: {{ include "common.name" . }}-readiness
spec:
initContainers:
- name: {{ include "common.name" . }}-readiness
- image: {{
.Values.global.readinessRepository
}}/{{ .Values.global.readinessImage }}
+ image: {{
include "common.repository" .
}}/{{ .Values.global.readinessImage }}
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
command:
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
command:
- - /
root
/ready.py
+ - /
app
/ready.py
args:
- --container-name
- "dcae-inventory-api"
args:
- --container-name
- "dcae-inventory-api"
@@
-65,7
+68,7
@@
spec:
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
resources: {}
volumeMounts:
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
resources: {}
volumeMounts:
- - mountPath: /opt/
tls/shared
+ - mountPath: /opt/
app/osaaf
name: tls-info
containers:
- name: {{ include "common.name" . }}
name: tls-info
containers:
- name: {{ include "common.name" . }}