Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Upgrade deployments, start upgrade init-containers #13

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion portal/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
description: PhenoMeNal Portal
name: portal
version: 2.3.1
version: 2.4.0
2 changes: 1 addition & 1 deletion portal/templates/app-lib-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-app-library
Expand Down
21 changes: 8 additions & 13 deletions portal/templates/frontend-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.frontend.name }}
Expand All @@ -9,19 +9,14 @@ spec:
labels:
app: {{ .Values.frontend.name }}
annotations:
pod.beta.kubernetes.io/init-containers: |-
[
{
"name": "metadata-listener",
"image": "alpine",
"imagePullPolicy": "IfNotPresent",
"command": [
"sh", "-c",
"for i in $(seq 1 200); do nc -z -w3 {{ .Release.Name }}-metadata 8888 && exit 0 || sleep 3; done; exit 1"
]
}
]
spec:
initContainers:
- name: metadata-listener
image: alpine
command:
- sh
- -c
- for i in $(seq 1 200); do nc -z -w3 {{ .Release.Name }}-metadata 8888 && exit 0 || sleep 3; done; exit 1
containers:
- name: {{ .Chart.Name }}
image: '{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag }}'
Expand Down
22 changes: 8 additions & 14 deletions portal/templates/metadata-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-metadata
Expand All @@ -8,20 +8,14 @@ spec:
metadata:
labels:
app: {{ .Release.Name }}-metadata
annotations:
pod.beta.kubernetes.io/init-containers: |-
[
{
"name": "mysql-listener",
"image": "alpine",
"imagePullPolicy": "IfNotPresent",
"command": [
"sh", "-c",
"for i in $(seq 1 200); do nc -z -w3 {{ .Release.Name }}-mysql 3306 && exit 0 || sleep 3; done; exit 1"
]
}
]
spec:
initContainers:
- name: mysql-listener
image: alpine
command:
- sh
- -c
- for i in $(seq 1 200); do nc -z -w3 {{ .Release.Name }}-metadata 8888 && exit 0 || sleep 3; done; exit 1
containers:
- name: metadata
image: '{{ .Values.metadata.image.repository }}:{{ .Values.metadata.image.tag }}'
Expand Down
2 changes: 1 addition & 1 deletion portal/templates/wiki-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-wiki
Expand Down