From cab25fed7f9fb8f772784786ae6169bdc5bedeb2 Mon Sep 17 00:00:00 2001 From: adkumar1 Date: Tue, 5 Sep 2023 13:11:43 +0530 Subject: [PATCH 1/2] removed default values --- charts/orchestrator/values-int.yaml | 134 ++++++++++++++++++++++++++++ charts/orchestrator/values.yaml | 18 ++-- 2 files changed, 141 insertions(+), 11 deletions(-) create mode 100644 charts/orchestrator/values-int.yaml diff --git a/charts/orchestrator/values-int.yaml b/charts/orchestrator/values-int.yaml new file mode 100644 index 00000000..29dc4ec1 --- /dev/null +++ b/charts/orchestrator/values-int.yaml @@ -0,0 +1,134 @@ +################################################################################# +# Copyright (c) 2022,2023 T-Systems International GmbH +# Copyright (c) 2022,2023 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0. +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. +# +# SPDX-License-Identifier: Apache-2.0 +################################################################################ + + # -- Number of Replicas for pods +replicaCount: 1 + +image: + # -- Image to use for deploying an application + repository: tractusx/managed-service-orchestrator + # -- Set the Image Pull Policy + pullPolicy: Always + # -- Image tage is defined in chart appVersion + tag: "" + +imagePullSecrets: [] + +serviceAccount: + # -- Specifies whether a service account should be created + create: true + # -- Annotations to add to the service account + annotations: {} + # -- The name of the service account to use. If not set and create is true, a name is generated using the fullname template + name: "" +podAnnotations: {} + +portContainer: 9999 + +podSecurityContext: + fsGroup: 2000 + +securityContext: + # -- Controls whether a process can gain more privilege + allowPrivilegeEscalation: false + runAsUser: 1000 + runAsNonRoot: true +probe: + endpoint: "/api/healthz" + +service: + # -- Type of service + type: ClusterIP + # -- Port details for sevice + port: 9999 + # -- Container Port details for sevice + portContainer: 9999 + +ingress: + # -- If you want to enable or disable the ingress + enabled: false + # -- a reference to an Ingress Class resource that contains additional configuration including the name of the controller that should implement the class + className: nginx + # -- Annotations to add to the ingress + annotations: + nginx.ingress.kubernetes.io/backend-protocol: HTTP + cert-manager.io/cluster-issuer: "letsencrypt-prod" + nginx.ingress.kubernetes.io/affinity: "cookie" + nginx.ingress.kubernetes.io/session-cookie-max-age: "172800" + + # -- Host of the application on which application runs + host: "" + +resources: + limits: + # -- set a maximum amount of allows CPU utilization by specifying a limit on the container. + cpu: 900m + # -- set a maximum amount of allows memory utilization by specifying a limit on the container. + memory: 2Gi + requests: + # -- sets the minimum amount of CPU required for the container + cpu: 400m + # -- set a minimum amount of allows memory utilization by specifying a limit on the container. + memory: 2Gi + +autoscaling: + enabled: false +nodeSelector: {} +tolerations: [] + +affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: DoesNotExist + topologyKey: kubernetes.io/hostname + +livenessProbe: + failureThreshold: 3 + initialDelaySeconds: 60 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 +readinessProbe: + failureThreshold: 3 + initialDelaySeconds: 60 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 1 + +secretRef: "managed-service-orchestrator-int-secret" + +postgresql: + # -- Enable the dependency postgres database + enabled: true + metrics: + containerSecurityContext: + enabled: false + auth: + username: "orchdbuser" + database: "orchdb" + existingSecret: "managed-service-orchestrator-int-secret" + secretKeys: + adminPasswordKey: "postgres-password" + userPasswordKey: "password" diff --git a/charts/orchestrator/values.yaml b/charts/orchestrator/values.yaml index 29dc4ec1..1aa6135f 100644 --- a/charts/orchestrator/values.yaml +++ b/charts/orchestrator/values.yaml @@ -67,11 +67,7 @@ ingress: # -- a reference to an Ingress Class resource that contains additional configuration including the name of the controller that should implement the class className: nginx # -- Annotations to add to the ingress - annotations: - nginx.ingress.kubernetes.io/backend-protocol: HTTP - cert-manager.io/cluster-issuer: "letsencrypt-prod" - nginx.ingress.kubernetes.io/affinity: "cookie" - nginx.ingress.kubernetes.io/session-cookie-max-age: "172800" + annotations: {} # -- Host of the application on which application runs host: "" @@ -117,7 +113,7 @@ readinessProbe: successThreshold: 1 timeoutSeconds: 1 -secretRef: "managed-service-orchestrator-int-secret" +secretRef: "" postgresql: # -- Enable the dependency postgres database @@ -126,9 +122,9 @@ postgresql: containerSecurityContext: enabled: false auth: - username: "orchdbuser" - database: "orchdb" - existingSecret: "managed-service-orchestrator-int-secret" + username: "" + database: "" + existingSecret: "" secretKeys: - adminPasswordKey: "postgres-password" - userPasswordKey: "password" + adminPasswordKey: "" + userPasswordKey: "" From cc49b1ab1ac6662acee07ed9594c14de36c2e596 Mon Sep 17 00:00:00 2001 From: adkumar1 Date: Tue, 5 Sep 2023 15:02:01 +0530 Subject: [PATCH 2/2] removed not required data --- charts/orchestrator/values-int.yaml | 88 +---------------------------- 1 file changed, 2 insertions(+), 86 deletions(-) diff --git a/charts/orchestrator/values-int.yaml b/charts/orchestrator/values-int.yaml index 29dc4ec1..fe6a85dd 100644 --- a/charts/orchestrator/values-int.yaml +++ b/charts/orchestrator/values-int.yaml @@ -18,52 +18,9 @@ # SPDX-License-Identifier: Apache-2.0 ################################################################################ - # -- Number of Replicas for pods -replicaCount: 1 - -image: - # -- Image to use for deploying an application - repository: tractusx/managed-service-orchestrator - # -- Set the Image Pull Policy - pullPolicy: Always - # -- Image tage is defined in chart appVersion - tag: "" - -imagePullSecrets: [] - -serviceAccount: - # -- Specifies whether a service account should be created - create: true - # -- Annotations to add to the service account - annotations: {} - # -- The name of the service account to use. If not set and create is true, a name is generated using the fullname template - name: "" -podAnnotations: {} - -portContainer: 9999 - -podSecurityContext: - fsGroup: 2000 - -securityContext: - # -- Controls whether a process can gain more privilege - allowPrivilegeEscalation: false - runAsUser: 1000 - runAsNonRoot: true -probe: - endpoint: "/api/healthz" - -service: - # -- Type of service - type: ClusterIP - # -- Port details for sevice - port: 9999 - # -- Container Port details for sevice - portContainer: 9999 - ingress: # -- If you want to enable or disable the ingress - enabled: false + enabled: true # -- a reference to an Ingress Class resource that contains additional configuration including the name of the controller that should implement the class className: nginx # -- Annotations to add to the ingress @@ -74,48 +31,7 @@ ingress: nginx.ingress.kubernetes.io/session-cookie-max-age: "172800" # -- Host of the application on which application runs - host: "" - -resources: - limits: - # -- set a maximum amount of allows CPU utilization by specifying a limit on the container. - cpu: 900m - # -- set a maximum amount of allows memory utilization by specifying a limit on the container. - memory: 2Gi - requests: - # -- sets the minimum amount of CPU required for the container - cpu: 400m - # -- set a minimum amount of allows memory utilization by specifying a limit on the container. - memory: 2Gi - -autoscaling: - enabled: false -nodeSelector: {} -tolerations: [] - -affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - podAffinityTerm: - labelSelector: - matchExpressions: - - key: app.kubernetes.io/name - operator: DoesNotExist - topologyKey: kubernetes.io/hostname - -livenessProbe: - failureThreshold: 3 - initialDelaySeconds: 60 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 1 -readinessProbe: - failureThreshold: 3 - initialDelaySeconds: 60 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 1 + host: "orchestrator.int.cx.dih-cloud.com" secretRef: "managed-service-orchestrator-int-secret"