You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by is...@apache.org on 2020/04/23 21:25:52 UTC
[airavata-custos] branch develop updated: enabling rolling updates
and replicas
This is an automated email from the ASF dual-hosted git repository.
isjarana pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-custos.git
The following commit(s) were added to refs/heads/develop by this push:
new d857dc8 enabling rolling updates and replicas
new 281d68b Merge pull request #43 from isururanawaka/microservices_based_impl
d857dc8 is described below
commit d857dc8f9c26dc57decdc41a1b8cb1871590b638
Author: Isuru Ranawaka <ir...@gmail.com>
AuthorDate: Thu Apr 23 17:24:17 2020 -0400
enabling rolling updates and replicas
---
.../src/main/helm/templates/deployment.yaml | 12 ++++++++++++
.../agent-profile-core-service/src/main/helm/values.yaml | 11 ++++++++++-
.../src/main/helm/templates/deployment.yaml | 12 ++++++++++++
.../src/main/helm/values.yaml | 11 ++++++++++-
.../src/main/helm/templates/deployment.yaml | 10 ++++++++++
.../src/main/helm/values.yaml | 11 ++++++++++-
.../credential/store/service/CredentialStoreService.java | 2 +-
.../src/main/helm/templates/deployment.yaml | 10 ++++++++++
.../src/main/helm/values.yaml | 11 ++++++++++-
.../src/main/helm/templates/deployment.yaml | 10 ++++++++++
.../iam-admin-core-service/src/main/helm/values.yaml | 11 ++++++++++-
.../src/main/helm/templates/deployment.yaml | 10 ++++++++++
.../identity-core-service/src/main/helm/values.yaml | 11 ++++++++++-
.../src/main/helm/templates/deployment.yaml | 10 ++++++++++
.../src/main/helm/values.yaml | 12 +++++++++++-
.../src/main/helm/templates/deployment.yaml | 10 ++++++++++
.../src/main/helm/values.yaml | 12 +++++++++++-
.../src/main/helm/templates/deployment.yaml | 10 ++++++++++
.../user-profile-core-service/src/main/helm/values.yaml | 12 +++++++++++-
.../src/main/helm/templates/deployment.yaml | 10 ++++++++++
.../src/main/helm/values.yaml | 12 +++++++++++-
.../src/main/resources/application.properties | 4 +++-
.../src/main/helm/templates/deployment.yaml | 10 ++++++++++
.../agent-management-service/src/main/helm/values.yaml | 12 +++++++++++-
.../src/main/helm/templates/deployment.yaml | 10 ++++++++++
.../group-management-service/src/main/helm/values.yaml | 11 ++++++++++-
.../src/main/helm/templates/deployment.yaml | 14 ++++++++++++--
.../src/main/helm/values.yaml | 12 +++++++++++-
.../src/main/helm/templates/deployment.yaml | 10 ++++++++++
.../src/main/helm/values.yaml | 11 ++++++++++-
.../scim-service/src/main/helm/templates/deployment.yaml | 16 ++++++++++++++--
.../scim-service/src/main/helm/values.yaml | 13 ++++++++++++-
.../src/main/helm/templates/deployment.yaml | 10 ++++++++++
.../tenant-management-service/src/main/helm/values.yaml | 11 ++++++++++-
.../src/main/helm/templates/deployment.yaml | 10 ++++++++++
.../user-management-service/src/main/helm/values.yaml | 11 ++++++++++-
36 files changed, 362 insertions(+), 23 deletions(-)
diff --git a/custos-core-services/agent-profile-core-service/src/main/helm/templates/deployment.yaml b/custos-core-services/agent-profile-core-service/src/main/helm/templates/deployment.yaml
index b9b025a..ab67be6 100644
--- a/custos-core-services/agent-profile-core-service/src/main/helm/templates/deployment.yaml
+++ b/custos-core-services/agent-profile-core-service/src/main/helm/templates/deployment.yaml
@@ -6,6 +6,11 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ strategy:
+ type: RollingUpdate
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
@@ -38,6 +43,13 @@ spec:
- name: grpc
containerPort: 7000
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: 8080
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
diff --git a/custos-core-services/agent-profile-core-service/src/main/helm/values.yaml b/custos-core-services/agent-profile-core-service/src/main/helm/values.yaml
index 34c1213..4730bc0 100644
--- a/custos-core-services/agent-profile-core-service/src/main/helm/values.yaml
+++ b/custos-core-services/agent-profile-core-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -67,3 +67,12 @@ nodeSelector: {}
tolerations: []
affinity: {}
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
diff --git a/custos-core-services/cluster-management-core-service/src/main/helm/templates/deployment.yaml b/custos-core-services/cluster-management-core-service/src/main/helm/templates/deployment.yaml
index b9b025a..ab67be6 100644
--- a/custos-core-services/cluster-management-core-service/src/main/helm/templates/deployment.yaml
+++ b/custos-core-services/cluster-management-core-service/src/main/helm/templates/deployment.yaml
@@ -6,6 +6,11 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ strategy:
+ type: RollingUpdate
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
@@ -38,6 +43,13 @@ spec:
- name: grpc
containerPort: 7000
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: 8080
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
diff --git a/custos-core-services/cluster-management-core-service/src/main/helm/values.yaml b/custos-core-services/cluster-management-core-service/src/main/helm/values.yaml
index d13f286..02c01b1 100644
--- a/custos-core-services/cluster-management-core-service/src/main/helm/values.yaml
+++ b/custos-core-services/cluster-management-core-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -71,3 +71,12 @@ affinity: {}
role:
name: resource-fetch
binding: resource-role-binder
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
diff --git a/custos-core-services/credential-store-core-service/src/main/helm/templates/deployment.yaml b/custos-core-services/credential-store-core-service/src/main/helm/templates/deployment.yaml
index b9b025a..31e54a6 100644
--- a/custos-core-services/credential-store-core-service/src/main/helm/templates/deployment.yaml
+++ b/custos-core-services/credential-store-core-service/src/main/helm/templates/deployment.yaml
@@ -6,6 +6,9 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
@@ -38,6 +41,13 @@ spec:
- name: grpc
containerPort: 7000
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: 8080
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
diff --git a/custos-core-services/credential-store-core-service/src/main/helm/values.yaml b/custos-core-services/credential-store-core-service/src/main/helm/values.yaml
index 34c1213..4730bc0 100644
--- a/custos-core-services/credential-store-core-service/src/main/helm/values.yaml
+++ b/custos-core-services/credential-store-core-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -67,3 +67,12 @@ nodeSelector: {}
tolerations: []
affinity: {}
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
diff --git a/custos-core-services/credential-store-core-service/src/main/java/org/apache/custos/credential/store/service/CredentialStoreService.java b/custos-core-services/credential-store-core-service/src/main/java/org/apache/custos/credential/store/service/CredentialStoreService.java
index e3b838d..371e73d 100644
--- a/custos-core-services/credential-store-core-service/src/main/java/org/apache/custos/credential/store/service/CredentialStoreService.java
+++ b/custos-core-services/credential-store-core-service/src/main/java/org/apache/custos/credential/store/service/CredentialStoreService.java
@@ -481,7 +481,7 @@ public class CredentialStoreService extends CredentialStoreServiceImplBase {
CredentialEntity entity = repository.findByClientId(credential.getId());
if (entity == null) {
- LOGGER.error("User not found");
+ LOGGER.error(" client not found");
responseObserver.onError(Status.NOT_FOUND.asRuntimeException());
return;
}
diff --git a/custos-core-services/federated-authentication-core-service/src/main/helm/templates/deployment.yaml b/custos-core-services/federated-authentication-core-service/src/main/helm/templates/deployment.yaml
index b9b025a..31e54a6 100644
--- a/custos-core-services/federated-authentication-core-service/src/main/helm/templates/deployment.yaml
+++ b/custos-core-services/federated-authentication-core-service/src/main/helm/templates/deployment.yaml
@@ -6,6 +6,9 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
@@ -38,6 +41,13 @@ spec:
- name: grpc
containerPort: 7000
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: 8080
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
diff --git a/custos-core-services/federated-authentication-core-service/src/main/helm/values.yaml b/custos-core-services/federated-authentication-core-service/src/main/helm/values.yaml
index 34c1213..4730bc0 100644
--- a/custos-core-services/federated-authentication-core-service/src/main/helm/values.yaml
+++ b/custos-core-services/federated-authentication-core-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -67,3 +67,12 @@ nodeSelector: {}
tolerations: []
affinity: {}
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
diff --git a/custos-core-services/iam-admin-core-service/src/main/helm/templates/deployment.yaml b/custos-core-services/iam-admin-core-service/src/main/helm/templates/deployment.yaml
index b9b025a..31e54a6 100644
--- a/custos-core-services/iam-admin-core-service/src/main/helm/templates/deployment.yaml
+++ b/custos-core-services/iam-admin-core-service/src/main/helm/templates/deployment.yaml
@@ -6,6 +6,9 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
@@ -38,6 +41,13 @@ spec:
- name: grpc
containerPort: 7000
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: 8080
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
diff --git a/custos-core-services/iam-admin-core-service/src/main/helm/values.yaml b/custos-core-services/iam-admin-core-service/src/main/helm/values.yaml
index 34c1213..4730bc0 100644
--- a/custos-core-services/iam-admin-core-service/src/main/helm/values.yaml
+++ b/custos-core-services/iam-admin-core-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -67,3 +67,12 @@ nodeSelector: {}
tolerations: []
affinity: {}
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
diff --git a/custos-core-services/identity-core-service/src/main/helm/templates/deployment.yaml b/custos-core-services/identity-core-service/src/main/helm/templates/deployment.yaml
index b9b025a..31e54a6 100644
--- a/custos-core-services/identity-core-service/src/main/helm/templates/deployment.yaml
+++ b/custos-core-services/identity-core-service/src/main/helm/templates/deployment.yaml
@@ -6,6 +6,9 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
@@ -38,6 +41,13 @@ spec:
- name: grpc
containerPort: 7000
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: 8080
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
diff --git a/custos-core-services/identity-core-service/src/main/helm/values.yaml b/custos-core-services/identity-core-service/src/main/helm/values.yaml
index 34c1213..4730bc0 100644
--- a/custos-core-services/identity-core-service/src/main/helm/values.yaml
+++ b/custos-core-services/identity-core-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -67,3 +67,12 @@ nodeSelector: {}
tolerations: []
affinity: {}
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
diff --git a/custos-core-services/resource-secret-core-service/src/main/helm/templates/deployment.yaml b/custos-core-services/resource-secret-core-service/src/main/helm/templates/deployment.yaml
index b9b025a..31e54a6 100644
--- a/custos-core-services/resource-secret-core-service/src/main/helm/templates/deployment.yaml
+++ b/custos-core-services/resource-secret-core-service/src/main/helm/templates/deployment.yaml
@@ -6,6 +6,9 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
@@ -38,6 +41,13 @@ spec:
- name: grpc
containerPort: 7000
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: 8080
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
diff --git a/custos-core-services/resource-secret-core-service/src/main/helm/values.yaml b/custos-core-services/resource-secret-core-service/src/main/helm/values.yaml
index 34c1213..9c8a201 100644
--- a/custos-core-services/resource-secret-core-service/src/main/helm/values.yaml
+++ b/custos-core-services/resource-secret-core-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -67,3 +67,13 @@ nodeSelector: {}
tolerations: []
affinity: {}
+
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
diff --git a/custos-core-services/tenant-profile-core-service/src/main/helm/templates/deployment.yaml b/custos-core-services/tenant-profile-core-service/src/main/helm/templates/deployment.yaml
index b9b025a..31e54a6 100644
--- a/custos-core-services/tenant-profile-core-service/src/main/helm/templates/deployment.yaml
+++ b/custos-core-services/tenant-profile-core-service/src/main/helm/templates/deployment.yaml
@@ -6,6 +6,9 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
@@ -38,6 +41,13 @@ spec:
- name: grpc
containerPort: 7000
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: 8080
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
diff --git a/custos-core-services/tenant-profile-core-service/src/main/helm/values.yaml b/custos-core-services/tenant-profile-core-service/src/main/helm/values.yaml
index 34c1213..9c8a201 100644
--- a/custos-core-services/tenant-profile-core-service/src/main/helm/values.yaml
+++ b/custos-core-services/tenant-profile-core-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -67,3 +67,13 @@ nodeSelector: {}
tolerations: []
affinity: {}
+
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
diff --git a/custos-core-services/user-profile-core-service/src/main/helm/templates/deployment.yaml b/custos-core-services/user-profile-core-service/src/main/helm/templates/deployment.yaml
index b9b025a..31e54a6 100644
--- a/custos-core-services/user-profile-core-service/src/main/helm/templates/deployment.yaml
+++ b/custos-core-services/user-profile-core-service/src/main/helm/templates/deployment.yaml
@@ -6,6 +6,9 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
@@ -38,6 +41,13 @@ spec:
- name: grpc
containerPort: 7000
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: 8080
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
diff --git a/custos-core-services/user-profile-core-service/src/main/helm/values.yaml b/custos-core-services/user-profile-core-service/src/main/helm/values.yaml
index 34c1213..9c8a201 100644
--- a/custos-core-services/user-profile-core-service/src/main/helm/values.yaml
+++ b/custos-core-services/user-profile-core-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -67,3 +67,13 @@ nodeSelector: {}
tolerations: []
affinity: {}
+
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
diff --git a/custos-core-services/utility-services/custos-configuration-service/src/main/helm/templates/deployment.yaml b/custos-core-services/utility-services/custos-configuration-service/src/main/helm/templates/deployment.yaml
index 31db61a..a040bc0 100644
--- a/custos-core-services/utility-services/custos-configuration-service/src/main/helm/templates/deployment.yaml
+++ b/custos-core-services/utility-services/custos-configuration-service/src/main/helm/templates/deployment.yaml
@@ -6,6 +6,9 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
@@ -35,6 +38,13 @@ spec:
- name: http
containerPort: 9000
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: 9000
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
diff --git a/custos-core-services/utility-services/custos-configuration-service/src/main/helm/values.yaml b/custos-core-services/utility-services/custos-configuration-service/src/main/helm/values.yaml
index fae4d14..8af280b 100644
--- a/custos-core-services/utility-services/custos-configuration-service/src/main/helm/values.yaml
+++ b/custos-core-services/utility-services/custos-configuration-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -66,3 +66,13 @@ nodeSelector: {}
tolerations: []
affinity: {}
+
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
diff --git a/custos-core-services/utility-services/custos-configuration-service/src/main/resources/application.properties b/custos-core-services/utility-services/custos-configuration-service/src/main/resources/application.properties
index 1069fe8..59c6cff 100644
--- a/custos-core-services/utility-services/custos-configuration-service/src/main/resources/application.properties
+++ b/custos-core-services/utility-services/custos-configuration-service/src/main/resources/application.properties
@@ -1,2 +1,4 @@
server.port=9000
-spring.profiles.active=native
\ No newline at end of file
+spring.profiles.active=native
+management.endpoints.web.exposure.include=*
+management.endpoint.metrics.enabled=true
\ No newline at end of file
diff --git a/custos-integration-services/agent-management-service-parent/agent-management-service/src/main/helm/templates/deployment.yaml b/custos-integration-services/agent-management-service-parent/agent-management-service/src/main/helm/templates/deployment.yaml
index 4c8b507..a0957f6 100644
--- a/custos-integration-services/agent-management-service-parent/agent-management-service/src/main/helm/templates/deployment.yaml
+++ b/custos-integration-services/agent-management-service-parent/agent-management-service/src/main/helm/templates/deployment.yaml
@@ -6,6 +6,9 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
@@ -38,6 +41,13 @@ spec:
- name: grpc
containerPort: {{ .Values.service.grpcport }}
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: {{ .Values.service.port }}
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
- name: {{ .Chart.Name }}-envoy-proxy
diff --git a/custos-integration-services/agent-management-service-parent/agent-management-service/src/main/helm/values.yaml b/custos-integration-services/agent-management-service-parent/agent-management-service/src/main/helm/values.yaml
index 8160815..b7f8240 100644
--- a/custos-integration-services/agent-management-service-parent/agent-management-service/src/main/helm/values.yaml
+++ b/custos-integration-services/agent-management-service-parent/agent-management-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -73,3 +73,13 @@ proxy:
tag: 1.0-SNAPSHOT
port: 50000
adminport: 9901
+
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
\ No newline at end of file
diff --git a/custos-integration-services/group-management-service-parent/group-management-service/src/main/helm/templates/deployment.yaml b/custos-integration-services/group-management-service-parent/group-management-service/src/main/helm/templates/deployment.yaml
index 4c8b507..a0957f6 100644
--- a/custos-integration-services/group-management-service-parent/group-management-service/src/main/helm/templates/deployment.yaml
+++ b/custos-integration-services/group-management-service-parent/group-management-service/src/main/helm/templates/deployment.yaml
@@ -6,6 +6,9 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
@@ -38,6 +41,13 @@ spec:
- name: grpc
containerPort: {{ .Values.service.grpcport }}
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: {{ .Values.service.port }}
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
- name: {{ .Chart.Name }}-envoy-proxy
diff --git a/custos-integration-services/group-management-service-parent/group-management-service/src/main/helm/values.yaml b/custos-integration-services/group-management-service-parent/group-management-service/src/main/helm/values.yaml
index 44849b1..f6958fa 100644
--- a/custos-integration-services/group-management-service-parent/group-management-service/src/main/helm/values.yaml
+++ b/custos-integration-services/group-management-service-parent/group-management-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -73,3 +73,12 @@ proxy:
tag: 1.0-SNAPSHOT
port: 50000
adminport: 9901
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
diff --git a/custos-integration-services/identity-management-service-parent/identity-management-service/src/main/helm/templates/deployment.yaml b/custos-integration-services/identity-management-service-parent/identity-management-service/src/main/helm/templates/deployment.yaml
index 5784406..a0957f6 100644
--- a/custos-integration-services/identity-management-service-parent/identity-management-service/src/main/helm/templates/deployment.yaml
+++ b/custos-integration-services/identity-management-service-parent/identity-management-service/src/main/helm/templates/deployment.yaml
@@ -6,14 +6,17 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
- annotations:
- linkerd.io/inject: enabled
metadata:
+ annotations:
+ linkerd.io/inject: enabled
labels:
app.kubernetes.io/name: {{ include "helm.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
@@ -38,6 +41,13 @@ spec:
- name: grpc
containerPort: {{ .Values.service.grpcport }}
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: {{ .Values.service.port }}
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
- name: {{ .Chart.Name }}-envoy-proxy
diff --git a/custos-integration-services/identity-management-service-parent/identity-management-service/src/main/helm/values.yaml b/custos-integration-services/identity-management-service-parent/identity-management-service/src/main/helm/values.yaml
index abafaf7..6cffc0c 100644
--- a/custos-integration-services/identity-management-service-parent/identity-management-service/src/main/helm/values.yaml
+++ b/custos-integration-services/identity-management-service-parent/identity-management-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -73,3 +73,13 @@ proxy:
tag: 1.0-SNAPSHOT
port: 50000
adminport: 9901
+
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
\ No newline at end of file
diff --git a/custos-integration-services/resource-secret-management-service-parent/resource-secret-management-service/src/main/helm/templates/deployment.yaml b/custos-integration-services/resource-secret-management-service-parent/resource-secret-management-service/src/main/helm/templates/deployment.yaml
index 4c8b507..a0957f6 100644
--- a/custos-integration-services/resource-secret-management-service-parent/resource-secret-management-service/src/main/helm/templates/deployment.yaml
+++ b/custos-integration-services/resource-secret-management-service-parent/resource-secret-management-service/src/main/helm/templates/deployment.yaml
@@ -6,6 +6,9 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
@@ -38,6 +41,13 @@ spec:
- name: grpc
containerPort: {{ .Values.service.grpcport }}
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: {{ .Values.service.port }}
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
- name: {{ .Chart.Name }}-envoy-proxy
diff --git a/custos-integration-services/resource-secret-management-service-parent/resource-secret-management-service/src/main/helm/values.yaml b/custos-integration-services/resource-secret-management-service-parent/resource-secret-management-service/src/main/helm/values.yaml
index 0e04c77..380e83c 100644
--- a/custos-integration-services/resource-secret-management-service-parent/resource-secret-management-service/src/main/helm/values.yaml
+++ b/custos-integration-services/resource-secret-management-service-parent/resource-secret-management-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -78,3 +78,12 @@ proxy:
tag: 1.0-SNAPSHOT
port: 50000
adminport: 9901
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
diff --git a/custos-integration-services/scim-service/src/main/helm/templates/deployment.yaml b/custos-integration-services/scim-service/src/main/helm/templates/deployment.yaml
index aa447be..8cc78dc 100644
--- a/custos-integration-services/scim-service/src/main/helm/templates/deployment.yaml
+++ b/custos-integration-services/scim-service/src/main/helm/templates/deployment.yaml
@@ -6,14 +6,19 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ strategy:
+ type: RollingUpdate
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
- annotations:
- linkerd.io/inject: enabled
metadata:
+ annotations:
+ linkerd.io/inject: enabled
labels:
app.kubernetes.io/name: {{ include "helm.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
@@ -35,6 +40,13 @@ spec:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: {{ .Values.service.port }}
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
diff --git a/custos-integration-services/scim-service/src/main/helm/values.yaml b/custos-integration-services/scim-service/src/main/helm/values.yaml
index f415966..d1e1524 100644
--- a/custos-integration-services/scim-service/src/main/helm/values.yaml
+++ b/custos-integration-services/scim-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -68,4 +68,15 @@ tolerations: []
affinity: {}
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
+
+
+
diff --git a/custos-integration-services/tenant-management-service-parent/tenant-management-service/src/main/helm/templates/deployment.yaml b/custos-integration-services/tenant-management-service-parent/tenant-management-service/src/main/helm/templates/deployment.yaml
index 4c8b507..2fe140f 100644
--- a/custos-integration-services/tenant-management-service-parent/tenant-management-service/src/main/helm/templates/deployment.yaml
+++ b/custos-integration-services/tenant-management-service-parent/tenant-management-service/src/main/helm/templates/deployment.yaml
@@ -6,6 +6,9 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
@@ -52,6 +55,13 @@ spec:
- name: adminhttp
containerPort: {{ .Values.proxy.adminport }}
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: {{ .Values.service.port }}
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
diff --git a/custos-integration-services/tenant-management-service-parent/tenant-management-service/src/main/helm/values.yaml b/custos-integration-services/tenant-management-service-parent/tenant-management-service/src/main/helm/values.yaml
index 7560526..3a2623c 100644
--- a/custos-integration-services/tenant-management-service-parent/tenant-management-service/src/main/helm/values.yaml
+++ b/custos-integration-services/tenant-management-service-parent/tenant-management-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -73,3 +73,12 @@ proxy:
tag: 1.0-SNAPSHOT
port: 50000
adminport: 9901
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1
diff --git a/custos-integration-services/user-management-service-parent/user-management-service/src/main/helm/templates/deployment.yaml b/custos-integration-services/user-management-service-parent/user-management-service/src/main/helm/templates/deployment.yaml
index 4c8b507..2fe140f 100644
--- a/custos-integration-services/user-management-service-parent/user-management-service/src/main/helm/templates/deployment.yaml
+++ b/custos-integration-services/user-management-service-parent/user-management-service/src/main/helm/templates/deployment.yaml
@@ -6,6 +6,9 @@ metadata:
{{ include "helm.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
+ rollingUpdate:
+ maxSurge: {{ .Values.rollingUpdate.maxSurge }}
+ maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "helm.name" . }}
@@ -52,6 +55,13 @@ spec:
- name: adminhttp
containerPort: {{ .Values.proxy.adminport }}
protocol: TCP
+ readinessProbe:
+ httpGet:
+ path: /actuator/health
+ port: {{ .Values.service.port }}
+ initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
+ periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
+ successThreshold: {{ .Values.readinessProbe.successThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
diff --git a/custos-integration-services/user-management-service-parent/user-management-service/src/main/helm/values.yaml b/custos-integration-services/user-management-service-parent/user-management-service/src/main/helm/values.yaml
index 7bfad8c..6ddfe1f 100644
--- a/custos-integration-services/user-management-service-parent/user-management-service/src/main/helm/values.yaml
+++ b/custos-integration-services/user-management-service-parent/user-management-service/src/main/helm/values.yaml
@@ -2,7 +2,7 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
-replicaCount: 1
+replicaCount: 2
image:
repository: isurur/${artifactId}
@@ -73,3 +73,12 @@ proxy:
tag: 1.0-SNAPSHOT
port: 50000
adminport: 9901
+
+rollingUpdate:
+ maxSurge: 1
+ maxUnavailable: 25%
+
+readinessProbe:
+ initialDelaySeconds: 5
+ periodSeconds: 1
+ successThreshold: 1