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
/
portal
/
components
/
portal-widget
/
templates
/
deployment.yaml
diff --git
a/kubernetes/portal/components/portal-widget/templates/deployment.yaml
b/kubernetes/portal/components/portal-widget/templates/deployment.yaml
index
794d53a
..
4640a43
100644
(file)
--- a/
kubernetes/portal/components/portal-widget/templates/deployment.yaml
+++ b/
kubernetes/portal/components/portal-widget/templates/deployment.yaml
@@
-13,7
+13,7
@@
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
-apiVersion:
extensions/v1beta
1
+apiVersion:
apps/v
1
kind: Deployment
metadata:
name: {{ include "common.fullname" . }}
kind: Deployment
metadata:
name: {{ include "common.fullname" . }}
@@
-24,6
+24,9
@@
metadata:
release: {{ include "common.release" . }}
heritage: {{ .Release.Service }}
spec:
release: {{ include "common.release" . }}
heritage: {{ .Release.Service }}
spec:
+ selector:
+ matchLabels:
+ app: {{ include "common.name" . }}
replicas: {{ .Values.replicaCount }}
template:
metadata:
replicas: {{ .Values.replicaCount }}
template:
metadata:
@@
-33,10
+36,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
- "portal-db"
args:
- --container-name
- "portal-db"