Files
cssd-front/.values.yaml
T
2023-10-25 22:06:40 +03:30

189 lines
5.0 KiB
YAML

# -- Same as nameOverride but for the namespace.
namespaceOverride: "cssd"
# -- Same as nameOverride but for the component.
componentOverride: ""
# -- Same as nameOverride but for the partOf.
partOfOverride: ""
##########################################################
# Name of the application.
##########################################################
applicationName: "cssd-front"
##########################################################
# Deployment
##########################################################
deployment:
enabled: true
# By default deploymentStrategy is set to rollingUpdate with maxSurge of 25% and maxUnavailable of 25%
# You can change type to `Recreate` or can uncomment `rollingUpdate` specification and adjust them to your usage.
strategy:
type: RollingUpdate
# rollingUpdate:
# maxSurge: 25%
# maxUnavailable: 25%
# Additional labels for Deployment
additionalLabels:
# key: value
# Annotations on deployments
annotations:
# Replicas to be created
replicas: 1
revisionHistoryLimit: 5
imagePullSecrets: "regcred"
# If want to mount Envs from configmap or secret
envFrom:
# production-cm:
# type: configmap
# nameSuffix: my-configmap
# logging-config:
# type: configmap
# nameSuffix: your-configmap
# postgres-config:
# type: secret
# nameSuffix: postgres
# Environment variables to be passed to the app container
env:
# ENVIRONMENT:
# value: "dev"
# FREQUENCY:
# valueFrom:
# configMapKeyRef:
# name: config
# key: frequency
# Image of the app container
image:
repository: docker.willaspace.com/repository/docker-hosted/cssd/cssd-front
tag: 'latest'
digest: '' # if set to a non empty value, digest takes precedence on the tag
pullPolicy: IfNotPresent
# Resources to be defined for pod
resources:
limits:
memory: 256Mi
cpu: 0.5
requests:
memory: 128Mi
cpu: 0.1
##########################################################
# Service object for servicing pods
##########################################################
service:
enabled: true
additionalLabels:
# expose: "true"
annotations:
# config.xposer.stakater.com/Domain: stakater.com
# config.xposer.stakater.com/IngressNameTemplate: '{{ "{{.Service}}-{{.Namespace}}" }}'
# config.xposer.stakater.com/IngressURLPath: /
# config.xposer.stakater.com/IngressURLTemplate: '{{ "{{.Service}}.{{.Namespace}}.{{.Domain}}" }}'
# service.alpha.openshift.io/serving-cert-secret-name: |
# '{{ template "application.name" . }}-tls'
# xposer.stakater.com/annotations: |-
# kubernetes.io/ingress.class: external-ingress
# ingress.kubernetes.io/rewrite-target: /
# ingress.kubernetes.io/force-ssl-redirect: true
ports:
- port: 80
name: http
protocol: TCP
targetPort: 80
type: LoadBalancer
##########################################################
# Pod disruption budget - PDB
##########################################################
pdb:
enabled: false
minAvailable: 1
# maxUnavailable: 1
##########################################################
# Ingress object for exposing services
##########################################################
ingress:
enabled: true
# Name of the ingress class
ingressClassName: 'nginx'
# Port of the service that serves pods
servicePort: http
#Set pathType: default is ImplementationSpecific; Options: Exact, Prefix
pathType: ImplementationSpecific
# List of host addresses to be exposed by this Ingress
hosts:
- host: app.cssd-doc.com
# paths:
# - path: /
# pathType: ''
# serviceName: ''
# servicePort: ''
# Additional labels for this Ingress
additionalLabels:
# Add annotations to this Ingress
annotations:
# kubernetes.io/ingress.class: external-ingress
# ingress.kubernetes.io/rewrite-target: /
# ingress.kubernetes.io/force-ssl-redirect: true
# TLS details for this Ingress
tls:
# Secrets must be manually created in the namespace.
- secretName: cssd-doc-com-certificate
hosts:
- app.cssd.com
##########################################################
# HPA - Horizontal Pod Autoscaling
##########################################################
autoscaling:
# enabled is a boolean flag for enabling or disabling autoscaling
enabled: false
# additionalLabels defines additional labels
additionalLabels:
# key: value
# annotations defines annotations in key value pair
annotations:
# key: value
# minReplicas sets the minimum number of replicas
minReplicas: 1
# maxReplicas sets the maximum number of replicas
maxReplicas: 10
# metrics is the list of metrics used for hpa
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 60
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 60