From 83566008146a2b20d6277fd101c9a169051c34de Mon Sep 17 00:00:00 2001 From: manasa Date: Fri, 3 Jan 2025 17:31:37 +0530 Subject: [PATCH 1/8] Update chart.yaml --- .../Charts/onboarding-server/Chart.yaml | 4 +- .../templates/apiServer/deployment.yaml | 163 ---------------- .../templates/apiServer/hpa.yaml | 40 ---- .../templates/apiServer/service.yaml | 37 ---- .../templates/catalogue/deployment.yaml | 174 ------------------ .../templates/catalogue/hpa.yaml | 40 ---- .../templates/ingestion/deployment.yaml | 174 ------------------ .../templates/ingestion/hpa.yaml | 40 ---- .../templates/ingress/ingress.yaml | 61 ------ .../templates/resourceServer/deployment.yaml | 174 ------------------ .../templates/resourceServer/hpa.yaml | 40 ---- .../templates/token/deployment.yaml | 174 ------------------ .../templates/token/hpa.yaml | 40 ---- 13 files changed, 2 insertions(+), 1159 deletions(-) delete mode 100644 K8s-deployment/Charts/onboarding-server/templates/apiServer/deployment.yaml delete mode 100644 K8s-deployment/Charts/onboarding-server/templates/apiServer/hpa.yaml delete mode 100644 K8s-deployment/Charts/onboarding-server/templates/apiServer/service.yaml delete mode 100644 K8s-deployment/Charts/onboarding-server/templates/catalogue/deployment.yaml delete mode 100644 K8s-deployment/Charts/onboarding-server/templates/catalogue/hpa.yaml delete mode 100644 K8s-deployment/Charts/onboarding-server/templates/ingestion/deployment.yaml delete mode 100644 K8s-deployment/Charts/onboarding-server/templates/ingestion/hpa.yaml delete mode 100644 K8s-deployment/Charts/onboarding-server/templates/ingress/ingress.yaml delete mode 100644 K8s-deployment/Charts/onboarding-server/templates/resourceServer/deployment.yaml delete mode 100644 K8s-deployment/Charts/onboarding-server/templates/resourceServer/hpa.yaml delete mode 100644 K8s-deployment/Charts/onboarding-server/templates/token/deployment.yaml delete mode 100644 K8s-deployment/Charts/onboarding-server/templates/token/hpa.yaml diff --git a/K8s-deployment/Charts/onboarding-server/Chart.yaml b/K8s-deployment/Charts/onboarding-server/Chart.yaml index 110cd390d..0ca08dfdf 100644 --- a/K8s-deployment/Charts/onboarding-server/Chart.yaml +++ b/K8s-deployment/Charts/onboarding-server/Chart.yaml @@ -15,10 +15,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.1 +version: 1.0.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "1.0.0-alpha" +appVersion: "1.0.1-alpha" diff --git a/K8s-deployment/Charts/onboarding-server/templates/apiServer/deployment.yaml b/K8s-deployment/Charts/onboarding-server/templates/apiServer/deployment.yaml deleted file mode 100644 index 45278dd5c..000000000 --- a/K8s-deployment/Charts/onboarding-server/templates/apiServer/deployment.yaml +++ /dev/null @@ -1,163 +0,0 @@ -{{- if .Values.apiServer.enabled -}} -apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: onboarding-api-server - labels: - app.kubernetes.io/component: apiServer - app: onboarding-api-server - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - replicas: {{ .Values.apiServer.replicaCount }} - {{- if .Values.apiServer.updateStrategy }} - strategy: {{- toYaml .Values.apiServer.updateStrategy | nindent 4 }} - {{- end }} - selector: - matchLabels: - app: onboarding-api-server - template: - metadata: - {{- if .Values.podAnnotations }} - annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} - {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} - app: onboarding-api-server - app.kubernetes.io/component: apiServer - {{- if .Values.apiServer.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.podLabels "context" $) | nindent 8 }} - {{- end }} - spec: - {{- if .Values.apiServer.nodeSelector }} - nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.apiServer.nodeSelector "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.apiServer.tolerations }} - tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.tolerations "context" .) | nindent 8 }} - {{- end }} - {{- if .Values.apiServer.priorityClassName }} - priorityClassName: {{ .Values.apiServer.priorityClassName | quote }} - {{- end }} - {{- if .Values.apiServer.schedulerName }} - schedulerName: {{ .Values.apiServer.schedulerName | quote }} - {{- end }} - {{- if .Values.apiServer.podSecurityContext.enabled }} - securityContext: {{- omit .Values.apiServer.podSecurityContext "enabled" | toYaml | nindent 8 }} - {{- end }} - initContainers: - {{- if .Values.apiServer.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.initContainers "context" $) | nindent 8 }} - {{- end }} - containers: - - name: onboarding-api-server - image: {{ template "catalogue.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.apiServer.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.apiServer.containerSecurityContext "enabled" | toYaml | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} - {{- else if .Values.apiServer.command }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.command "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} - {{- else if .Values.apiServer.args }} - args: [{{- range $index, $str := .Values.apiServer.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] - {{- end }} - - - {{- if .Values.apiServer.resources }} - resources: {{- toYaml .Values.apiServer.resources | nindent 12 }} - {{- end }} - volumeMounts: - {{- if .Values.apiServer.extraVolumeMounts }} - {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.extraVolumeMounts "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.apiServer.sidecars }} - {{- include "common.tplvalues.render" ( dict "value" .Values.apiServer.sidecars "context" $) | nindent 8 }} - {{- end }} - ports: - - name: http - containerPort: {{ .Values.containerPorts.http }} - protocol: TCP - - name: hazelcast - containerPort: {{ .Values.containerPorts.hazelcast }} - protocol: TCP - - name: prometheus - containerPort: {{ .Values.containerPorts.prometheus }} - protocol: TCP - {{- if not .Values.diagnosticMode.enabled }} - {{- if .Values.apiServer.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: {{ .Values.apiServer.livenessProbe.path }} - port: 9000 - initialDelaySeconds: {{ .Values.apiServer.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.apiServer.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.apiServer.livenessProbe.timeoutSeconds }} - - {{- else if .Values.apiServer.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.customLivenessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.apiServer.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.apiServer.readinessProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.apiServer.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.customReadinessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.apiServer.startupProbe.enabled }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.apiServer.startupProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.apiServer.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.customStartupProbe "context" $) | nindent 12 }} - {{- end }} - {{- end }} - {{- if .Values.apiServer.lifecycleHooks }} - lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.lifecycleHooks "context" $) | nindent 12 }} - {{- end }} - env: - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - envFrom: - {{- if .Values.apiServer.extraEnvVarsCM }} - - configMapRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.apiServer.extraEnvVarsCM "context" $) }} - {{- end }} - {{- if .Values.apiServer.extraEnvVarsSecret }} - - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.apiServer.extraEnvVarsSecret "context" $) }} - {{- end }} - {{- if .Values.apiServer.extraEnvVars }} - {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.extraEnvVars "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.serviceAccount.create }} - serviceAccountName: {{ template "catalogue.serviceAccountName" . }} - {{- end }} - {{- include "catalogue.imagePullSecrets" . | nindent 6 }} - - {{- if .Values.apiServer.hostAliases }} - hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.hostAliases "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.apiServer.affinity }} - affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.apiServer.affinity "context" $) | nindent 8 }} - {{- else }} - affinity: - {{- if .Values.apiServer.podAffinityPreset}} - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.apiServer.podAffinityPreset "component" "apiServer" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.apiServer.podAntiAffinityPreset }} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "component" "apiServer" "context" $) | nindent 10 }} - {{- end}} - {{- if .Values.apiServer.nodeAffinityPreset.type }} - nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.apiServer.nodeAffinityPreset.type "key" .Values.apiServer.nodeAffinityPreset.key "values" .Values.catalogue.nodeAffinityPreset.values) | nindent 10 }} - {{- end }} - {{- end }} - volumes: - {{- if .Values.apiServer.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.apiServer.extraVolumes "context" $) | nindent 8 }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/onboarding-server/templates/apiServer/hpa.yaml b/K8s-deployment/Charts/onboarding-server/templates/apiServer/hpa.yaml deleted file mode 100644 index 74d89b418..000000000 --- a/K8s-deployment/Charts/onboarding-server/templates/apiServer/hpa.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if and .Values.apiServer.enabled .Values.apiServer.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: onboarding-api-server - labels: - app: onboarding-api-server - {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - scaleTargetRef: - apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} - kind: Deployment - name: onboarding-api-server - minReplicas: {{ .Values.apiServer.autoscaling.minReplicas }} - maxReplicas: {{ .Values.apiServer.autoscaling.maxReplicas }} - metrics: - {{- if .Values.apiServer.autoscaling.targetCPU }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.apiServer.autoscaling.targetCPU }} - {{- end }} - {{- if .Values.apiServer.autoscaling.targetMemory }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.apiServer.autoscaling.targetMemory }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/onboarding-server/templates/apiServer/service.yaml b/K8s-deployment/Charts/onboarding-server/templates/apiServer/service.yaml deleted file mode 100644 index 0120361cf..000000000 --- a/K8s-deployment/Charts/onboarding-server/templates/apiServer/service.yaml +++ /dev/null @@ -1,37 +0,0 @@ -{{- if .Values.apiServer.enabled -}} -apiVersion: v1 -kind: Service -metadata: - name: onboarding-api-server - labels: {{- include "common.labels.standard" . | nindent 4 }} - app.kubernetes.io/component: service - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - type: {{ .Values.service.type }} - {{- if .Values.service.clusterIP }} - clusterIP: {{ .Values.service.clusterIP}} - {{- end }} - {{- if or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort") }} - externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} - {{- end }} - {{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerSourceRanges)) }} - loadBalancerSourceRanges: {{ .Values.service.loadBalancerSourceRanges }} - {{- end }} - {{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerIP)) }} - loadBalancerIP: {{ .Values.service.loadBalancerIP }} - {{- end }} - ports: - - name: http - port: {{ .Values.service.ports}} - targetPort: {{ .Values.service.targetPorts }} - {{- if .Values.service.extraPorts }} - {{- include "common.tplvalues.render" (dict "value" .Values.service.extraPorts "context" $) | nindent 4 }} - {{- end }} - selector: - app: onboarding-api-server -{{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/onboarding-server/templates/catalogue/deployment.yaml b/K8s-deployment/Charts/onboarding-server/templates/catalogue/deployment.yaml deleted file mode 100644 index ebff07bf4..000000000 --- a/K8s-deployment/Charts/onboarding-server/templates/catalogue/deployment.yaml +++ /dev/null @@ -1,174 +0,0 @@ -{{- if .Values.catalogue.enabled -}} -apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: onboarding-catalogue - labels: - app.kubernetes.io/component: catalogue - app: onboarding-catalogue - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - replicas: {{ .Values.catalogue.replicaCount }} - {{- if .Values.catalogue.updateStrategy }} - strategy: {{- toYaml .Values.catalogue.updateStrategy | nindent 4 }} - {{- end }} - selector: - matchLabels: - app: onboarding-catalogue - template: - metadata: - {{- if .Values.podAnnotations }} - annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} - {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} - app: onboarding-catalogue - app.kubernetes.io/component: catalogue - {{- if .Values.catalogue.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.catalogue.podLabels "context" $) | nindent 8 }} - {{- end }} - spec: - {{- if .Values.catalogue.nodeSelector }} - nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.catalogue.nodeSelector "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.catalogue.tolerations }} - tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.catalogue.tolerations "context" .) | nindent 8 }} - {{- end }} - {{- if .Values.catalogue.priorityClassName }} - priorityClassName: {{ .Values.catalogue.priorityClassName | quote }} - {{- end }} - {{- if .Values.catalogue.schedulerName }} - schedulerName: {{ .Values.catalogue.schedulerName | quote }} - {{- end }} - {{- if .Values.catalogue.podSecurityContext.enabled }} - securityContext: {{- omit .Values.catalogue.podSecurityContext "enabled" | toYaml | nindent 8 }} - {{- end }} - initContainers: - {{- if .Values.volumePermissions.enabled }} - - name: volume-permissions - image: {{ include "catalogue.volumePermissions.image" . }} - imagePullPolicy: {{ .Values.volumePermissions.image.pullPolicy | quote }} - command: {} - - securityContext: {{- include "common.tplvalues.render" (dict "value" .Values.volumePermissions.containerSecurityContext "context" $) | nindent 12 }} - {{- if .Values.volumePermissions.resources }} - resources: {{- toYaml .Values.volumePermissions.resources | nindent 12 }} - {{- end }} - volumeMounts: - - name: foo - mountPath: bar - {{- end }} - {{- if .Values.catalogue.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.catalogue.initContainers "context" $) | nindent 8 }} - {{- end }} - containers: - - name: onboarding-catalogue - image: {{ template "catalogue.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.catalogue.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.catalogue.containerSecurityContext "enabled" | toYaml | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} - {{- else if .Values.catalogue.command }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.catalogue.command "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} - {{- else if .Values.catalogue.args }} - args: [{{- range $index, $str := .Values.catalogue.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] - {{- end }} - - - {{- if .Values.catalogue.resources }} - resources: {{- toYaml .Values.catalogue.resources | nindent 12 }} - {{- end }} - volumeMounts: - {{- if .Values.catalogue.extraVolumeMounts }} - {{- include "common.tplvalues.render" (dict "value" .Values.catalogue.extraVolumeMounts "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.catalogue.sidecars }} - {{- include "common.tplvalues.render" ( dict "value" .Values.catalogue.sidecars "context" $) | nindent 8 }} - {{- end }} - ports: - - name: hazelcast - containerPort: {{ .Values.containerPorts.hazelcast }} - protocol: TCP - - name: prometheus - containerPort: {{ .Values.containerPorts.prometheus }} - protocol: TCP - {{- if not .Values.diagnosticMode.enabled }} - {{- if .Values.catalogue.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: {{ .Values.catalogue.livenessProbe.path }} - port: 9000 - initialDelaySeconds: {{ .Values.catalogue.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.catalogue.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.catalogue.livenessProbe.timeoutSeconds }} - - {{- else if .Values.catalogue.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.catalogue.customLivenessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.catalogue.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.catalogue.readinessProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.catalogue.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.catalogue.customReadinessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.catalogue.startupProbe.enabled }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.catalogue.startupProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.catalogue.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.catalogue.customStartupProbe "context" $) | nindent 12 }} - {{- end }} - {{- end }} - {{- if .Values.catalogue.lifecycleHooks }} - lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.catalogue.lifecycleHooks "context" $) | nindent 12 }} - {{- end }} - env: - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - envFrom: - {{- if .Values.catalogue.extraEnvVarsCM }} - - configMapRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.catalogue.extraEnvVarsCM "context" $) }} - {{- end }} - {{- if .Values.catalogue.extraEnvVarsSecret }} - - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.catalogue.extraEnvVarsSecret "context" $) }} - {{- end }} - {{- if .Values.catalogue.extraEnvVars }} - {{- include "common.tplvalues.render" (dict "value" .Values.catalogue.extraEnvVars "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.serviceAccount.create }} - serviceAccountName: {{ template "catalogue.serviceAccountName" . }} - {{- end }} - {{- include "catalogue.imagePullSecrets" . | nindent 6 }} - - {{- if .Values.catalogue.hostAliases }} - hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.catalogue.hostAliases "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.catalogue.affinity }} - affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.catalogue.affinity "context" $) | nindent 8 }} - {{- else }} - affinity: - {{- if .Values.catalogue.podAffinityPreset}} - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.catalogue.podAffinityPreset "component" "catalogue" "context" $) | nindent 10 }} - {{- end }} - {{- if .Values.catalogue.podAntiAffinityPreset}} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.catalogue.podAntiAffinityPreset "component" "catalogue" "context" $) | nindent 10 }} - {{- end }} - {{- if .Values.catalogue.nodeAffinityPreset.type}} - nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.catalogue.nodeAffinityPreset.type "key" .Values.catalogue.nodeAffinityPreset.key "values" .Values.catalogue.nodeAffinityPreset.values) | nindent 10 }} - {{- end }} - {{- end }} - volumes: - {{- if .Values.catalogue.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.catalogue.extraVolumes "context" $) | nindent 8 }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/onboarding-server/templates/catalogue/hpa.yaml b/K8s-deployment/Charts/onboarding-server/templates/catalogue/hpa.yaml deleted file mode 100644 index 46f1d22e2..000000000 --- a/K8s-deployment/Charts/onboarding-server/templates/catalogue/hpa.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if and .Values.catalogue.enabled .Values.catalogue.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: onboarding-catalogue - labels: - app: onboarding-catalogue - {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - scaleTargetRef: - apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} - kind: Deployment - name: onboarding-catalogue - minReplicas: {{ .Values.catalogue.autoscaling.minReplicas }} - maxReplicas: {{ .Values.catalogue.autoscaling.maxReplicas }} - metrics: - {{- if .Values.catalogue.autoscaling.targetCPU }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.catalogue.autoscaling.targetCPU }} - {{- end }} - {{- if .Values.catalogue.autoscaling.targetMemory }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.catalogue.autoscaling.targetMemory }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/onboarding-server/templates/ingestion/deployment.yaml b/K8s-deployment/Charts/onboarding-server/templates/ingestion/deployment.yaml deleted file mode 100644 index 752886868..000000000 --- a/K8s-deployment/Charts/onboarding-server/templates/ingestion/deployment.yaml +++ /dev/null @@ -1,174 +0,0 @@ -{{- if .Values.ingestion.enabled -}} -apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: onboarding-ingestion - labels: - app.kubernetes.io/component: ingestion - app: onboarding-ingestion - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - replicas: {{ .Values.ingestion.replicaCount }} - {{- if .Values.ingestion.updateStrategy }} - strategy: {{- toYaml .Values.ingestion.updateStrategy | nindent 4 }} - {{- end }} - selector: - matchLabels: - app: onboarding-ingestion - template: - metadata: - {{- if .Values.podAnnotations }} - annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} - {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} - app: onboarding-ingestion - app.kubernetes.io/component: ingestion - {{- if .Values.ingestion.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.ingestion.podLabels "context" $) | nindent 8 }} - {{- end }} - spec: - {{- if .Values.ingestion.nodeSelector }} - nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.ingestion.nodeSelector "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.ingestion.tolerations }} - tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.ingestion.tolerations "context" .) | nindent 8 }} - {{- end }} - {{- if .Values.ingestion.priorityClassName }} - priorityClassName: {{ .Values.ingestion.priorityClassName | quote }} - {{- end }} - {{- if .Values.ingestion.schedulerName }} - schedulerName: {{ .Values.ingestion.schedulerName | quote }} - {{- end }} - {{- if .Values.ingestion.podSecurityContext.enabled }} - securityContext: {{- omit .Values.ingestion.podSecurityContext "enabled" | toYaml | nindent 8 }} - {{- end }} - initContainers: - {{- if .Values.volumePermissions.enabled }} - - name: volume-permissions - image: {{ include "catalogue.volumePermissions.image" . }} - imagePullPolicy: {{ .Values.volumePermissions.image.pullPolicy | quote }} - command: {} - - securityContext: {{- include "common.tplvalues.render" (dict "value" .Values.volumePermissions.containerSecurityContext "context" $) | nindent 12 }} - {{- if .Values.volumePermissions.resources }} - resources: {{- toYaml .Values.volumePermissions.resources | nindent 12 }} - {{- end }} - volumeMounts: - - name: foo - mountPath: bar - {{- end }} - {{- if .Values.ingestion.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.ingestion.initContainers "context" $) | nindent 8 }} - {{- end }} - containers: - - name: onboarding-ingestion - image: {{ template "catalogue.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.ingestion.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.ingestion.containerSecurityContext "enabled" | toYaml | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} - {{- else if .Values.ingestion.command }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.ingestion.command "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} - {{- else if .Values.ingestion.args }} - args: [{{- range $index, $str := .Values.ingestion.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] - {{- end }} - - - {{- if .Values.ingestion.resources }} - resources: {{- toYaml .Values.ingestion.resources | nindent 12 }} - {{- end }} - volumeMounts: - {{- if .Values.ingestion.extraVolumeMounts }} - {{- include "common.tplvalues.render" (dict "value" .Values.ingestion.extraVolumeMounts "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.ingestion.sidecars }} - {{- include "common.tplvalues.render" ( dict "value" .Values.ingestion.sidecars "context" $) | nindent 8 }} - {{- end }} - ports: - - name: hazelcast - containerPort: {{ .Values.containerPorts.hazelcast }} - protocol: TCP - - name: prometheus - containerPort: {{ .Values.containerPorts.prometheus }} - protocol: TCP - {{- if not .Values.diagnosticMode.enabled }} - {{- if .Values.ingestion.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: {{ .Values.ingestion.livenessProbe.path }} - port: 9000 - initialDelaySeconds: {{ .Values.ingestion.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.ingestion.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.ingestion.livenessProbe.timeoutSeconds }} - - {{- else if .Values.ingestion.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.ingestion.customLivenessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.ingestion.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.ingestion.readinessProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.ingestion.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.ingestion.customReadinessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.ingestion.startupProbe.enabled }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.ingestion.startupProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.ingestion.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.ingestion.customStartupProbe "context" $) | nindent 12 }} - {{- end }} - {{- end }} - {{- if .Values.ingestion.lifecycleHooks }} - lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.ingestion.lifecycleHooks "context" $) | nindent 12 }} - {{- end }} - env: - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - envFrom: - {{- if .Values.ingestion.extraEnvVarsCM }} - - configMapRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.ingestion.extraEnvVarsCM "context" $) }} - {{- end }} - {{- if .Values.ingestion.extraEnvVarsSecret }} - - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.ingestion.extraEnvVarsSecret "context" $) }} - {{- end }} - {{- if .Values.ingestion.extraEnvVars }} - {{- include "common.tplvalues.render" (dict "value" .Values.ingestion.extraEnvVars "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.serviceAccount.create }} - serviceAccountName: {{ template "catalogue.serviceAccountName" . }} - {{- end }} - {{- include "catalogue.imagePullSecrets" . | nindent 6 }} - - {{- if .Values.ingestion.hostAliases }} - hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.ingestion.hostAliases "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.ingestion.affinity }} - affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.ingestion.affinity "context" $) | nindent 8 }} - {{- else }} - affinity: - {{- if .Values.ingestion.podAffinityPreset}} - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.ingestion.podAffinityPreset "component" "ingestion" "context" $) | nindent 10 }} - {{- end }} - {{- if .Values.ingestion.podAntiAffinityPreset}} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.ingestion.podAntiAffinityPreset "component" "ingestion" "context" $) | nindent 10 }} - {{- end }} - {{- if .Values.ingestion.nodeAffinityPreset.type}} - nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.ingestion.nodeAffinityPreset.type "key" .Values.ingestion.nodeAffinityPreset.key "values" .Values.ingestion.nodeAffinityPreset.values) | nindent 10 }} - {{- end }} - {{- end }} - volumes: - {{- if .Values.ingestion.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.ingestion.extraVolumes "context" $) | nindent 8 }} - {{- end }} -{{- end }} diff --git a/K8s-deployment/Charts/onboarding-server/templates/ingestion/hpa.yaml b/K8s-deployment/Charts/onboarding-server/templates/ingestion/hpa.yaml deleted file mode 100644 index 0da2eac26..000000000 --- a/K8s-deployment/Charts/onboarding-server/templates/ingestion/hpa.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if and .Values.ingestion.enabled .Values.ingestion.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: onboarding-ingestion - labels: - app: onboarding-ingestion - {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - scaleTargetRef: - apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} - kind: Deployment - name: onboarding-ingestion - minReplicas: {{ .Values.ingestion.autoscaling.minReplicas }} - maxReplicas: {{ .Values.ingestion.autoscaling.maxReplicas }} - metrics: - {{- if .Values.ingestion.autoscaling.targetCPU }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.ingestion.autoscaling.targetCPU }} - {{- end }} - {{- if .Values.ingestion.autoscaling.targetMemory }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.ingestion.autoscaling.targetMemory }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/onboarding-server/templates/ingress/ingress.yaml b/K8s-deployment/Charts/onboarding-server/templates/ingress/ingress.yaml deleted file mode 100644 index 1321525d8..000000000 --- a/K8s-deployment/Charts/onboarding-server/templates/ingress/ingress.yaml +++ /dev/null @@ -1,61 +0,0 @@ -{{- if .Values.ingress.enabled }} -apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }} -kind: Ingress -metadata: - name: onboarding-server - labels: {{- include "common.labels.standard" . | nindent 4 }} - app.kubernetes.io/component: ingress - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - - annotations: - {{- if or .Values.ingress.annotations .Values.commonAnnotations }} - {{- if .Values.ingress.annotations }} - {{- include "common.tplvalues.render" ( dict "value" .Values.ingress.annotations "context" $) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} - {{- end }} - nginx.ingress.kubernetes.io/server-snippet: | - add_header Referrer-Policy "no-referrer-when-downgrade" always; - add_header X-Frame-Options "deny" always; - add_header X-XSS-Protection "1; mode=block" always; - add_header X-Permitted-Cross-Domain-Policies "none" always; - add_header Cross-Origin-Embedder-Policy "require-corp" always; - add_header Cross-Origin-Resource-Policy "cross-origin" always; - nginx.ingress.kubernetes.io/configuration-snippet: | - internal; - rewrite ^ $original_uri break; -spec: - rules: - {{- if .Values.ingress.hostname }} - - host: {{ .Values.ingress.hostname }} - http: - paths: - {{- if .Values.ingress.extraPaths }} - {{- toYaml .Values.ingress.extraPaths | nindent 10 }} - {{- end }} - - path: {{ .Values.ingress.path }} - {{- if eq "true" (include "common.ingress.supportsPathType" .) }} - pathType: {{ .Values.ingress.pathType }} - {{- end }} - backend: {{- include "common.ingress.backend" (dict "serviceName" .Values.ingress.serviceName "servicePort" "http" "context" $) | nindent 14 }} - {{- end }} - {{- range .Values.ingress.extraHosts }} - - host: {{ .name | quote }} - http: - paths: - - path: {{ default "/" .path }} - {{- if eq "true" (include "common.ingress.supportsPathType" $) }} - pathType: {{ default "ImplementationSpecific" .pathType }} - {{- end }} - backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" $) "servicePort" "http" "context" $) | nindent 14 }} - {{- end }} - # As cos tls certficates covered in auth ingress - # tls: - # - hosts: - # - {{ .Values.ingress.hostname }} - # secretName: {{ .Values.ingress.tls.secretName }} -{{- end }} diff --git a/K8s-deployment/Charts/onboarding-server/templates/resourceServer/deployment.yaml b/K8s-deployment/Charts/onboarding-server/templates/resourceServer/deployment.yaml deleted file mode 100644 index 7c80eea1d..000000000 --- a/K8s-deployment/Charts/onboarding-server/templates/resourceServer/deployment.yaml +++ /dev/null @@ -1,174 +0,0 @@ -{{- if .Values.resourceServer.enabled -}} -apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: onboarding-resource-server - labels: - app.kubernetes.io/component: resourceServer - app: onboarding-resource-server - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - replicas: {{ .Values.resourceServer.replicaCount }} - {{- if .Values.resourceServer.updateStrategy }} - strategy: {{- toYaml .Values.resourceServer.updateStrategy | nindent 4 }} - {{- end }} - selector: - matchLabels: - app: onboarding-resource-server - template: - metadata: - {{- if .Values.podAnnotations }} - annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} - {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} - app: onboarding-resource-server - app.kubernetes.io/component: resourceServer - {{- if .Values.resourceServer.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.podLabels "context" $) | nindent 8 }} - {{- end }} - spec: - {{- if .Values.resourceServer.nodeSelector }} - nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.resourceServer.nodeSelector "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.resourceServer.tolerations }} - tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.tolerations "context" .) | nindent 8 }} - {{- end }} - {{- if .Values.resourceServer.priorityClassName }} - priorityClassName: {{ .Values.resourceServer.priorityClassName | quote }} - {{- end }} - {{- if .Values.resourceServer.schedulerName }} - schedulerName: {{ .Values.resourceServer.schedulerName | quote }} - {{- end }} - {{- if .Values.resourceServer.podSecurityContext.enabled }} - securityContext: {{- omit .Values.resourceServer.podSecurityContext "enabled" | toYaml | nindent 8 }} - {{- end }} - initContainers: - {{- if .Values.volumePermissions.enabled }} - - name: volume-permissions - image: {{ include "catalogue.volumePermissions.image" . }} - imagePullPolicy: {{ .Values.volumePermissions.image.pullPolicy | quote }} - command: {} - - securityContext: {{- include "common.tplvalues.render" (dict "value" .Values.volumePermissions.containerSecurityContext "context" $) | nindent 12 }} - {{- if .Values.volumePermissions.resources }} - resources: {{- toYaml .Values.volumePermissions.resources | nindent 12 }} - {{- end }} - volumeMounts: - - name: foo - mountPath: bar - {{- end }} - {{- if .Values.resourceServer.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.initContainers "context" $) | nindent 8 }} - {{- end }} - containers: - - name: onboarding-resource-server - image: {{ template "catalogue.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.resourceServer.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.resourceServer.containerSecurityContext "enabled" | toYaml | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} - {{- else if .Values.resourceServer.command }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.command "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} - {{- else if .Values.resourceServer.args }} - args: [{{- range $index, $str := .Values.resourceServer.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] - {{- end }} - - - {{- if .Values.resourceServer.resources }} - resources: {{- toYaml .Values.resourceServer.resources | nindent 12 }} - {{- end }} - volumeMounts: - {{- if .Values.resourceServer.extraVolumeMounts }} - {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.extraVolumeMounts "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.resourceServer.sidecars }} - {{- include "common.tplvalues.render" ( dict "value" .Values.resourceServer.sidecars "context" $) | nindent 8 }} - {{- end }} - ports: - - name: hazelcast - containerPort: {{ .Values.containerPorts.hazelcast }} - protocol: TCP - - name: prometheus - containerPort: {{ .Values.containerPorts.prometheus }} - protocol: TCP - {{- if not .Values.diagnosticMode.enabled }} - {{- if .Values.resourceServer.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: {{ .Values.resourceServer.livenessProbe.path }} - port: 9000 - initialDelaySeconds: {{ .Values.resourceServer.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.resourceServer.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.resourceServer.livenessProbe.timeoutSeconds }} - - {{- else if .Values.resourceServer.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.customLivenessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.resourceServer.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.resourceServer.readinessProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.resourceServer.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.customReadinessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.resourceServer.startupProbe.enabled }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.resourceServer.startupProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.resourceServer.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.customStartupProbe "context" $) | nindent 12 }} - {{- end }} - {{- end }} - {{- if .Values.resourceServer.lifecycleHooks }} - lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.lifecycleHooks "context" $) | nindent 12 }} - {{- end }} - env: - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - envFrom: - {{- if .Values.resourceServer.extraEnvVarsCM }} - - configMapRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.resourceServer.extraEnvVarsCM "context" $) }} - {{- end }} - {{- if .Values.resourceServer.extraEnvVarsSecret }} - - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.resourceServer.extraEnvVarsSecret "context" $) }} - {{- end }} - {{- if .Values.resourceServer.extraEnvVars }} - {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.extraEnvVars "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.serviceAccount.create }} - serviceAccountName: {{ template "catalogue.serviceAccountName" . }} - {{- end }} - {{- include "catalogue.imagePullSecrets" . | nindent 6 }} - - {{- if .Values.resourceServer.hostAliases }} - hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.hostAliases "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.resourceServer.affinity }} - affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.resourceServer.affinity "context" $) | nindent 8 }} - {{- else }} - affinity: - {{- if .Values.resourceServer.podAffinityPreset}} - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.resourceServer.podAffinityPreset "component" "resourceServer" "context" $) | nindent 10 }} - {{- end }} - {{- if .Values.resourceServer.podAntiAffinityPreset}} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.resourceServer.podAntiAffinityPreset "component" "resourceServer" "context" $) | nindent 10 }} - {{- end }} - {{- if .Values.resourceServer.nodeAffinityPreset.type}} - nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.resourceServer.nodeAffinityPreset.type "key" .Values.resourceServer.nodeAffinityPreset.key "values" .Values.resourceServer.nodeAffinityPreset.values) | nindent 10 }} - {{- end }} - {{- end }} - volumes: - {{- if .Values.resourceServer.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.resourceServer.extraVolumes "context" $) | nindent 8 }} - {{- end }} -{{- end }} diff --git a/K8s-deployment/Charts/onboarding-server/templates/resourceServer/hpa.yaml b/K8s-deployment/Charts/onboarding-server/templates/resourceServer/hpa.yaml deleted file mode 100644 index c3cd6a8ef..000000000 --- a/K8s-deployment/Charts/onboarding-server/templates/resourceServer/hpa.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if and .Values.resourceServer.enabled .Values.resourceServer.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: onboarding-resource-server - labels: - app: onboarding-resource-server - {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - scaleTargetRef: - apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} - kind: Deployment - name: onboarding-resource-server - minReplicas: {{ .Values.resourceServer.autoscaling.minReplicas }} - maxReplicas: {{ .Values.resourceServer.autoscaling.maxReplicas }} - metrics: - {{- if .Values.resourceServer.autoscaling.targetCPU }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.resourceServer.autoscaling.targetCPU }} - {{- end }} - {{- if .Values.resourceServer.autoscaling.targetMemory }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.resourceServer.autoscaling.targetMemory }} - {{- end }} -{{- end }} diff --git a/K8s-deployment/Charts/onboarding-server/templates/token/deployment.yaml b/K8s-deployment/Charts/onboarding-server/templates/token/deployment.yaml deleted file mode 100644 index bd887d557..000000000 --- a/K8s-deployment/Charts/onboarding-server/templates/token/deployment.yaml +++ /dev/null @@ -1,174 +0,0 @@ -{{- if .Values.token.enabled -}} -apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: onboarding-token - labels: - app.kubernetes.io/component: token - app: onboarding-token - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - replicas: {{ .Values.token.replicaCount }} - {{- if .Values.token.updateStrategy }} - strategy: {{- toYaml .Values.token.updateStrategy | nindent 4 }} - {{- end }} - selector: - matchLabels: - app: onboarding-token - template: - metadata: - {{- if .Values.podAnnotations }} - annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} - {{- end }} - labels: {{- include "common.labels.standard" . | nindent 8 }} - app: onboarding-token - app.kubernetes.io/component: token - {{- if .Values.token.podLabels }} - {{- include "common.tplvalues.render" (dict "value" .Values.token.podLabels "context" $) | nindent 8 }} - {{- end }} - spec: - {{- if .Values.token.nodeSelector }} - nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.token.nodeSelector "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.token.tolerations }} - tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.token.tolerations "context" .) | nindent 8 }} - {{- end }} - {{- if .Values.token.priorityClassName }} - priorityClassName: {{ .Values.token.priorityClassName | quote }} - {{- end }} - {{- if .Values.token.schedulerName }} - schedulerName: {{ .Values.token.schedulerName | quote }} - {{- end }} - {{- if .Values.token.podSecurityContext.enabled }} - securityContext: {{- omit .Values.token.podSecurityContext "enabled" | toYaml | nindent 8 }} - {{- end }} - initContainers: - {{- if .Values.volumePermissions.enabled }} - - name: volume-permissions - image: {{ include "catalogue.volumePermissions.image" . }} - imagePullPolicy: {{ .Values.volumePermissions.image.pullPolicy | quote }} - command: {} - - securityContext: {{- include "common.tplvalues.render" (dict "value" .Values.volumePermissions.containerSecurityContext "context" $) | nindent 12 }} - {{- if .Values.volumePermissions.resources }} - resources: {{- toYaml .Values.volumePermissions.resources | nindent 12 }} - {{- end }} - volumeMounts: - - name: foo - mountPath: bar - {{- end }} - {{- if .Values.token.initContainers }} - {{- include "common.tplvalues.render" (dict "value" .Values.token.initContainers "context" $) | nindent 8 }} - {{- end }} - containers: - - name: onboarding-token - image: {{ template "catalogue.image" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.token.containerSecurityContext.enabled }} - securityContext: {{- omit .Values.token.containerSecurityContext "enabled" | toYaml | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} - {{- else if .Values.token.command }} - command: {{- include "common.tplvalues.render" (dict "value" .Values.token.command "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.diagnosticMode.enabled }} - args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} - {{- else if .Values.token.args }} - args: [{{- range $index, $str := .Values.token.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] - {{- end }} - - - {{- if .Values.token.resources }} - resources: {{- toYaml .Values.token.resources | nindent 12 }} - {{- end }} - volumeMounts: - {{- if .Values.token.extraVolumeMounts }} - {{- include "common.tplvalues.render" (dict "value" .Values.token.extraVolumeMounts "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.token.sidecars }} - {{- include "common.tplvalues.render" ( dict "value" .Values.token.sidecars "context" $) | nindent 8 }} - {{- end }} - ports: - - name: hazelcast - containerPort: {{ .Values.containerPorts.hazelcast }} - protocol: TCP - - name: prometheus - containerPort: {{ .Values.containerPorts.prometheus }} - protocol: TCP - {{- if not .Values.diagnosticMode.enabled }} - {{- if .Values.token.livenessProbe.enabled }} - livenessProbe: - httpGet: - path: {{ .Values.token.livenessProbe.path }} - port: 9000 - initialDelaySeconds: {{ .Values.token.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.token.livenessProbe.periodSeconds }} - timeoutSeconds: {{ .Values.token.livenessProbe.timeoutSeconds }} - - {{- else if .Values.token.customLivenessProbe }} - livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.token.customLivenessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.token.readinessProbe.enabled }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.token.readinessProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.token.customReadinessProbe }} - readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.token.customReadinessProbe "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.token.startupProbe.enabled }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.token.startupProbe "enabled") "context" $) | nindent 12 }} - {{- else if .Values.token.customStartupProbe }} - startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.token.customStartupProbe "context" $) | nindent 12 }} - {{- end }} - {{- end }} - {{- if .Values.token.lifecycleHooks }} - lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.token.lifecycleHooks "context" $) | nindent 12 }} - {{- end }} - env: - - name: MY_POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - envFrom: - {{- if .Values.token.extraEnvVarsCM }} - - configMapRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.token.extraEnvVarsCM "context" $) }} - {{- end }} - {{- if .Values.token.extraEnvVarsSecret }} - - secretRef: - name: {{ include "common.tplvalues.render" (dict "value" .Values.token.extraEnvVarsSecret "context" $) }} - {{- end }} - {{- if .Values.token.extraEnvVars }} - {{- include "common.tplvalues.render" (dict "value" .Values.token.extraEnvVars "context" $) | nindent 12 }} - {{- end }} - {{- if .Values.serviceAccount.create }} - serviceAccountName: {{ template "catalogue.serviceAccountName" . }} - {{- end }} - {{- include "catalogue.imagePullSecrets" . | nindent 6 }} - - {{- if .Values.token.hostAliases }} - hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.token.hostAliases "context" $) | nindent 8 }} - {{- end }} - {{- if .Values.token.affinity }} - affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.token.affinity "context" $) | nindent 8 }} - {{- else }} - affinity: - {{- if .Values.token.podAffinityPreset}} - podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.token.podAffinityPreset "component" "token" "context" $) | nindent 10 }} - {{- end }} - {{- if .Values.token.podAntiAffinityPreset}} - podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.token.podAntiAffinityPreset "component" "token" "context" $) | nindent 10 }} - {{- end }} - {{- if .Values.token.nodeAffinityPreset.type}} - nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.token.nodeAffinityPreset.type "key" .Values.token.nodeAffinityPreset.key "values" .Values.token.nodeAffinityPreset.values) | nindent 10 }} - {{- end }} - {{- end }} - volumes: - {{- if .Values.token.extraVolumes }} - {{- include "common.tplvalues.render" (dict "value" .Values.token.extraVolumes "context" $) | nindent 8 }} - {{- end }} -{{- end }} \ No newline at end of file diff --git a/K8s-deployment/Charts/onboarding-server/templates/token/hpa.yaml b/K8s-deployment/Charts/onboarding-server/templates/token/hpa.yaml deleted file mode 100644 index 25862513e..000000000 --- a/K8s-deployment/Charts/onboarding-server/templates/token/hpa.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if and .Values.token.enabled .Values.token.autoscaling.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: onboarding-token - labels: - app: onboarding-token - {{- include "common.labels.standard" . | nindent 4 }} - {{- if .Values.commonLabels }} - {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} - {{- end }} - - {{- if .Values.commonAnnotations }} - annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} - {{- end }} -spec: - scaleTargetRef: - apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} - kind: Deployment - name: onboarding-token - minReplicas: {{ .Values.token.autoscaling.minReplicas }} - maxReplicas: {{ .Values.token.autoscaling.maxReplicas }} - metrics: - {{- if .Values.token.autoscaling.targetCPU }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.token.autoscaling.targetCPU }} - {{- end }} - {{- if .Values.token.autoscaling.targetMemory }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.token.autoscaling.targetMemory }} - {{- end }} -{{- end }} \ No newline at end of file From 43c9812335fc2d3edb24d0dd13c132cb3fc01d68 Mon Sep 17 00:00:00 2001 From: manasa Date: Fri, 3 Jan 2025 17:34:03 +0530 Subject: [PATCH 2/8] Updated resource-values.yaml files --- .../example-aws-resource-values.yaml | 70 +------------------ .../example-azure-resource-values.yaml | 70 +------------------ 2 files changed, 2 insertions(+), 138 deletions(-) diff --git a/K8s-deployment/Charts/onboarding-server/example-aws-resource-values.yaml b/K8s-deployment/Charts/onboarding-server/example-aws-resource-values.yaml index 650f92042..f27db5173 100644 --- a/K8s-deployment/Charts/onboarding-server/example-aws-resource-values.yaml +++ b/K8s-deployment/Charts/onboarding-server/example-aws-resource-values.yaml @@ -9,7 +9,7 @@ ingress: ## @param apiServer.resources.limits The resources limits for the apiServer containers ## @param apiServer.resources.requests The requested resources for the apiServer containers ## -apiServer: +onboarding: enabled: true nodeSelector: node.kubernetes.io/instance-type: t3a.medium @@ -20,71 +20,3 @@ apiServer: requests: cpu: 400m memory: 600Mi - -## catalogue resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param catalogue.resources.limits The resources limits for the catalogue containers -## @param catalogue.resources.requests The requested resources for the catalogue containers -## -catalogue: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: t3a.medium - resources: - limits: - cpu: 600m - memory: 750Mi - requests: - cpu: 400m - memory: 600Mi - -## token resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param token.resources.limits The resources limits for the token containers -## @param token.resources.requests The requested resources for the token containers -## -token: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: t3a.medium - resources: - limits: - cpu: 600m - memory: 750Mi - requests: - cpu: 400m - memory: 600Mi - -## resourceServer resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param resourceServer.resources.limits The resources limits for the resourceServer containers -## @param resourceServer.resources.requests The requested resources for the resourceServer containers -## -resourceServer: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: t3a.medium - resources: - limits: - cpu: 600m - memory: 750Mi - requests: - cpu: 400m - memory: 600Mi - -## ingestion resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param ingestion.resources.limits The resources limits for the ingestion containers -## @param ingestion.resources.requests The requested resources for the ingestion containers -## -ingestion: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: t3a.medium - resources: - limits: - cpu: 600m - memory: 750Mi - requests: - cpu: 400m - memory: 600Mi \ No newline at end of file diff --git a/K8s-deployment/Charts/onboarding-server/example-azure-resource-values.yaml b/K8s-deployment/Charts/onboarding-server/example-azure-resource-values.yaml index fed780937..1a7365500 100644 --- a/K8s-deployment/Charts/onboarding-server/example-azure-resource-values.yaml +++ b/K8s-deployment/Charts/onboarding-server/example-azure-resource-values.yaml @@ -8,7 +8,7 @@ ingress: ## @param apiServer.resources.limits The resources limits for the apiServer containers ## @param apiServer.resources.requests The requested resources for the apiServer containers ## -apiServer: +onboarding: enabled: true nodeSelector: node.kubernetes.io/instance-type: Standard_B2s @@ -19,71 +19,3 @@ apiServer: requests: cpu: 400m memory: 600Mi - -## catalogue resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param catalogue.resources.limits The resources limits for the catalogue containers -## @param catalogue.resources.requests The requested resources for the catalogue containers -## -catalogue: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: Standard_B2s - resources: - limits: - cpu: 600m - memory: 750Mi - requests: - cpu: 400m - memory: 600Mi - -## token resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param token.resources.limits The resources limits for the token containers -## @param token.resources.requests The requested resources for the token containers -## -token: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: Standard_B2s - resources: - limits: - cpu: 600m - memory: 750Mi - requests: - cpu: 400m - memory: 600Mi - -## resourceServer resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param resourceServer.resources.limits The resources limits for the resourceServer containers -## @param resourceServer.resources.requests The requested resources for the resourceServer containers -## -resourceServer: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: Standard_B2s - resources: - limits: - cpu: 600m - memory: 750Mi - requests: - cpu: 400m - memory: 600Mi - -## ingestion resource requests and limits -## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param ingestion.resources.limits The resources limits for the ingestion containers -## @param ingestion.resources.requests The requested resources for the ingestion containers -## -ingestion: - enabled: true - nodeSelector: - node.kubernetes.io/instance-type: Standard_B2s - resources: - limits: - cpu: 600m - memory: 750Mi - requests: - cpu: 400m - memory: 600Mi \ No newline at end of file From 4a10fc160bdf983035cee9c7e9c3c3a9bd4330e9 Mon Sep 17 00:00:00 2001 From: manasa Date: Fri, 3 Jan 2025 17:34:31 +0530 Subject: [PATCH 3/8] Update values.yaml --- .../Charts/onboarding-server/values.yaml | 938 +----------------- 1 file changed, 2 insertions(+), 936 deletions(-) diff --git a/K8s-deployment/Charts/onboarding-server/values.yaml b/K8s-deployment/Charts/onboarding-server/values.yaml index b46274199..95370db9a 100644 --- a/K8s-deployment/Charts/onboarding-server/values.yaml +++ b/K8s-deployment/Charts/onboarding-server/values.yaml @@ -109,7 +109,7 @@ podAnnotations: prometheus.io/scrape: "true" ## @section apiServer Parameters -apiServer: +onboardingServer: ## @param apiServer.replicaCount Number of apiServer replicas to deploy ## @@ -207,7 +207,7 @@ apiServer: ## @param apiServer.args Override default container args (useful when using custom images) ## - args: ["-c","exec java $$ONBOARDING_JAVA_OPTS -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json -m iudx.onboarding.server.apiserver.ApiServerVerticle"] + args: ["-c","exec java $$ONBOARDING_JAVA_OPTS -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json"] ## @param apiServer.hostAliases apiServer pods host aliases ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ ## @@ -343,939 +343,6 @@ apiServer: targetCPU: 80 #targetMemory: -## @section catalogue Parameters -catalogue: - -## @param catalogue.replicaCount Number of catalogue replicas to deploy - ## - replicaCount: 1 - - ## Configure extra options for catalogue containers' liveness and readiness probes - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes - ## @param catalogue.livenessProbe.enabled Enable livenessProbe on catalogue containers - ## @param catalogue.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe - ## @param catalogue.livenessProbe.periodSeconds Period seconds for livenessProbe - ## @param catalogue.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe - ## @param catalogue.livenessProbe.failureThreshold Failure threshold for livenessProbe - ## @param catalogue.livenessProbe.successThreshold Success threshold for livenessProbe - ## @param catalogue.livenessProbe.path Path for httpGet - ## - livenessProbe: - enabled: true - path: /metrics - initialDelaySeconds: 60 - periodSeconds: 60 - timeoutSeconds: 10 - #failureThreshold: 10 - #successThreshold: 10 - ## @param catalogue.readinessProbe.enabled Enable readinessProbe on catalogue containers - ## @param catalogue.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe - ## @param catalogue.readinessProbe.periodSeconds Period seconds for readinessProbe - ## @param catalogue.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe - ## @param catalogue.readinessProbe.failureThreshold Failure threshold for readinessProbe - ## @param catalogue.readinessProbe.successThreshold Success threshold for readinessProbe - ## - readinessProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param catalogue.startupProbe.enabled Enable startupProbe on catalogue containers - ## @param catalogue.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe - ## @param catalogue.startupProbe.periodSeconds Period seconds for startupProbe - ## @param catalogue.startupProbe.timeoutSeconds Timeout seconds for startupProbe - ## @param catalogue.startupProbe.failureThreshold Failure threshold for startupProbe - ## @param catalogue.startupProbe.successThreshold Success threshold for startupProbe - ## - startupProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param catalogue.customLivenessProbe Custom livenessProbe that overrides the default one - ## - customLivenessProbe: {} - ## @param catalogue.customReadinessProbe Custom readinessProbe that overrides the default one - ## - customReadinessProbe: {} - ## @param catalogue.customStartupProbe Custom startupProbe that overrides the default one - ## - customStartupProbe: {} - - ## Configure Pods Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param catalogue.podSecurityContext.enabled Enabled catalogue pods' Security Context - ## @param catalogue.podSecurityContext.fsGroup Set catalogue pod's Security Context fsGroup - ## - podSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - fsGroup: 1001 - ## Configure Container Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param catalogue.containerSecurityContext.enabled Enabled catalogue containers' Security Context - ## @param catalogue.containerSecurityContext.runAsUser Set catalogue containers' Security Context runAsUser - ## @param catalogue.containerSecurityContext.runAsNonRoot Set catalogue containers' Security Context runAsNonRoot - ## - containerSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - #%%OTHER_PARAMETERS_RELATED_TO_THIS_CONTAINER/POD%% - ## @param catalogue.existingConfigmap The name of an existing ConfigMap with your custom configuration for catalogue - ## - existingConfigmap: - - ## @param catalogue.command Override default container command (useful when using custom images) - ## - command: ["/bin/bash"] - ## @param catalogue.args Override default container args (useful when using custom images) - ## - - args: ["-c","exec java $$ONBOARDING_JAVA_OPTS -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json -m iudx.onboarding.server.catalogue.CatalogueVerticle"] - ## @param catalogue.hostAliases catalogue pods host aliases - ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ - ## - hostAliases: [] - ## @param catalogue.podLabels Extra labels for catalogue pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - ## - podLabels: {} - ## @param catalogue.podAnnotations Annotations for catalogue pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - ## - ## @param catalogue.podAffinityPreset Pod affinity preset. Ignored if `catalogue.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAffinityPreset: "" - ## @param catalogue.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `catalogue.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAntiAffinityPreset: "" - ## Node catalogue.affinity preset - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity - ## - nodeAffinityPreset: - ## @param catalogue.nodeAffinityPreset.type Node affinity preset type. Ignored if `catalogue.affinity` is set. Allowed values: `soft` or `hard` - ## - type: "" - ## @param catalogue.nodeAffinityPreset.key Node label key to match. Ignored if `catalogue.affinity` is set - ## - key: "" - ## @param catalogue.nodeAffinityPreset.values Node label values to match. Ignored if `catalogue.affinity` is set - ## E.g. - ## values: - ## - e2e-az1 - ## - e2e-az2 - ## - values: [] - ## @param catalogue.affinity Affinity for catalogue pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - ## NOTE: `catalogue.podAffinityPreset`, `catalogue.podAntiAffinityPreset`, and `catalogue.nodeAffinityPreset` will be ignored when it's set - ## - affinity: {} - ## @param catalogue.nodeSelector Node labels for catalogue pods assignment - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: - - ## @param catalogue.tolerations Tolerations for catalogue pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - ## @param catalogue.updateStrategy.type catalogue statefulset strategy type - ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies - ## - updateStrategy: - ## StrategyType - ## Can be set to RollingUpdate or OnDelete - ## - ##type: RollingUpdate - ## @param catalogue.priorityClassName catalogue pods' priorityClassName - ## - priorityClassName: "" - ## @param catalogue.schedulerName Name of the k8s scheduler (other than default) for catalogue pods - ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ - ## - schedulerName: "" - ## @param catalogue.lifecycleHooks for the catalogue container(s) to automate configuration before or after startup - ## - lifecycleHooks: {} - ## @param catalogue.extraEnvVars Array with extra environment variables to add to catalogue nodes - ## e.g: - ## extraEnvVars: - ## - name: FOO - ## value: "bar" - ## - extraEnvVars: [] - ## @param catalogue.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for catalogue nodes - ## - extraEnvVarsCM: "onboarding-env" - ## @param catalogue.extraEnvVarsSecret Name of existing Secret containing extra env vars for catalogue nodes - ## - extraEnvVarsSecret: - ## @param catalogue.extraVolumes Optionally specify extra list of additional volumes for the catalogue pod(s) - ## - extraVolumes: - - name: onboarding-config - secret: - secretName: onboarding-config - - name: onboarding-tmp - emptyDir: - medium: Memory - ## @param apiServer.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the apiServer container(s) - ## - extraVolumeMounts: - - name: onboarding-config - mountPath: /usr/share/app/secrets/configs - - name: onboarding-tmp - mountPath: /tmp - - ## @param catalogue.sidecars Add additional sidecar containers to the catalogue pod(s) - ## e.g: - ## sidecars: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## ports: - ## - name: portname - ## containerPort: 1234 - ## - - sidecars: {} - ## @param catalogue.initContainers Add additional init containers to the catalogue pod(s) - ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - ## e.g: - ## initContainers: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## command: ['sh', '-c', 'echo "hello world"'] - ## - initContainers: {} - ## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - ## @param catalogue.autoscaling.enabled Enable Horizontal POD autoscaling for Apache - ## @param catalogue.autoscaling.minReplicas Minimum number of Apache replicas - ## @param catalogue.autoscaling.maxReplicas Maximum number of Apache replicas - ## @param catalogue.autoscaling.targetCPU Target CPU utilization percentage - ## @param catalogue.autoscaling.targetMemory Target Memory utilization percentage - - - autoscaling: - enabled: true - minReplicas: 1 - maxReplicas: 7 - targetCPU: 80 - #targetMemory: - -## @section token Parameters -token: - -## @param token.replicaCount Number of token replicas to deploy - ## - replicaCount: 1 - - ## Configure extra options for token containers' liveness and readiness probes - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes - ## @param token.livenessProbe.enabled Enable livenessProbe on token containers - ## @param token.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe - ## @param token.livenessProbe.periodSeconds Period seconds for livenessProbe - ## @param token.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe - ## @param token.livenessProbe.failureThreshold Failure threshold for livenessProbe - ## @param token.livenessProbe.successThreshold Success threshold for livenessProbe - ## @param token.livenessProbe.path Path for httpGet - ## - livenessProbe: - enabled: true - path: /metrics - initialDelaySeconds: 60 - periodSeconds: 60 - timeoutSeconds: 10 - #failureThreshold: 10 - #successThreshold: 10 - ## @param token.readinessProbe.enabled Enable readinessProbe on token containers - ## @param token.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe - ## @param token.readinessProbe.periodSeconds Period seconds for readinessProbe - ## @param token.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe - ## @param token.readinessProbe.failureThreshold Failure threshold for readinessProbe - ## @param token.readinessProbe.successThreshold Success threshold for readinessProbe - ## - readinessProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param token.startupProbe.enabled Enable startupProbe on token containers - ## @param token.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe - ## @param token.startupProbe.periodSeconds Period seconds for startupProbe - ## @param token.startupProbe.timeoutSeconds Timeout seconds for startupProbe - ## @param token.startupProbe.failureThreshold Failure threshold for startupProbe - ## @param token.startupProbe.successThreshold Success threshold for startupProbe - ## - startupProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param token.customLivenessProbe Custom livenessProbe that overrides the default one - ## - customLivenessProbe: {} - ## @param token.customReadinessProbe Custom readinessProbe that overrides the default one - ## - customReadinessProbe: {} - ## @param token.customStartupProbe Custom startupProbe that overrides the default one - ## - customStartupProbe: {} - - ## Configure Pods Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param token.podSecurityContext.enabled Enabled token pods' Security Context - ## @param token.podSecurityContext.fsGroup Set token pod's Security Context fsGroup - ## - podSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - fsGroup: 1001 - ## Configure Container Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param token.containerSecurityContext.enabled Enabled token containers' Security Context - ## @param token.containerSecurityContext.runAsUser Set token containers' Security Context runAsUser - ## @param token.containerSecurityContext.runAsNonRoot Set token containers' Security Context runAsNonRoot - ## - containerSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - #%%OTHER_PARAMETERS_RELATED_TO_THIS_CONTAINER/POD%% - ## @param token.existingConfigmap The name of an existing ConfigMap with your custom configuration for token - ## - existingConfigmap: - - ## @param token.command Override default container command (useful when using custom images) - ## - command: ["/bin/bash"] - ## @param token.args Override default container args (useful when using custom images) - ## - - args: ["-c","exec java $$ONBOARDING_JAVA_OPTS -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json -m iudx.onboarding.server.token.TokenVerticle"] - ## @param token.hostAliases token pods host aliases - ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ - ## - hostAliases: [] - ## @param token.podLabels Extra labels for token pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - ## - podLabels: {} - ## @param token.podAnnotations Annotations for token pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - ## - ## @param token.podAffinityPreset Pod affinity preset. Ignored if `token.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAffinityPreset: "" - ## @param token.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `token.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAntiAffinityPreset: "" - ## Node token.affinity preset - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity - ## - nodeAffinityPreset: - ## @param token.nodeAffinityPreset.type Node affinity preset type. Ignored if `token.affinity` is set. Allowed values: `soft` or `hard` - ## - type: "" - ## @param token.nodeAffinityPreset.key Node label key to match. Ignored if `token.affinity` is set - ## - key: "" - ## @param token.nodeAffinityPreset.values Node label values to match. Ignored if `token.affinity` is set - ## E.g. - ## values: - ## - e2e-az1 - ## - e2e-az2 - ## - values: [] - ## @param token.affinity Affinity for token pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - ## NOTE: `token.podAffinityPreset`, `token.podAntiAffinityPreset`, and `token.nodeAffinityPreset` will be ignored when it's set - ## - affinity: {} - ## @param token.nodeSelector Node labels for token pods assignment - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: - - ## @param token.tolerations Tolerations for token pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - ## @param token.updateStrategy.type token statefulset strategy type - ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies - ## - updateStrategy: - ## StrategyType - ## Can be set to RollingUpdate or OnDelete - ## - ##type: RollingUpdate - ## @param token.priorityClassName token pods' priorityClassName - ## - priorityClassName: "" - ## @param token.schedulerName Name of the k8s scheduler (other than default) for token pods - ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ - ## - schedulerName: "" - ## @param token.lifecycleHooks for the token container(s) to automate configuration before or after startup - ## - lifecycleHooks: {} - ## @param token.extraEnvVars Array with extra environment variables to add to token nodes - ## e.g: - ## extraEnvVars: - ## - name: FOO - ## value: "bar" - ## - extraEnvVars: [] - ## @param token.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for token nodes - ## - extraEnvVarsCM: "onboarding-env" - ## @param token.extraEnvVarsSecret Name of existing Secret containing extra env vars for token nodes - ## - extraEnvVarsSecret: - ## @param token.extraVolumes Optionally specify extra list of additional volumes for the token pod(s) - ## - extraVolumes: - - name: onboarding-config - secret: - secretName: onboarding-config - - name: onboarding-tmp - emptyDir: - medium: Memory - ## @param apiServer.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the apiServer container(s) - ## - extraVolumeMounts: - - name: onboarding-config - mountPath: /usr/share/app/secrets/configs - - name: onboarding-tmp - mountPath: /tmp - - ## @param token.sidecars Add additional sidecar containers to the token pod(s) - ## e.g: - ## sidecars: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## ports: - ## - name: portname - ## containerPort: 1234 - ## - - sidecars: {} - ## @param token.initContainers Add additional init containers to the token pod(s) - ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - ## e.g: - ## initContainers: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## command: ['sh', '-c', 'echo "hello world"'] - ## - initContainers: {} - ## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - ## @param token.autoscaling.enabled Enable Horizontal POD autoscaling for Apache - ## @param token.autoscaling.minReplicas Minimum number of Apache replicas - ## @param token.autoscaling.maxReplicas Maximum number of Apache replicas - ## @param token.autoscaling.targetCPU Target CPU utilization percentage - ## @param token.autoscaling.targetMemory Target Memory utilization percentage - autoscaling: - enabled: true - minReplicas: 1 - maxReplicas: 7 - targetCPU: 80 - #targetMemory: - -## @section resourceServer Parameters -resourceServer: -## @param resourceServer.replicaCount Number of resourceServer replicas to deploy - ## - replicaCount: 1 - - ## Configure extra options for resourceServer containers' liveness and readiness probes - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes - ## @param resourceServer.livenessProbe.enabled Enable livenessProbe on resourceServer containers - ## @param resourceServer.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe - ## @param resourceServer.livenessProbe.periodSeconds Period seconds for livenessProbe - ## @param resourceServer.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe - ## @param resourceServer.livenessProbe.failureThreshold Failure threshold for livenessProbe - ## @param resourceServer.livenessProbe.successThreshold Success threshold for livenessProbe - ## @param resourceServer.livenessProbe.path Path for httpGet - ## - livenessProbe: - enabled: true - path: /metrics - initialDelaySeconds: 60 - periodSeconds: 60 - timeoutSeconds: 10 - #failureThreshold: 10 - #successThreshold: 10 - ## @param resourceServer.readinessProbe.enabled Enable readinessProbe on resourceServer containers - ## @param resourceServer.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe - ## @param resourceServer.readinessProbe.periodSeconds Period seconds for readinessProbe - ## @param resourceServer.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe - ## @param resourceServer.readinessProbe.failureThreshold Failure threshold for readinessProbe - ## @param resourceServer.readinessProbe.successThreshold Success threshold for readinessProbe - ## - readinessProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param resourceServer.startupProbe.enabled Enable startupProbe on resourceServer containers - ## @param resourceServer.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe - ## @param resourceServer.startupProbe.periodSeconds Period seconds for startupProbe - ## @param resourceServer.startupProbe.timeoutSeconds Timeout seconds for startupProbe - ## @param resourceServer.startupProbe.failureThreshold Failure threshold for startupProbe - ## @param resourceServer.startupProbe.successThreshold Success threshold for startupProbe - ## - startupProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param resourceServer.customLivenessProbe Custom livenessProbe that overrides the default one - ## - customLivenessProbe: {} - ## @param resourceServer.customReadinessProbe Custom readinessProbe that overrides the default one - ## - customReadinessProbe: {} - ## @param resourceServer.customStartupProbe Custom startupProbe that overrides the default one - ## - customStartupProbe: {} - - ## Configure Pods Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param resourceServer.podSecurityContext.enabled Enabled resourceServer pods' Security Context - ## @param resourceServer.podSecurityContext.fsGroup Set resourceServer pod's Security Context fsGroup - ## - podSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - fsGroup: 1001 - ## Configure Container Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param resourceServer.containerSecurityContext.enabled Enabled resourceServer containers' Security Context - ## @param resourceServer.containerSecurityContext.runAsUser Set resourceServer containers' Security Context runAsUser - ## @param resourceServer.containerSecurityContext.runAsNonRoot Set resourceServer containers' Security Context runAsNonRoot - ## - containerSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - #%%OTHER_PARAMETERS_RELATED_TO_THIS_CONTAINER/POD%% - ## @param resourceServer.existingConfigmap The name of an existing ConfigMap with your custom configuration for resourceServer - ## - existingConfigmap: - - ## @param resourceServer.command Override default container command (useful when using custom images) - ## - command: ["/bin/bash"] - ## @param resourceServer.args Override default container args (useful when using custom images) - ## - - args: ["-c","exec java $$ONBOARDING_JAVA_OPTS -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json -m iudx.onboarding.server.resourceserver.ResourceServerVerticle"] - ## @param resourceServer.hostAliases resourceServer pods host aliases - ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ - ## - hostAliases: [] - ## @param resourceServer.podLabels Extra labels for resourceServer pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - ## - podLabels: {} - ## @param resourceServer.podAnnotations Annotations for resourceServer pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - ## - ## @param resourceServer.podAffinityPreset Pod affinity preset. Ignored if `resourceServer.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAffinityPreset: "" - ## @param resourceServer.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `resourceServer.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAntiAffinityPreset: "" - ## Node resourceServer.affinity preset - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity - ## - nodeAffinityPreset: - ## @param resourceServer.nodeAffinityPreset.type Node affinity preset type. Ignored if `resourceServer.affinity` is set. Allowed values: `soft` or `hard` - ## - type: "" - ## @param resourceServer.nodeAffinityPreset.key Node label key to match. Ignored if `resourceServer.affinity` is set - ## - key: "" - ## @param resourceServer.nodeAffinityPreset.values Node label values to match. Ignored if `resourceServer.affinity` is set - ## E.g. - ## values: - ## - e2e-az1 - ## - e2e-az2 - ## - values: [] - ## @param resourceServer.affinity Affinity for resourceServer pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - ## NOTE: `resourceServer.podAffinityPreset`, `resourceServer.podAntiAffinityPreset`, and `resourceServer.nodeAffinityPreset` will be ignored when it's set - ## - affinity: {} - ## @param resourceServer.nodeSelector Node labels for resourceServer pods assignment - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: - - ## @param resourceServer.tolerations Tolerations for resourceServer pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - ## @param resourceServer.updateStrategy.type resourceServer statefulset strategy type - ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies - ## - updateStrategy: - ## StrategyType - ## Can be set to RollingUpdate or OnDelete - ## - ##type: RollingUpdate - ## @param resourceServer.priorityClassName resourceServer pods' priorityClassName - ## - priorityClassName: "" - ## @param resourceServer.schedulerName Name of the k8s scheduler (other than default) for resourceServer pods - ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ - ## - schedulerName: "" - ## @param resourceServer.lifecycleHooks for the resourceServer container(s) to automate configuration before or after startup - ## - lifecycleHooks: {} - ## @param resourceServer.extraEnvVars Array with extra environment variables to add to resourceServer nodes - ## e.g: - ## extraEnvVars: - ## - name: FOO - ## value: "bar" - ## - extraEnvVars: [] - ## @param resourceServer.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for resourceServer nodes - ## - extraEnvVarsCM: "onboarding-env" - ## @param resourceServer.extraEnvVarsSecret Name of existing Secret containing extra env vars for resourceServer nodes - ## - extraEnvVarsSecret: - ## @param resourceServer.extraVolumes Optionally specify extra list of additional volumes for the resourceServer pod(s) - ## - extraVolumes: - - name: onboarding-config - secret: - secretName: onboarding-config - - name: onboarding-tmp - emptyDir: - medium: Memory - ## @param apiServer.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the apiServer container(s) - ## - extraVolumeMounts: - - name: onboarding-config - mountPath: /usr/share/app/secrets/configs - - name: onboarding-tmp - mountPath: /tmp - - ## @param resourceServer.sidecars Add additional sidecar containers to the resourceServer pod(s) - ## e.g: - ## sidecars: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## ports: - ## - name: portname - ## containerPort: 1234 - ## - - sidecars: {} - ## @param resourceServer.initContainers Add additional init containers to the resourceServer pod(s) - ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - ## e.g: - ## initContainers: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## command: ['sh', '-c', 'echo "hello world"'] - ## - initContainers: {} - ## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - ## @param resourceServer.autoscaling.enabled Enable Horizontal POD autoscaling for Apache - ## @param resourceServer.autoscaling.minReplicas Minimum number of Apache replicas - ## @param resourceServer.autoscaling.maxReplicas Maximum number of Apache replicas - ## @param resourceServer.autoscaling.targetCPU Target CPU utilization percentage - ## @param resourceServer.autoscaling.targetMemory Target Memory utilization percentage - autoscaling: - enabled: true - minReplicas: 1 - maxReplicas: 7 - targetCPU: 80 - #targetMemory: - -## @section ingestion Parameters -ingestion: -## @param ingestion.replicaCount Number of ingestion replicas to deploy - ## - replicaCount: 1 - - ## Configure extra options for ingestion containers' liveness and readiness probes - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes - ## @param ingestion.livenessProbe.enabled Enable livenessProbe on ingestion containers - ## @param ingestion.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe - ## @param ingestion.livenessProbe.periodSeconds Period seconds for livenessProbe - ## @param ingestion.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe - ## @param ingestion.livenessProbe.failureThreshold Failure threshold for livenessProbe - ## @param ingestion.livenessProbe.successThreshold Success threshold for livenessProbe - ## @param ingestion.livenessProbe.path Path for httpGet - ## - livenessProbe: - enabled: true - path: /metrics - initialDelaySeconds: 60 - periodSeconds: 60 - timeoutSeconds: 10 - #failureThreshold: 10 - #successThreshold: 10 - ## @param ingestion.readinessProbe.enabled Enable readinessProbe on ingestion containers - ## @param ingestion.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe - ## @param ingestion.readinessProbe.periodSeconds Period seconds for readinessProbe - ## @param ingestion.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe - ## @param ingestion.readinessProbe.failureThreshold Failure threshold for readinessProbe - ## @param ingestion.readinessProbe.successThreshold Success threshold for readinessProbe - ## - readinessProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param ingestion.startupProbe.enabled Enable startupProbe on ingestion containers - ## @param ingestion.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe - ## @param ingestion.startupProbe.periodSeconds Period seconds for startupProbe - ## @param ingestion.startupProbe.timeoutSeconds Timeout seconds for startupProbe - ## @param ingestion.startupProbe.failureThreshold Failure threshold for startupProbe - ## @param ingestion.startupProbe.successThreshold Success threshold for startupProbe - ## - startupProbe: - enabled: false - initialDelaySeconds: 10 - periodSeconds: 10 - timeoutSeconds: 10 - failureThreshold: 10 - successThreshold: 10 - ## @param ingestion.customLivenessProbe Custom livenessProbe that overrides the default one - ## - customLivenessProbe: {} - ## @param ingestion.customReadinessProbe Custom readinessProbe that overrides the default one - ## - customReadinessProbe: {} - ## @param ingestion.customStartupProbe Custom startupProbe that overrides the default one - ## - customStartupProbe: {} - - ## Configure Pods Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param ingestion.podSecurityContext.enabled Enabled ingestion pods' Security Context - ## @param ingestion.podSecurityContext.fsGroup Set ingestion pod's Security Context fsGroup - ## - podSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - fsGroup: 1001 - ## Configure Container Security Context - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param ingestion.containerSecurityContext.enabled Enabled ingestion containers' Security Context - ## @param ingestion.containerSecurityContext.runAsUser Set ingestion containers' Security Context runAsUser - ## @param ingestion.containerSecurityContext.runAsNonRoot Set ingestion containers' Security Context runAsNonRoot - ## - containerSecurityContext: - enabled: true - runAsNonRoot: true - runAsUser: 1001 - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - #%%OTHER_PARAMETERS_RELATED_TO_THIS_CONTAINER/POD%% - ## @param ingestion.existingConfigmap The name of an existing ConfigMap with your custom configuration for ingestion - ## - existingConfigmap: - - ## @param ingestion.command Override default container command (useful when using custom images) - ## - command: ["/bin/bash"] - ## @param ingestion.args Override default container args (useful when using custom images) - ## - - args: ["-c","exec java $$ONBOARDING_JAVA_OPTS -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json -m iudx.onboarding.server.ingestion.IngestionVerticle"] - ## @param ingestion.hostAliases ingestion pods host aliases - ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ - ## - hostAliases: [] - ## @param ingestion.podLabels Extra labels for ingestion pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - ## - podLabels: {} - ## @param ingestion.podAnnotations Annotations for ingestion pods - ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - ## - ## @param ingestion.podAffinityPreset Pod affinity preset. Ignored if `ingestion.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAffinityPreset: "" - ## @param ingestion.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `ingestion.affinity` is set. Allowed values: `soft` or `hard` - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - ## - podAntiAffinityPreset: "" - ## Node ingestion.affinity preset - ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity - ## - nodeAffinityPreset: - ## @param ingestion.nodeAffinityPreset.type Node affinity preset type. Ignored if `ingestion.affinity` is set. Allowed values: `soft` or `hard` - ## - type: "" - ## @param ingestion.nodeAffinityPreset.key Node label key to match. Ignored if `ingestion.affinity` is set - ## - key: "" - ## @param ingestion.nodeAffinityPreset.values Node label values to match. Ignored if `ingestion.affinity` is set - ## E.g. - ## values: - ## - e2e-az1 - ## - e2e-az2 - ## - values: [] - ## @param ingestion.affinity Affinity for ingestion pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - ## NOTE: `ingestion.podAffinityPreset`, `ingestion.podAntiAffinityPreset`, and `ingestion.nodeAffinityPreset` will be ignored when it's set - ## - affinity: {} - ## @param ingestion.nodeSelector Node labels for ingestion pods assignment - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: - - ## @param ingestion.tolerations Tolerations for ingestion pods assignment - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - ## @param ingestion.updateStrategy.type ingestion statefulset strategy type - ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies - ## - updateStrategy: - ## StrategyType - ## Can be set to RollingUpdate or OnDelete - ## - ##type: RollingUpdate - ## @param ingestion.priorityClassName ingestion pods' priorityClassName - ## - priorityClassName: "" - ## @param ingestion.schedulerName Name of the k8s scheduler (other than default) for ingestion pods - ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ - ## - schedulerName: "" - ## @param ingestion.lifecycleHooks for the ingestion container(s) to automate configuration before or after startup - ## - lifecycleHooks: {} - ## @param ingestion.extraEnvVars Array with extra environment variables to add to ingestion nodes - ## e.g: - ## extraEnvVars: - ## - name: FOO - ## value: "bar" - ## - extraEnvVars: [] - ## @param ingestion.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for ingestion nodes - ## - extraEnvVarsCM: "onboarding-env" - ## @param ingestion.extraEnvVarsSecret Name of existing Secret containing extra env vars for ingestion nodes - ## - extraEnvVarsSecret: - ## @param ingestion.extraVolumes Optionally specify extra list of additional volumes for the ingestion pod(s) - ## - extraVolumes: - - name: onboarding-config - secret: - secretName: onboarding-config - - name: onboarding-tmp - emptyDir: - medium: Memory - ## @param apiServer.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the apiServer container(s) - ## - extraVolumeMounts: - - name: onboarding-config - mountPath: /usr/share/app/secrets/configs - - name: onboarding-tmp - mountPath: /tmp - - ## @param ingestion.sidecars Add additional sidecar containers to the ingestion pod(s) - ## e.g: - ## sidecars: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## ports: - ## - name: portname - ## containerPort: 1234 - ## - - sidecars: {} - ## @param ingestion.initContainers Add additional init containers to the ingestion pod(s) - ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ - ## e.g: - ## initContainers: - ## - name: your-image-name - ## image: your-image - ## imagePullPolicy: Always - ## command: ['sh', '-c', 'echo "hello world"'] - ## - initContainers: {} - ## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - ## @param ingestion.autoscaling.enabled Enable Horizontal POD autoscaling for Apache - ## @param ingestion.autoscaling.minReplicas Minimum number of Apache replicas - ## @param ingestion.autoscaling.maxReplicas Maximum number of Apache replicas - ## @param ingestion.autoscaling.targetCPU Target CPU utilization percentage - ## @param ingestion.autoscaling.targetMemory Target Memory utilization percentage - autoscaling: - enabled: true - minReplicas: 1 - maxReplicas: 7 - targetCPU: 80 - #targetMemory: - - ## @section Traffic Exposure Parameters ## apiServer service parameters @@ -1495,4 +562,3 @@ serviceAccount: ## If not set and create is true, a name is generated using the common.names.fullname template ## name: "" - From 4d456482a650d4fd620689173b5fa6d2d2997fd2 Mon Sep 17 00:00:00 2001 From: manasa Date: Fri, 3 Jan 2025 17:35:01 +0530 Subject: [PATCH 4/8] Update templates directory files --- .../onboarding-server/templates/_helpers.tpl | 2 +- .../templates/deployment.yaml | 163 ++++++++++++++++++ .../onboarding-server/templates/hpa.yaml | 40 +++++ .../onboarding-server/templates/ingress.yaml | 61 +++++++ .../onboarding-server/templates/service.yaml | 37 ++++ 5 files changed, 302 insertions(+), 1 deletion(-) create mode 100644 K8s-deployment/Charts/onboarding-server/templates/deployment.yaml create mode 100644 K8s-deployment/Charts/onboarding-server/templates/hpa.yaml create mode 100644 K8s-deployment/Charts/onboarding-server/templates/ingress.yaml create mode 100644 K8s-deployment/Charts/onboarding-server/templates/service.yaml diff --git a/K8s-deployment/Charts/onboarding-server/templates/_helpers.tpl b/K8s-deployment/Charts/onboarding-server/templates/_helpers.tpl index 964fd44eb..77b9a506d 100644 --- a/K8s-deployment/Charts/onboarding-server/templates/_helpers.tpl +++ b/K8s-deployment/Charts/onboarding-server/templates/_helpers.tpl @@ -90,4 +90,4 @@ but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else {{- end -}} {{- end -}} {{- end -}} -{{- end -}} \ No newline at end of file +{{- end -}} diff --git a/K8s-deployment/Charts/onboarding-server/templates/deployment.yaml b/K8s-deployment/Charts/onboarding-server/templates/deployment.yaml new file mode 100644 index 000000000..2c9fbc6d7 --- /dev/null +++ b/K8s-deployment/Charts/onboarding-server/templates/deployment.yaml @@ -0,0 +1,163 @@ +{{- if .Values.onboardingServer.enabled -}} +apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} +kind: Deployment +metadata: + name: onboarding-server + labels: + app.kubernetes.io/component: onboardingServer + app: onboarding-server + {{- if .Values.commonLabels }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- end }} + {{- if .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +spec: + replicas: {{ .Values.onboardingServer.replicaCount }} + {{- if .Values.onboardingServer.updateStrategy }} + strategy: {{- toYaml .Values.onboardingServer.updateStrategy | nindent 4 }} + {{- end }} + selector: + matchLabels: + app: onboarding-server + template: + metadata: + {{- if .Values.podAnnotations }} + annotations: {{- include "common.tplvalues.render" (dict "value" .Values.podAnnotations "context" $) | nindent 8 }} + {{- end }} + labels: {{- include "common.labels.standard" . | nindent 8 }} + app: onboarding-server + app.kubernetes.io/component: onboardingServer + {{- if .Values.onboardingServer.podLabels }} + {{- include "common.tplvalues.render" (dict "value" .Values.onboardingServer.podLabels "context" $) | nindent 8 }} + {{- end }} + spec: + {{- if .Values.onboardingServer.nodeSelector }} + nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.onboardingServer.nodeSelector "context" $) | nindent 8 }} + {{- end }} + {{- if .Values.onboardingServer.tolerations }} + tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.onboardingServer.tolerations "context" .) | nindent 8 }} + {{- end }} + {{- if .Values.onboardingServer.priorityClassName }} + priorityClassName: {{ .Values.onboardingServer.priorityClassName | quote }} + {{- end }} + {{- if .Values.onboardingServer.schedulerName }} + schedulerName: {{ .Values.onboardingServer.schedulerName | quote }} + {{- end }} + {{- if .Values.onboardingServer.podSecurityContext.enabled }} + securityContext: {{- omit .Values.onboardingServer.podSecurityContext "enabled" | toYaml | nindent 8 }} + {{- end }} + initContainers: + {{- if .Values.onboardingServer.initContainers }} + {{- include "common.tplvalues.render" (dict "value" .Values.onboardingServer.initContainers "context" $) | nindent 8 }} + {{- end }} + containers: + - name: onboarding-server + image: {{ template "catalogue.image" . }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- if .Values.onboardingServer.containerSecurityContext.enabled }} + securityContext: {{- omit .Values.onboardingServer.containerSecurityContext "enabled" | toYaml | nindent 12 }} + {{- end }} + {{- if .Values.diagnosticMode.enabled }} + command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 12 }} + {{- else if .Values.onboardingServer.command }} + command: {{- include "common.tplvalues.render" (dict "value" .Values.onboardingServer.command "context" $) | nindent 12 }} + {{- end }} + {{- if .Values.diagnosticMode.enabled }} + args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 12 }} + {{- else if .Values.onboardingServer.args }} + args: [{{- range $index, $str := .Values.onboardingServer.args }}{{ if eq $index 0 }}{{- . | quote }} {{ else }},{{ . | quote }} {{- end }}{{- end }}] + {{- end }} + + + {{- if .Values.onboardingServer.resources }} + resources: {{- toYaml .Values.onboardingServer.resources | nindent 12 }} + {{- end }} + volumeMounts: + {{- if .Values.onboardingServer.extraVolumeMounts }} + {{- include "common.tplvalues.render" (dict "value" .Values.onboardingServer.extraVolumeMounts "context" $) | nindent 12 }} + {{- end }} + {{- if .Values.onboardingServer.sidecars }} + {{- include "common.tplvalues.render" ( dict "value" .Values.onboardingServer.sidecars "context" $) | nindent 8 }} + {{- end }} + ports: + - name: http + containerPort: {{ .Values.containerPorts.http }} + protocol: TCP + - name: hazelcast + containerPort: {{ .Values.containerPorts.hazelcast }} + protocol: TCP + - name: prometheus + containerPort: {{ .Values.containerPorts.prometheus }} + protocol: TCP + {{- if not .Values.diagnosticMode.enabled }} + {{- if .Values.onboardingServer.livenessProbe.enabled }} + livenessProbe: + httpGet: + path: {{ .Values.onboardingServer.livenessProbe.path }} + port: 9000 + initialDelaySeconds: {{ .Values.onboardingServer.livenessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.onboardingServer.livenessProbe.periodSeconds }} + timeoutSeconds: {{ .Values.onboardingServer.livenessProbe.timeoutSeconds }} + + {{- else if .Values.onboardingServer.customLivenessProbe }} + livenessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.onboardingServer.customLivenessProbe "context" $) | nindent 12 }} + {{- end }} + {{- if .Values.onboardingServer.readinessProbe.enabled }} + readinessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.onboardingServer.readinessProbe "enabled") "context" $) | nindent 12 }} + {{- else if .Values.onboardingServer.customReadinessProbe }} + readinessProbe: {{- include "common.tplvalues.render" (dict "value" .Values.onboardingServer.customReadinessProbe "context" $) | nindent 12 }} + {{- end }} + {{- if .Values.onboardingServer.startupProbe.enabled }} + startupProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.onboardingServer.startupProbe "enabled") "context" $) | nindent 12 }} + {{- else if .Values.onboardingServer.customStartupProbe }} + startupProbe: {{- include "common.tplvalues.render" (dict "value" .Values.onboardingServer.customStartupProbe "context" $) | nindent 12 }} + {{- end }} + {{- end }} + {{- if .Values.onboardingServer.lifecycleHooks }} + lifecycle: {{- include "common.tplvalues.render" (dict "value" .Values.onboardingServer.lifecycleHooks "context" $) | nindent 12 }} + {{- end }} + env: + - name: MY_POD_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + envFrom: + {{- if .Values.onboardingServer.extraEnvVarsCM }} + - configMapRef: + name: {{ include "common.tplvalues.render" (dict "value" .Values.onboardingServer.extraEnvVarsCM "context" $) }} + {{- end }} + {{- if .Values.onboardingServer.extraEnvVarsSecret }} + - secretRef: + name: {{ include "common.tplvalues.render" (dict "value" .Values.onboardingServer.extraEnvVarsSecret "context" $) }} + {{- end }} + {{- if .Values.onboardingServer.extraEnvVars }} + {{- include "common.tplvalues.render" (dict "value" .Values.onboardingServer.extraEnvVars "context" $) | nindent 12 }} + {{- end }} + {{- if .Values.serviceAccount.create }} + serviceAccountName: {{ template "catalogue.serviceAccountName" . }} + {{- end }} + {{- include "catalogue.imagePullSecrets" . | nindent 6 }} + + {{- if .Values.onboardingServer.hostAliases }} + hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.onboardingServer.hostAliases "context" $) | nindent 8 }} + {{- end }} + {{- if .Values.onboardingServer.affinity }} + affinity: {{- include "common.tplvalues.render" ( dict "value" .Values.onboardingServer.affinity "context" $) | nindent 8 }} + {{- else }} + affinity: + {{- if .Values.onboardingServer.podAffinityPreset}} + podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.onboardingServer.podAffinityPreset "component" "onboardingServer" "context" $) | nindent 10 }} + {{- end}} + {{- if .Values.onboardingServer.podAntiAffinityPreset }} + podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset "component" "onboardingServer" "context" $) | nindent 10 }} + {{- end}} + {{- if .Values.onboardingServer.nodeAffinityPreset.type }} + nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.onboardingServer.nodeAffinityPreset.type "key" .Values.onboardingServer.nodeAffinityPreset.key "values" .Values.catalogue.nodeAffinityPreset.values) | nindent 10 }} + {{- end }} + {{- end }} + volumes: + {{- if .Values.onboardingServer.extraVolumes }} + {{- include "common.tplvalues.render" (dict "value" .Values.onboardingServer.extraVolumes "context" $) | nindent 8 }} + {{- end }} +{{- end }} diff --git a/K8s-deployment/Charts/onboarding-server/templates/hpa.yaml b/K8s-deployment/Charts/onboarding-server/templates/hpa.yaml new file mode 100644 index 000000000..4b9b640af --- /dev/null +++ b/K8s-deployment/Charts/onboarding-server/templates/hpa.yaml @@ -0,0 +1,40 @@ +{{- if and .Values.onboardingServer.enabled .Values.onboardingServer.autoscaling.enabled }} +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: onboarding-server + labels: + app: onboarding-server + {{- include "common.labels.standard" . | nindent 4 }} + {{- if .Values.commonLabels }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- end }} + + {{- if .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +spec: + scaleTargetRef: + apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} + kind: Deployment + name: onboarding-server + minReplicas: {{ .Values.onboardingServer.autoscaling.minReplicas }} + maxReplicas: {{ .Values.onboardingServer.autoscaling.maxReplicas }} + metrics: + {{- if .Values.onboardingServer.autoscaling.targetCPU }} + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: {{ .Values.onboardingServer.autoscaling.targetCPU }} + {{- end }} + {{- if .Values.onboardingServer.autoscaling.targetMemory }} + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: {{ .Values.onboardingServer.autoscaling.targetMemory }} + {{- end }} +{{- end }} diff --git a/K8s-deployment/Charts/onboarding-server/templates/ingress.yaml b/K8s-deployment/Charts/onboarding-server/templates/ingress.yaml new file mode 100644 index 000000000..1321525d8 --- /dev/null +++ b/K8s-deployment/Charts/onboarding-server/templates/ingress.yaml @@ -0,0 +1,61 @@ +{{- if .Values.ingress.enabled }} +apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }} +kind: Ingress +metadata: + name: onboarding-server + labels: {{- include "common.labels.standard" . | nindent 4 }} + app.kubernetes.io/component: ingress + {{- if .Values.commonLabels }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- end }} + + annotations: + {{- if or .Values.ingress.annotations .Values.commonAnnotations }} + {{- if .Values.ingress.annotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.ingress.annotations "context" $) | nindent 4 }} + {{- end }} + {{- if .Values.commonAnnotations }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} + {{- end }} + nginx.ingress.kubernetes.io/server-snippet: | + add_header Referrer-Policy "no-referrer-when-downgrade" always; + add_header X-Frame-Options "deny" always; + add_header X-XSS-Protection "1; mode=block" always; + add_header X-Permitted-Cross-Domain-Policies "none" always; + add_header Cross-Origin-Embedder-Policy "require-corp" always; + add_header Cross-Origin-Resource-Policy "cross-origin" always; + nginx.ingress.kubernetes.io/configuration-snippet: | + internal; + rewrite ^ $original_uri break; +spec: + rules: + {{- if .Values.ingress.hostname }} + - host: {{ .Values.ingress.hostname }} + http: + paths: + {{- if .Values.ingress.extraPaths }} + {{- toYaml .Values.ingress.extraPaths | nindent 10 }} + {{- end }} + - path: {{ .Values.ingress.path }} + {{- if eq "true" (include "common.ingress.supportsPathType" .) }} + pathType: {{ .Values.ingress.pathType }} + {{- end }} + backend: {{- include "common.ingress.backend" (dict "serviceName" .Values.ingress.serviceName "servicePort" "http" "context" $) | nindent 14 }} + {{- end }} + {{- range .Values.ingress.extraHosts }} + - host: {{ .name | quote }} + http: + paths: + - path: {{ default "/" .path }} + {{- if eq "true" (include "common.ingress.supportsPathType" $) }} + pathType: {{ default "ImplementationSpecific" .pathType }} + {{- end }} + backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" $) "servicePort" "http" "context" $) | nindent 14 }} + {{- end }} + # As cos tls certficates covered in auth ingress + # tls: + # - hosts: + # - {{ .Values.ingress.hostname }} + # secretName: {{ .Values.ingress.tls.secretName }} +{{- end }} diff --git a/K8s-deployment/Charts/onboarding-server/templates/service.yaml b/K8s-deployment/Charts/onboarding-server/templates/service.yaml new file mode 100644 index 000000000..5225351c1 --- /dev/null +++ b/K8s-deployment/Charts/onboarding-server/templates/service.yaml @@ -0,0 +1,37 @@ +{{- if .Values.onboardingServer.enabled -}} +apiVersion: v1 +kind: Service +metadata: + name: onboarding-server + labels: {{- include "common.labels.standard" . | nindent 4 }} + app.kubernetes.io/component: service + {{- if .Values.commonLabels }} + {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} + {{- end }} + {{- if .Values.commonAnnotations }} + annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} + {{- end }} +spec: + type: {{ .Values.service.type }} + {{- if .Values.service.clusterIP }} + clusterIP: {{ .Values.service.clusterIP}} + {{- end }} + {{- if or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort") }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} + {{- end }} + {{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerSourceRanges)) }} + loadBalancerSourceRanges: {{ .Values.service.loadBalancerSourceRanges }} + {{- end }} + {{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerIP)) }} + loadBalancerIP: {{ .Values.service.loadBalancerIP }} + {{- end }} + ports: + - name: http + port: {{ .Values.service.ports}} + targetPort: {{ .Values.service.targetPorts }} + {{- if .Values.service.extraPorts }} + {{- include "common.tplvalues.render" (dict "value" .Values.service.extraPorts "context" $) | nindent 4 }} + {{- end }} + selector: + app: onboarding-server +{{- end }} From 38979ae6246904792ab836bf16824902d8c8167d Mon Sep 17 00:00:00 2001 From: manasa Date: Fri, 3 Jan 2025 17:35:19 +0530 Subject: [PATCH 5/8] Update README.md --- .../Charts/onboarding-server/README.md | 133 ------------------ 1 file changed, 133 deletions(-) diff --git a/K8s-deployment/Charts/onboarding-server/README.md b/K8s-deployment/Charts/onboarding-server/README.md index 029c88d8a..f9b5c5b4d 100644 --- a/K8s-deployment/Charts/onboarding-server/README.md +++ b/K8s-deployment/Charts/onboarding-server/README.md @@ -161,73 +161,6 @@ The command removes all the Kubernetes components associated with the chart and | `apiServer.autoscaling.targetMemory` | Target Memory utilization percentage | `nil` - -### catalogue Parameters - -| Name | Description | Value | -| ------------------------------------------------ | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `catalogue.replicaCount` | Number of catalogue replicas to deploy | `1` | -| `catalogue.livenessProbe.enabled` | Enable livenessProbe on catalogue containers | `true` | -| `catalogue.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `60` | -| `catalogue.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `60` | -| `catalogue.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `10` | -| `catalogue.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `10` | -| `catalogue.livenessProbe.successThreshold` | Success threshold for livenessProbe | `10` | -| `catalogue.livenessProbe.path` | Path for httpGet | `/metrics` | -| `catalogue.readinessProbe.enabled` | Enable readinessProbe on catalogue containers | `false` | -| `catalogue.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` | -| `catalogue.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` | -| `catalogue.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `10` | -| `catalogue.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `10` | -| `catalogue.readinessProbe.successThreshold` | Success threshold for readinessProbe | `10` | -| `catalogue.startupProbe.enabled` | Enable startupProbe on catalogue containers | `false` | -| `catalogue.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` | -| `catalogue.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | -| `catalogue.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `10` | -| `catalogue.startupProbe.failureThreshold` | Failure threshold for startupProbe | `10` | -| `catalogue.startupProbe.successThreshold` | Success threshold for startupProbe | `10` | -| `catalogue.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | -| `catalogue.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | -| `catalogue.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | -| `catalogue.resources.limits` | The resources limits for the catalogue containers | `nil` | -| `catalogue.resources.requests` | The requested resources for the catalogue containers | `nil` | -| `catalogue.podSecurityContext.enabled` | Enabled catalogue pods' Security Context | `false` | -| `catalogue.podSecurityContext.fsGroup` | Set catalogue pod's Security Context fsGroup | `1001` | -| `catalogue.containerSecurityContext.enabled` | Enabled catalogue containers' Security Context | `false` | -| `catalogue.containerSecurityContext.runAsUser` | Set catalogue containers' Security Context runAsUser | `1001` | -| `catalogue.containerSecurityContext.runAsNonRoot` | Set catalogue containers' Security Context runAsNonRoot | `true` | -| `catalogue.existingConfigmap` | The name of an existing ConfigMap with your custom configuration for catalogue | `nil` | -| `catalogue.command` | Override default container command (useful when using custom images) | `["/bin/bash"]` | -| `catalogue.args` | Override default container args (useful when using custom images) | `["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/one-verticle-configs/config-catalogue.json"]` | -| `catalogue.hostAliases` | catalogue pods host aliases | `[]` | -| `catalogue.podLabels` | Extra labels for catalogue pods | `{}` | -| `catalogue.podAffinityPreset` | Pod affinity preset. Ignored if `catalogue.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `catalogue.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `catalogue.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `catalogue.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `catalogue.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `catalogue.nodeAffinityPreset.key` | Node label key to match. Ignored if `catalogue.affinity` is set | `""` | -| `catalogue.nodeAffinityPreset.values` | Node label values to match. Ignored if `catalogue.affinity` is set | `[]` | -| `catalogue.affinity` | Affinity for catalogue pods assignment | `{}` | -| `catalogue.nodeSelector` | Node labels for catalogue pods assignment | `nil` | -| `catalogue.tolerations` | Tolerations for catalogue pods assignment | `[]` | -| `catalogue.updateStrategy.type` | catalogue statefulset strategy type | `RollingUpdate` | -| `catalogue.priorityClassName` | catalogue pods' priorityClassName | `""` | -| `catalogue.schedulerName` | Name of the k8s scheduler (other than default) for catalogue pods | `""` | -| `catalogue.lifecycleHooks` | for the catalogue container(s) to automate configuration before or after startup | `{}` | -| `catalogue.extraEnvVars` | Array with extra environment variables to add to catalogue nodes | `[]` | -| `catalogue.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for catalogue nodes | `cat-env` | -| `catalogue.extraEnvVarsSecret` | Name of existing Secret containing extra env vars for catalogue nodes | `nil` | -| `catalogue.extraVolumes` | Optionally specify extra list of additional volumes for the catalogue pod(s) | `nil` | -| `catalogue.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the catalogue container(s) | `nil` | -| `catalogue.sidecars` | Add additional sidecar containers to the catalogue pod(s) | `{}` | -| `catalogue.initContainers` | Add additional init containers to the catalogue pod(s) | `{}` | -| `catalogue.autoscaling.enabled` | Enable Horizontal POD autoscaling for Apache | `false` | -| `catalogue.autoscaling.minReplicas` | Minimum number of Apache replicas | `1` | -| `catalogue.autoscaling.maxReplicas` | Maximum number of Apache replicas | `5` | -| `catalogue.autoscaling.targetCPU` | Target CPU utilization percentage | `80` | -| `catalogue.autoscaling.targetMemory` | Target Memory utilization percentage | `nil` - - - ### Init Container Parameters | Name | Description | Value | @@ -242,70 +175,6 @@ The command removes all the Kubernetes components associated with the chart and | `volumePermissions.resources.requests` | The requested resources for the init container | `{}` | | `volumePermissions.containerSecurityContext.runAsUser` | Set init container's Security Context runAsUser | `0` | -### token Parameters - -| Name | Description | Value | -| ------------------------------------------------ | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `token.replicaCount` | Number of token replicas to deploy | `1` | -| `token.livenessProbe.enabled` | Enable livenessProbe on token containers | `true` | -| `token.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `60` | -| `token.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `60` | -| `token.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `10` | -| `token.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `10` | -| `token.livenessProbe.successThreshold` | Success threshold for livenessProbe | `10` | -| `token.livenessProbe.path` | Path for httpGet | `/metrics` | -| `token.readinessProbe.enabled` | Enable readinessProbe on token containers | `false` | -| `token.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` | -| `token.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` | -| `token.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `10` | -| `token.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `10` | -| `token.readinessProbe.successThreshold` | Success threshold for readinessProbe | `10` | -| `token.startupProbe.enabled` | Enable startupProbe on token containers | `false` | -| `token.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` | -| `token.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | -| `token.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `10` | -| `token.startupProbe.failureThreshold` | Failure threshold for startupProbe | `10` | -| `token.startupProbe.successThreshold` | Success threshold for startupProbe | `10` | -| `token.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | -| `token.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | -| `token.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | -| `token.resources.limits` | The resources limits for the token containers | `nil` | -| `token.resources.requests` | The requested resources for the token containers | `nil` | -| `token.podSecurityContext.enabled` | Enabled token pods' Security Context | `false` | -| `token.podSecurityContext.fsGroup` | Set token pod's Security Context fsGroup | `1001` | -| `token.containerSecurityContext.enabled` | Enabled token containers' Security Context | `false` | -| `token.containerSecurityContext.runAsUser` | Set token containers' Security Context runAsUser | `1001` | -| `token.containerSecurityContext.runAsNonRoot` | Set token containers' Security Context runAsNonRoot | `true` | -| `token.existingConfigmap` | The name of an existing ConfigMap with your custom configuration for token | `nil` | -| `token.command` | Override default container command (useful when using custom images) | `["/bin/bash"]` | -| `token.args` | Override default container args (useful when using custom images) | `["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/one-verticle-configs/config-token.json"]` | -| `token.hostAliases` | token pods host aliases | `[]` | -| `token.podLabels` | Extra labels for token pods | `{}` | -| `token.podAffinityPreset` | Pod affinity preset. Ignored if `token.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `token.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `token.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `token.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `token.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `token.nodeAffinityPreset.key` | Node label key to match. Ignored if `token.affinity` is set | `""` | -| `token.nodeAffinityPreset.values` | Node label values to match. Ignored if `token.affinity` is set | `[]` | -| `token.affinity` | Affinity for token pods assignment | `{}` | -| `token.nodeSelector` | Node labels for token pods assignment | `nil` | -| `token.tolerations` | Tolerations for token pods assignment | `[]` | -| `token.updateStrategy.type` | token statefulset strategy type | `RollingUpdate` | -| `token.priorityClassName` | token pods' priorityClassName | `""` | -| `token.schedulerName` | Name of the k8s scheduler (other than default) for token pods | `""` | -| `token.lifecycleHooks` | for the token container(s) to automate configuration before or after startup | `{}` | -| `token.extraEnvVars` | Array with extra environment variables to add to token nodes | `[]` | -| `token.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for token nodes | `cat-env` | -| `token.extraEnvVarsSecret` | Name of existing Secret containing extra env vars for token nodes | `nil` | -| `token.extraVolumes` | Optionally specify extra list of additional volumes for the token pod(s) | `nil` | -| `token.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the token container(s) | `nil` | -| `token.sidecars` | Add additional sidecar containers to the token pod(s) | `{}` | -| `token.initContainers` | Add additional init containers to the token pod(s) | `{}` | -| `token.autoscaling.enabled` | Enable Horizontal POD autoscaling for Apache | `false` | -| `token.autoscaling.minReplicas` | Minimum number of Apache replicas | `1` | -| `token.autoscaling.maxReplicas` | Maximum number of Apache replicas | `5` | -| `token.autoscaling.targetCPU` | Target CPU utilization percentage | `80` | -| `token.autoscaling.targetMemory` | Target Memory utilization percentage | `nil` - ### Other Parameters @@ -389,5 +258,3 @@ As an alternative, you can use of the preset configurations for pod affinity, po ## Troubleshooting Find more information about how to deal with common errors related to Helm charts in [this troubleshooting guide](https://docs.bitnami.com/general/how-to/troubleshoot-helm-chart-issues). - - From 7884944ad5a891f8bc4a55716ae63f10f719e2ad Mon Sep 17 00:00:00 2001 From: manasa Date: Fri, 3 Jan 2025 17:49:41 +0530 Subject: [PATCH 6/8] Update resource-values.yaml files with appropriate naming convention --- .../Charts/onboarding-server/example-aws-resource-values.yaml | 2 +- .../Charts/onboarding-server/example-azure-resource-values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/K8s-deployment/Charts/onboarding-server/example-aws-resource-values.yaml b/K8s-deployment/Charts/onboarding-server/example-aws-resource-values.yaml index f27db5173..0295ee9f6 100644 --- a/K8s-deployment/Charts/onboarding-server/example-aws-resource-values.yaml +++ b/K8s-deployment/Charts/onboarding-server/example-aws-resource-values.yaml @@ -9,7 +9,7 @@ ingress: ## @param apiServer.resources.limits The resources limits for the apiServer containers ## @param apiServer.resources.requests The requested resources for the apiServer containers ## -onboarding: +onboardingServer: enabled: true nodeSelector: node.kubernetes.io/instance-type: t3a.medium diff --git a/K8s-deployment/Charts/onboarding-server/example-azure-resource-values.yaml b/K8s-deployment/Charts/onboarding-server/example-azure-resource-values.yaml index 1a7365500..d525241eb 100644 --- a/K8s-deployment/Charts/onboarding-server/example-azure-resource-values.yaml +++ b/K8s-deployment/Charts/onboarding-server/example-azure-resource-values.yaml @@ -8,7 +8,7 @@ ingress: ## @param apiServer.resources.limits The resources limits for the apiServer containers ## @param apiServer.resources.requests The requested resources for the apiServer containers ## -onboarding: +onboardingServer: enabled: true nodeSelector: node.kubernetes.io/instance-type: Standard_B2s From 95b73e2f7aa07e23395d698fe4cf95d27a9e4cec Mon Sep 17 00:00:00 2001 From: manasa Date: Mon, 6 Jan 2025 15:49:10 +0530 Subject: [PATCH 7/8] Update all the files from the apiServer to onboardingServer --- .../example-aws-resource-values.yaml | 6 +- .../example-azure-resource-values.yaml | 6 +- .../onboarding-server/templates/_helpers.tpl | 4 +- .../Charts/onboarding-server/values.yaml | 140 +++++++++--------- 4 files changed, 78 insertions(+), 78 deletions(-) diff --git a/K8s-deployment/Charts/onboarding-server/example-aws-resource-values.yaml b/K8s-deployment/Charts/onboarding-server/example-aws-resource-values.yaml index 0295ee9f6..16eeab55c 100644 --- a/K8s-deployment/Charts/onboarding-server/example-aws-resource-values.yaml +++ b/K8s-deployment/Charts/onboarding-server/example-aws-resource-values.yaml @@ -4,10 +4,10 @@ ingress: cert-manager.io/cluster-issuer: "letsencrypt-staging" # use letsencrypt-prod if proper letsencrypt certs are required } -## apiServer resource requests and limits +## onboardingServer resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param apiServer.resources.limits The resources limits for the apiServer containers -## @param apiServer.resources.requests The requested resources for the apiServer containers +## @param onboardingServer.resources.limits The resources limits for the onboardingServer containers +## @param onboardingServer.resources.requests The requested resources for the onboardingServer containers ## onboardingServer: enabled: true diff --git a/K8s-deployment/Charts/onboarding-server/example-azure-resource-values.yaml b/K8s-deployment/Charts/onboarding-server/example-azure-resource-values.yaml index d525241eb..b5d207ff5 100644 --- a/K8s-deployment/Charts/onboarding-server/example-azure-resource-values.yaml +++ b/K8s-deployment/Charts/onboarding-server/example-azure-resource-values.yaml @@ -3,10 +3,10 @@ ingress: annotations: { cert-manager.io/cluster-issuer: "letsencrypt-staging" # use letsencrypt-prod if proper letsencrypt certs are required } -## apiServer resource requests and limits +## onboardingServer resource requests and limits ## ref: http://kubernetes.io/docs/user-guide/compute-resources/ -## @param apiServer.resources.limits The resources limits for the apiServer containers -## @param apiServer.resources.requests The requested resources for the apiServer containers +## @param onboardingServer.resources.limits The resources limits for the onboardingServer containers +## @param onboardingServer.resources.requests The requested resources for the onboardingServer containers ## onboardingServer: enabled: true diff --git a/K8s-deployment/Charts/onboarding-server/templates/_helpers.tpl b/K8s-deployment/Charts/onboarding-server/templates/_helpers.tpl index 77b9a506d..425db211f 100644 --- a/K8s-deployment/Charts/onboarding-server/templates/_helpers.tpl +++ b/K8s-deployment/Charts/onboarding-server/templates/_helpers.tpl @@ -45,8 +45,8 @@ Compile all warnings into a single message. */}} {{- define "catalogue.validateValues" -}} {{- $messages := list -}} -{{- $messages := append $messages (include "catalogue.apiServer.validateValues.foo" .) -}} -{{- $messages := append $messages (include "catalogue.apiServer.validateValues.bar" .) -}} +{{- $messages := append $messages (include "catalogue.onboardingServer.validateValues.foo" .) -}} +{{- $messages := append $messages (include "catalogue.onboardingServer.validateValues.bar" .) -}} {{- $messages := without $messages "" -}} {{- $message := join "\n" $messages -}} diff --git a/K8s-deployment/Charts/onboarding-server/values.yaml b/K8s-deployment/Charts/onboarding-server/values.yaml index 95370db9a..0f07e146c 100644 --- a/K8s-deployment/Charts/onboarding-server/values.yaml +++ b/K8s-deployment/Charts/onboarding-server/values.yaml @@ -108,22 +108,22 @@ podAnnotations: prometheus.io/port: "9000" prometheus.io/scrape: "true" -## @section apiServer Parameters +## @section onboardingServer Parameters onboardingServer: -## @param apiServer.replicaCount Number of apiServer replicas to deploy +## @param onboardingServer.replicaCount Number of onboardingServer replicas to deploy ## replicaCount: 1 - ## Configure extra options for apiServer containers' liveness and readiness probes + ## Configure extra options for onboardingServer containers' liveness and readiness probes ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes - ## @param apiServer.livenessProbe.enabled Enable livenessProbe on apiServer containers - ## @param apiServer.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe - ## @param apiServer.livenessProbe.periodSeconds Period seconds for livenessProbe - ## @param apiServer.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe - ## @param apiServer.livenessProbe.failureThreshold Failure threshold for livenessProbe - ## @param apiServer.livenessProbe.successThreshold Success threshold for livenessProbe - ## @param apiServer.livenessProbe.path Path for httpGet + ## @param onboardingServer.livenessProbe.enabled Enable livenessProbe on onboardingServer containers + ## @param onboardingServer.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe + ## @param onboardingServer.livenessProbe.periodSeconds Period seconds for livenessProbe + ## @param onboardingServer.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe + ## @param onboardingServer.livenessProbe.failureThreshold Failure threshold for livenessProbe + ## @param onboardingServer.livenessProbe.successThreshold Success threshold for livenessProbe + ## @param onboardingServer.livenessProbe.path Path for httpGet ## livenessProbe: enabled: true @@ -133,12 +133,12 @@ onboardingServer: timeoutSeconds: 10 #failureThreshold: 10 #successThreshold: 10 - ## @param apiServer.readinessProbe.enabled Enable readinessProbe on apiServer containers - ## @param apiServer.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe - ## @param apiServer.readinessProbe.periodSeconds Period seconds for readinessProbe - ## @param apiServer.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe - ## @param apiServer.readinessProbe.failureThreshold Failure threshold for readinessProbe - ## @param apiServer.readinessProbe.successThreshold Success threshold for readinessProbe + ## @param onboardingServer.readinessProbe.enabled Enable readinessProbe on onboardingServer containers + ## @param onboardingServer.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe + ## @param onboardingServer.readinessProbe.periodSeconds Period seconds for readinessProbe + ## @param onboardingServer.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe + ## @param onboardingServer.readinessProbe.failureThreshold Failure threshold for readinessProbe + ## @param onboardingServer.readinessProbe.successThreshold Success threshold for readinessProbe ## readinessProbe: enabled: false @@ -147,12 +147,12 @@ onboardingServer: timeoutSeconds: 10 failureThreshold: 10 successThreshold: 10 - ## @param apiServer.startupProbe.enabled Enable startupProbe on apiServer containers - ## @param apiServer.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe - ## @param apiServer.startupProbe.periodSeconds Period seconds for startupProbe - ## @param apiServer.startupProbe.timeoutSeconds Timeout seconds for startupProbe - ## @param apiServer.startupProbe.failureThreshold Failure threshold for startupProbe - ## @param apiServer.startupProbe.successThreshold Success threshold for startupProbe + ## @param onboardingServer.startupProbe.enabled Enable startupProbe on onboardingServer containers + ## @param onboardingServer.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe + ## @param onboardingServer.startupProbe.periodSeconds Period seconds for startupProbe + ## @param onboardingServer.startupProbe.timeoutSeconds Timeout seconds for startupProbe + ## @param onboardingServer.startupProbe.failureThreshold Failure threshold for startupProbe + ## @param onboardingServer.startupProbe.successThreshold Success threshold for startupProbe ## startupProbe: enabled: false @@ -161,20 +161,20 @@ onboardingServer: timeoutSeconds: 10 failureThreshold: 10 successThreshold: 10 - ## @param apiServer.customLivenessProbe Custom livenessProbe that overrides the default one + ## @param onboardingServer.customLivenessProbe Custom livenessProbe that overrides the default one ## customLivenessProbe: {} - ## @param apiServer.customReadinessProbe Custom readinessProbe that overrides the default one + ## @param onboardingServer.customReadinessProbe Custom readinessProbe that overrides the default one ## customReadinessProbe: {} - ## @param apiServer.customStartupProbe Custom startupProbe that overrides the default one + ## @param onboardingServer.customStartupProbe Custom startupProbe that overrides the default one ## customStartupProbe: {} ## Configure Pods Security Context ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param apiServer.podSecurityContext.enabled Enabled apiServer pods' Security Context - ## @param apiServer.podSecurityContext.fsGroup Set apiServer pod's Security Context fsGroup + ## @param onboardingServer.podSecurityContext.enabled Enabled onboardingServer pods' Security Context + ## @param onboardingServer.podSecurityContext.fsGroup Set onboardingServer pod's Security Context fsGroup ## podSecurityContext: enabled: true @@ -183,9 +183,9 @@ onboardingServer: fsGroup: 1001 ## Configure Container Security Context ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod - ## @param apiServer.containerSecurityContext.enabled Enabled apiServer containers' Security Context - ## @param apiServer.containerSecurityContext.runAsUser Set apiServer containers' Security Context runAsUser - ## @param apiServer.containerSecurityContext.runAsNonRoot Set apiServer containers' Security Context runAsNonRoot + ## @param onboardingServer.containerSecurityContext.enabled Enabled onboardingServer containers' Security Context + ## @param onboardingServer.containerSecurityContext.runAsUser Set onboardingServer containers' Security Context runAsUser + ## @param onboardingServer.containerSecurityContext.runAsNonRoot Set onboardingServer containers' Security Context runAsNonRoot ## containerSecurityContext: enabled: true @@ -197,68 +197,68 @@ onboardingServer: - ALL readOnlyRootFilesystem: true #%%OTHER_PARAMETERS_RELATED_TO_THIS_CONTAINER/POD%% - ## @param apiServer.existingConfigmap The name of an existing ConfigMap with your custom configuration for apiServer + ## @param onboardingServer.existingConfigmap The name of an existing ConfigMap with your custom configuration for onboardingServer ## existingConfigmap: - ## @param apiServer.command Override default container command (useful when using custom images) + ## @param onboardingServer.command Override default container command (useful when using custom images) ## command: ["/bin/bash"] - ## @param apiServer.args Override default container args (useful when using custom images) + ## @param onboardingServer.args Override default container args (useful when using custom images) ## args: ["-c","exec java $$ONBOARDING_JAVA_OPTS -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/configs/config.json"] - ## @param apiServer.hostAliases apiServer pods host aliases + ## @param onboardingServer.hostAliases onboardingServer pods host aliases ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/ ## hostAliases: [] - ## @param apiServer.podLabels Extra labels for apiServer pods + ## @param onboardingServer.podLabels Extra labels for onboardingServer pods ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ ## podLabels: {} - ## @param apiServer.podAnnotations Annotations for apiServer pods + ## @param onboardingServer.podAnnotations Annotations for onboardingServer pods ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ ## - ## @param apiServer.podAffinityPreset Pod affinity preset. Ignored if `apiServer.affinity` is set. Allowed values: `soft` or `hard` + ## @param onboardingServer.podAffinityPreset Pod affinity preset. Ignored if `onboardingServer.affinity` is set. Allowed values: `soft` or `hard` ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity ## podAffinityPreset: "" - ## @param apiServer.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `apiServer.affinity` is set. Allowed values: `soft` or `hard` + ## @param onboardingServer.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `onboardingServer.affinity` is set. Allowed values: `soft` or `hard` ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity ## podAntiAffinityPreset: "" - ## Node apiServer.affinity preset + ## Node onboardingServer.affinity preset ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity ## nodeAffinityPreset: - ## @param apiServer.nodeAffinityPreset.type Node affinity preset type. Ignored if `apiServer.affinity` is set. Allowed values: `soft` or `hard` + ## @param onboardingServer.nodeAffinityPreset.type Node affinity preset type. Ignored if `onboardingServer.affinity` is set. Allowed values: `soft` or `hard` ## type: "" - ## @param apiServer.nodeAffinityPreset.key Node label key to match. Ignored if `apiServer.affinity` is set + ## @param onboardingServer.nodeAffinityPreset.key Node label key to match. Ignored if `onboardingServer.affinity` is set ## key: "" - ## @param apiServer.nodeAffinityPreset.values Node label values to match. Ignored if `apiServer.affinity` is set + ## @param onboardingServer.nodeAffinityPreset.values Node label values to match. Ignored if `onboardingServer.affinity` is set ## E.g. ## values: ## - e2e-az1 ## - e2e-az2 ## values: [] - ## @param apiServer.affinity Affinity for apiServer pods assignment + ## @param onboardingServer.affinity Affinity for onboardingServer pods assignment ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - ## NOTE: `apiServer.podAffinityPreset`, `apiServer.podAntiAffinityPreset`, and `apiServer.nodeAffinityPreset` will be ignored when it's set + ## NOTE: `onboardingServer.podAffinityPreset`, `onboardingServer.podAntiAffinityPreset`, and `onboardingServer.nodeAffinityPreset` will be ignored when it's set ## affinity: {} - ## @param apiServer.nodeSelector Node labels for apiServer pods assignment + ## @param onboardingServer.nodeSelector Node labels for onboardingServer pods assignment ## ref: https://kubernetes.io/docs/user-guide/node-selection/ ## nodeSelector: - ## @param apiServer.tolerations Tolerations for apiServer pods assignment + ## @param onboardingServer.tolerations Tolerations for onboardingServer pods assignment ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ ## tolerations: [] - ## @param apiServer.updateStrategy.type apiServer statefulset strategy type + ## @param onboardingServer.updateStrategy.type onboardingServer statefulset strategy type ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies ## updateStrategy: @@ -266,30 +266,30 @@ onboardingServer: ## Can be set to RollingUpdate or OnDelete ## ##type: RollingUpdate - ## @param apiServer.priorityClassName apiServer pods' priorityClassName + ## @param onboardingServer.priorityClassName onboardingServer pods' priorityClassName ## priorityClassName: "" - ## @param apiServer.schedulerName Name of the k8s scheduler (other than default) for apiServer pods + ## @param onboardingServer.schedulerName Name of the k8s scheduler (other than default) for onboardingServer pods ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ ## schedulerName: "" - ## @param apiServer.lifecycleHooks for the apiServer container(s) to automate configuration before or after startup + ## @param onboardingServer.lifecycleHooks for the onboardingServer container(s) to automate configuration before or after startup ## lifecycleHooks: {} - ## @param apiServer.extraEnvVars Array with extra environment variables to add to apiServer nodes + ## @param onboardingServer.extraEnvVars Array with extra environment variables to add to onboardingServer nodes ## e.g: ## extraEnvVars: ## - name: FOO ## value: "bar" ## extraEnvVars: [] - ## @param apiServer.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for apiServer nodes + ## @param onboardingServer.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for onboardingServer nodes ## extraEnvVarsCM: "onboarding-env" - ## @param apiServer.extraEnvVarsSecret Name of existing Secret containing extra env vars for apiServer nodes + ## @param onboardingServer.extraEnvVarsSecret Name of existing Secret containing extra env vars for onboardingServer nodes ## extraEnvVarsSecret: - ## @param apiServer.extraVolumes Optionally specify extra list of additional volumes for the apiServer pod(s) + ## @param onboardingServer.extraVolumes Optionally specify extra list of additional volumes for the onboardingServer pod(s) ## extraVolumes: - name: onboarding-config @@ -298,7 +298,7 @@ onboardingServer: - name: onboarding-tmp emptyDir: medium: Memory - ## @param apiServer.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the apiServer container(s) + ## @param onboardingServer.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the onboardingServer container(s) ## extraVolumeMounts: - name: onboarding-config @@ -306,7 +306,7 @@ onboardingServer: - name: onboarding-tmp mountPath: /tmp - ## @param apiServer.sidecars Add additional sidecar containers to the apiServer pod(s) + ## @param onboardingServer.sidecars Add additional sidecar containers to the onboardingServer pod(s) ## e.g: ## sidecars: ## - name: your-image-name @@ -318,7 +318,7 @@ onboardingServer: ## sidecars: {} - ## @param apiServer.initContainers Add additional init containers to the apiServer pod(s) + ## @param onboardingServer.initContainers Add additional init containers to the onboardingServer pod(s) ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ ## e.g: ## initContainers: @@ -329,11 +329,11 @@ onboardingServer: ## initContainers: {} ## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - ## @param apiServer.autoscaling.enabled Enable Horizontal POD autoscaling for Apache - ## @param apiServer.autoscaling.minReplicas Minimum number of Apache replicas - ## @param apiServer.autoscaling.maxReplicas Maximum number of Apache replicas - ## @param apiServer.autoscaling.targetCPU Target CPU utilization percentage - ## @param apiServer.autoscaling.targetMemory Target Memory utilization percentage + ## @param onboardingServer.autoscaling.enabled Enable Horizontal POD autoscaling for Apache + ## @param onboardingServer.autoscaling.minReplicas Minimum number of Apache replicas + ## @param onboardingServer.autoscaling.maxReplicas Maximum number of Apache replicas + ## @param onboardingServer.autoscaling.targetCPU Target CPU utilization percentage + ## @param onboardingServer.autoscaling.targetMemory Target Memory utilization percentage autoscaling: @@ -345,7 +345,7 @@ onboardingServer: ## @section Traffic Exposure Parameters -## apiServer service parameters +## onboardingServer service parameters ## service: ## @param service.type ApiServer service type @@ -366,32 +366,32 @@ service: ## clusterIP: None ## clusterIP: - ## @param service.loadBalancerIP apiServer service Load Balancer IP + ## @param service.loadBalancerIP onboardingServer service Load Balancer IP ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer ## loadBalancerIP: - ## @param service.loadBalancerSourceRanges apiServer service Load Balancer sources + ## @param service.loadBalancerSourceRanges onboardingServer service Load Balancer sources ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service ## e.g: ## loadBalancerSourceRanges: ## - 10.10.10.0/24 ## loadBalancerSourceRanges: [] - ## @param service.externalTrafficPolicy apiServer service external traffic policy + ## @param service.externalTrafficPolicy onboardingServer service external traffic policy ## ref http://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip ## externalTrafficPolicy: Cluster - ## @param service.annotations Additional custom annotations for apiServer service + ## @param service.annotations Additional custom annotations for onboardingServer service ## annotations: {} - ## @param service.extraPorts Extra ports to expose in apiServer service (normally used with the `sidecars` value) + ## @param service.extraPorts Extra ports to expose in onboardingServer service (normally used with the `sidecars` value) ## extraPorts: [] -## apiServer ingress parameters +## onboardingServer ingress parameters ## ref: http://kubernetes.io/docs/user-guide/ingress/ ## ingress: - ## @param ingress.enabled Enable ingress record generation for apiServer + ## @param ingress.enabled Enable ingress record generation for onboardingServer ## enabled: true ## @param ingress.pathType Ingress path type From 1ba712fcef19fa0c24bd0f8ca667f26fcb7dc2d8 Mon Sep 17 00:00:00 2001 From: manasa Date: Thu, 9 Jan 2025 12:27:46 +0530 Subject: [PATCH 8/8] Update README.md --- .../Charts/onboarding-server/README.md | 120 +++++++++--------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/K8s-deployment/Charts/onboarding-server/README.md b/K8s-deployment/Charts/onboarding-server/README.md index f9b5c5b4d..3b4ae2e5d 100644 --- a/K8s-deployment/Charts/onboarding-server/README.md +++ b/K8s-deployment/Charts/onboarding-server/README.md @@ -96,69 +96,69 @@ The command removes all the Kubernetes components associated with the chart and | `containerPorts.prometheus` | Prometheus container port | `9000` | | `podAnnotations` | Annotations for pods | `nil` | -### apiServer Parameters +### onboardingServer Parameters | Name | Description | Value | | ------------------------------------------------ | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `apiServer.replicaCount` | Number of apiServer replicas to deploy | `1` | -| `apiServer.livenessProbe.enabled` | Enable livenessProbe on apiServer containers | `true` | -| `apiServer.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `60` | -| `apiServer.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `60` | -| `apiServer.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `10` | -| `apiServer.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `10` | -| `apiServer.livenessProbe.successThreshold` | Success threshold for livenessProbe | `10` | -| `apiServer.livenessProbe.path` | Path for httpGet | `/metrics` | -| `apiServer.readinessProbe.enabled` | Enable readinessProbe on apiServer containers | `false` | -| `apiServer.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` | -| `apiServer.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` | -| `apiServer.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `10` | -| `apiServer.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `10` | -| `apiServer.readinessProbe.successThreshold` | Success threshold for readinessProbe | `10` | -| `apiServer.startupProbe.enabled` | Enable startupProbe on apiServer containers | `false` | -| `apiServer.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` | -| `apiServer.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | -| `apiServer.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `10` | -| `apiServer.startupProbe.failureThreshold` | Failure threshold for startupProbe | `10` | -| `apiServer.startupProbe.successThreshold` | Success threshold for startupProbe | `10` | -| `apiServer.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | -| `apiServer.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | -| `apiServer.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | -| `apiServer.resources.limits` | The resources limits for the apiServer containers | `nil` | -| `apiServer.resources.requests` | The requested resources for the apiServer containers | `nil` | -| `apiServer.podSecurityContext.enabled` | Enabled apiServer pods' Security Context | `false` | -| `apiServer.podSecurityContext.fsGroup` | Set apiServer pod's Security Context fsGroup | `1001` | -| `apiServer.containerSecurityContext.enabled` | Enabled apiServer containers' Security Context | `false` | -| `apiServer.containerSecurityContext.runAsUser` | Set apiServer containers' Security Context runAsUser | `1001` | -| `apiServer.containerSecurityContext.runAsNonRoot` | Set apiServer containers' Security Context runAsNonRoot | `true` | -| `apiServer.existingConfigmap` | The name of an existing ConfigMap with your custom configuration for apiServer | `nil` | -| `apiServer.command` | Override default container command (useful when using custom images) | `["/bin/bash"]` | -| `apiServer.args` | Override default container args (useful when using custom images) | `["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/one-verticle-configs/config-apiServer.json"]` | -| `apiServer.hostAliases` | apiServer pods host aliases | `[]` | -| `apiServer.podLabels` | Extra labels for apiServer pods | `{}` | -| `apiServer.podAffinityPreset` | Pod affinity preset. Ignored if `apiServer.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `apiServer.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `apiServer.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `apiServer.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `apiServer.affinity` is set. Allowed values: `soft` or `hard` | `""` | -| `apiServer.nodeAffinityPreset.key` | Node label key to match. Ignored if `apiServer.affinity` is set | `""` | -| `apiServer.nodeAffinityPreset.values` | Node label values to match. Ignored if `apiServer.affinity` is set | `[]` | -| `apiServer.affinity` | Affinity for apiServer pods assignment | `{}` | -| `apiServer.nodeSelector` | Node labels for apiServer pods assignment | `nil` | -| `apiServer.tolerations` | Tolerations for apiServer pods assignment | `[]` | -| `apiServer.updateStrategy.type` | apiServer statefulset strategy type | `RollingUpdate` | -| `apiServer.priorityClassName` | apiServer pods' priorityClassName | `""` | -| `apiServer.schedulerName` | Name of the k8s scheduler (other than default) for apiServer pods | `""` | -| `apiServer.lifecycleHooks` | for the apiServer container(s) to automate configuration before or after startup | `{}` | -| `apiServer.extraEnvVars` | Array with extra environment variables to add to apiServer nodes | `[]` | -| `apiServer.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for apiServer nodes | `cat-env` | -| `apiServer.extraEnvVarsSecret` | Name of existing Secret containing extra env vars for apiServer nodes | `nil` | -| `apiServer.extraVolumes` | Optionally specify extra list of additional volumes for the apiServer pod(s) | `nil` | -| `apiServer.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the apiServer container(s) | `nil` | -| `apiServer.sidecars` | Add additional sidecar containers to the apiServer pod(s) | `{}` | -| `apiServer.initContainers` | Add additional init containers to the apiServer pod(s) | `{}` | -| `apiServer.autoscaling.enabled` | Enable Horizontal POD autoscaling for Apache | `false` | -| `apiServer.autoscaling.minReplicas` | Minimum number of Apache replicas | `1` | -| `apiServer.autoscaling.maxReplicas` | Maximum number of Apache replicas | `5` | -| `apiServer.autoscaling.targetCPU` | Target CPU utilization percentage | `80` | -| `apiServer.autoscaling.targetMemory` | Target Memory utilization percentage | `nil` +| `onboardingServer.replicaCount` | Number of onboardingServer replicas to deploy | `1` | +| `onboardingServer.livenessProbe.enabled` | Enable livenessProbe on onboardingServer containers | `true` | +| `onboardingServer.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `60` | +| `onboardingServer.livenessProbe.periodSeconds` | Period seconds for livenessProbe | `60` | +| `onboardingServer.livenessProbe.timeoutSeconds` | Timeout seconds for livenessProbe | `10` | +| `onboardingServer.livenessProbe.failureThreshold` | Failure threshold for livenessProbe | `10` | +| `onboardingServer.livenessProbe.successThreshold` | Success threshold for livenessProbe | `10` | +| `onboardingServer.livenessProbe.path` | Path for httpGet | `/metrics` | +| `onboardingServer.readinessProbe.enabled` | Enable readinessProbe on onboardingServer containers | `false` | +| `onboardingServer.readinessProbe.initialDelaySeconds` | Initial delay seconds for readinessProbe | `10` | +| `onboardingServer.readinessProbe.periodSeconds` | Period seconds for readinessProbe | `10` | +| `onboardingServer.readinessProbe.timeoutSeconds` | Timeout seconds for readinessProbe | `10` | +| `onboardingServer.readinessProbe.failureThreshold` | Failure threshold for readinessProbe | `10` | +| `onboardingServer.readinessProbe.successThreshold` | Success threshold for readinessProbe | `10` | +| `onboardingServer.startupProbe.enabled` | Enable startupProbe on onboardingServer containers | `false` | +| `onboardingServer.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` | +| `onboardingServer.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` | +| `onboardingServer.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `10` | +| `onboardingServer.startupProbe.failureThreshold` | Failure threshold for startupProbe | `10` | +| `onboardingServer.startupProbe.successThreshold` | Success threshold for startupProbe | `10` | +| `onboardingServer.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` | +| `onboardingServer.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` | +| `onboardingServer.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` | +| `onboardingServer.resources.limits` | The resources limits for the onboardingServer containers | `nil` | +| `onboardingServer.resources.requests` | The requested resources for the onboardingServer containers | `nil` | +| `onboardingServer.podSecurityContext.enabled` | Enabled onboardingServer pods' Security Context | `false` | +| `onboardingServer.podSecurityContext.fsGroup` | Set onboardingServer pod's Security Context fsGroup | `1001` | +| `onboardingServer.containerSecurityContext.enabled` | Enabled onboardingServer containers' Security Context | `false` | +| `onboardingServer.containerSecurityContext.runAsUser` | Set onboardingServer containers' Security Context runAsUser | `1001` | +| `onboardingServer.containerSecurityContext.runAsNonRoot` | Set onboardingServer containers' Security Context runAsNonRoot | `true` | +| `onboardingServer.existingConfigmap` | The name of an existing ConfigMap with your custom configuration for onboardingServer | `nil` | +| `onboardingServer.command` | Override default container command (useful when using custom images) | `["/bin/bash"]` | +| `onboardingServer.args` | Override default container args (useful when using custom images) | `["-c","exec java -Xmx1024m -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.Log4j2LogDelegateFactory -jar ./fatjar.jar --host $$MY_POD_IP -c secrets/one-verticle-configs/config-onboardingServer.json"]` | +| `onboardingServer.hostAliases` | onboardingServer pods host aliases | `[]` | +| `onboardingServer.podLabels` | Extra labels for onboardingServer pods | `{}` | +| `onboardingServer.podAffinityPreset` | Pod affinity preset. Ignored if `onboardingServer.affinity` is set. Allowed values: `soft` or `hard` | `""` | +| `onboardingServer.podAntiAffinityPreset` | Pod anti-affinity preset. Ignored if `onboardingServer.affinity` is set. Allowed values: `soft` or `hard` | `""` | +| `onboardingServer.nodeAffinityPreset.type` | Node affinity preset type. Ignored if `onboardingServer.affinity` is set. Allowed values: `soft` or `hard` | `""` | +| `onboardingServer.nodeAffinityPreset.key` | Node label key to match. Ignored if `onboardingServer.affinity` is set | `""` | +| `onboardingServer.nodeAffinityPreset.values` | Node label values to match. Ignored if `onboardingServer.affinity` is set | `[]` | +| `onboardingServer.affinity` | Affinity for onboardingServer pods assignment | `{}` | +| `onboardingServer.nodeSelector` | Node labels for onboardingServer pods assignment | `nil` | +| `onboardingServer.tolerations` | Tolerations for onboardingServer pods assignment | `[]` | +| `onboardingServer.updateStrategy.type` | onboardingServer statefulset strategy type | `RollingUpdate` | +| `onboardingServer.priorityClassName` | onboardingServer pods' priorityClassName | `""` | +| `onboardingServer.schedulerName` | Name of the k8s scheduler (other than default) for onboardingServer pods | `""` | +| `onboardingServer.lifecycleHooks` | for the onboardingServer container(s) to automate configuration before or after startup | `{}` | +| `onboardingServer.extraEnvVars` | Array with extra environment variables to add to onboardingServer nodes | `[]` | +| `onboardingServer.extraEnvVarsCM` | Name of existing ConfigMap containing extra env vars for onboardingServer nodes | `cat-env` | +| `onboardingServer.extraEnvVarsSecret` | Name of existing Secret containing extra env vars for onboardingServer nodes | `nil` | +| `onboardingServer.extraVolumes` | Optionally specify extra list of additional volumes for the onboardingServer pod(s) | `nil` | +| `onboardingServer.extraVolumeMounts` | Optionally specify extra list of additional volumeMounts for the onboardingServer container(s) | `nil` | +| `onboardingServer.sidecars` | Add additional sidecar containers to the onboardingServer pod(s) | `{}` | +| `onboardingServer.initContainers` | Add additional init containers to the onboardingServer pod(s) | `{}` | +| `onboardingServer.autoscaling.enabled` | Enable Horizontal POD autoscaling for Apache | `false` | +| `onboardingServer.autoscaling.minReplicas` | Minimum number of Apache replicas | `1` | +| `onboardingServer.autoscaling.maxReplicas` | Maximum number of Apache replicas | `5` | +| `onboardingServer.autoscaling.targetCPU` | Target CPU utilization percentage | `80` | +| `onboardingServer.autoscaling.targetMemory` | Target Memory utilization percentage | `nil` ### Init Container Parameters