diff --git a/charts/echo-server/.helmignore b/charts/echo-server/.helmignore deleted file mode 100644 index 0e8a0eb..0000000 --- a/charts/echo-server/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/charts/echo-server/Chart.yaml b/charts/echo-server/Chart.yaml deleted file mode 100644 index 272c059..0000000 --- a/charts/echo-server/Chart.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: v2 -name: echo-server -description: Run soketi/echo-server in Kubernetes using this helm chart. - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -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: 2.1.1 - -# 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. -appVersion: 5.4.0 diff --git a/charts/echo-server/README.md b/charts/echo-server/README.md deleted file mode 100644 index d92124a..0000000 --- a/charts/echo-server/README.md +++ /dev/null @@ -1,49 +0,0 @@ -Echo Server Chart -================= - -Containerize & Orchestrate your Echo Server application with this simple Helm chart. - -## 🤝 Supporting - -If you are using one or more Renoki Co. open-source packages in your production apps, in presentation demos, hobby projects, school projects or so, spread some kind words about our work or sponsor our work via Patreon. 📦 - -You will sometimes get exclusive content on tips about Laravel, AWS or Kubernetes on Patreon and some early-access to projects or packages. - -[](https://www.patreon.com/bePatron?u=10965171) - -## 🚀 Installation - -Install Helm chart repository: - -```bash -$ helm repo add soketi https://helm.soketi.app -$ helm repo update -``` - -Install the Echo Server chart: - -```bash -$ helm upgrade echo-server \ - --install \ - --version=2.1.1 \ - soketi/echo-server -``` - -Check `values.yaml` for additional available customizations. - -## 🐛 Testing - -Coming soon. - -## 🤝 Contributing - -Please see [CONTRIBUTING](../../CONTRIBUTING.md) for details. - -## 🔒 Security - -If you discover any security related issues, please email alex@renoki.org instead of using the issue tracker. - -## 🎉 Credits - -- [Alex Renoki](https://github.com/rennokki) -- [All Contributors](../../../../contributors) diff --git a/charts/echo-server/templates/NOTES.txt b/charts/echo-server/templates/NOTES.txt deleted file mode 100644 index d49c8ac..0000000 --- a/charts/echo-server/templates/NOTES.txt +++ /dev/null @@ -1,28 +0,0 @@ -1. Get the application URL by running these commands: -{{- if .Values.ingress.enabled }} -{{- range $host := .Values.ingress.hosts }} - {{- range .paths }} - http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ . }} - {{- end }} -{{- end }} -{{- else if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "echo-server.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "echo-server.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "echo-server.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "echo-server.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") - echo "Visit http://127.0.0.1:6001 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 6001:$CONTAINER_PORT -{{- end }} - -{{- if .Values.networkWatcher.enabled }} -2. Network watcher is enabled. -{{- else }} -2. Network watcher is disabled. -{{- end }} diff --git a/charts/echo-server/templates/_helpers.tpl b/charts/echo-server/templates/_helpers.tpl deleted file mode 100644 index 3f868b4..0000000 --- a/charts/echo-server/templates/_helpers.tpl +++ /dev/null @@ -1,62 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "echo-server.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "echo-server.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "echo-server.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "echo-server.labels" -}} -helm.sh/chart: {{ include "echo-server.chart" . }} -{{ include "echo-server.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "echo-server.selectorLabels" -}} -app.kubernetes.io/name: {{ include "echo-server.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} - -{{/* -Create the name of the service account to use -*/}} -{{- define "echo-server.serviceAccountName" -}} -{{- if .Values.serviceAccount.create }} -{{- default (include "echo-server.fullname" .) .Values.serviceAccount.name }} -{{- else }} -{{- default "default" .Values.serviceAccount.name }} -{{- end }} -{{- end }} diff --git a/charts/echo-server/templates/deployment.yaml b/charts/echo-server/templates/deployment.yaml deleted file mode 100644 index 90ee279..0000000 --- a/charts/echo-server/templates/deployment.yaml +++ /dev/null @@ -1,157 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "echo-server.fullname" . }} - labels: - {{- include "echo-server.labels" . | nindent 4 }} -spec: - {{- if not .Values.autoscaling.enabled }} - replicas: {{ .Values.replicaCount }} - {{- end }} - selector: - matchLabels: - {{- include "echo-server.selectorLabels" . | nindent 6 }} - template: - metadata: - {{- with .Values.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "echo-server.selectorLabels" . | nindent 8 }} - spec: - {{- with .Values.extraVolumes }} - volumes: - {{- toYaml . | nindent 10 }} - {{- end }} - - terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} - - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - - serviceAccountName: {{ include "echo-server.serviceAccountName" . }} - - securityContext: - {{- toYaml .Values.podSecurityContext | nindent 8 }} - - {{- with .Values.extraInitContainers }} - initContainers: - {{- toYaml . | nindent 8 }} - {{- end }} - - containers: - {{- with .Values.extraContainers }} - {{- toYaml . | nindent 8 }} - {{- end }} - {{- if .Values.networkWatcher.enabled }} - - name: network-watcher - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.networkWatcher.image.repository }}:{{ .Values.networkWatcher.image.tag }}" - imagePullPolicy: {{ .Values.networkWatcher.image.pullPolicy }} - {{- with .Values.networkWatcher.extraVolumeMounts }} - volumeMounts: - {{- toYaml . | nindent 12 }} - {{- end }} - env: - - name: KUBE_CONNECTION - value: cluster - - name: ECHO_APP_PORT - value: "{{ .Values.service.port }}" - - name: MEMORY_PERCENT - value: "{{ .Values.networkWatcher.threshold }}" - - name: CHECKING_INTERVAL - value: "{{ .Values.networkWatcher.interval }}" - - name: POD_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - livenessProbe: - httpGet: - path: /health - port: 6001 - httpHeaders: - - name: X-Kube-Healthcheck - value: "Yes" - initialDelaySeconds: 5 - periodSeconds: 1 - failureThreshold: 1 - successThreshold: 1 - readinessProbe: - httpGet: - path: /ready - port: 6001 - httpHeaders: - - name: X-Kube-Healthcheck - value: "Yes" - initialDelaySeconds: 5 - periodSeconds: 1 - failureThreshold: 1 - successThreshold: 1 - resources: - {{- toYaml .Values.networkWatcher.resources | nindent 12 }} - {{- end }} - - name: {{ .Chart.Name }} - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.app.image.repository }}:{{ .Values.app.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.app.image.pullPolicy }} - {{- with .Values.app.extraVolumeMounts }} - volumeMounts: - {{- toYaml . | nindent 12 }} - {{- end }} - ports: - - name: echo - containerPort: 6001 - protocol: TCP - {{- with .Values.app.command }} - command: - {{- toYaml . | nindent 12 }} - {{- end }} - env: - {{- with .Values.app.extraEnv }} - {{- toYaml . | nindent 14 }} - {{- end }} - livenessProbe: - httpGet: - path: /health - port: 6001 - httpHeaders: - - name: X-Kube-Healthcheck - value: "Yes" - initialDelaySeconds: 5 - periodSeconds: 1 - failureThreshold: 1 - successThreshold: 1 - readinessProbe: - httpGet: - path: /ready - port: 6001 - httpHeaders: - - name: X-Kube-Healthcheck - value: "Yes" - initialDelaySeconds: 5 - periodSeconds: 1 - failureThreshold: 1 - successThreshold: 1 - resources: - {{- toYaml .Values.app.resources | nindent 12 }} - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} diff --git a/charts/echo-server/templates/hpa.yaml b/charts/echo-server/templates/hpa.yaml deleted file mode 100644 index 70034c2..0000000 --- a/charts/echo-server/templates/hpa.yaml +++ /dev/null @@ -1,39 +0,0 @@ -{{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2beta2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "echo-server.fullname" . }} - labels: - {{- include "echo-server.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "echo-server.fullname" . }} - minReplicas: {{ .Values.autoscaling.minReplicas }} - maxReplicas: {{ .Values.autoscaling.maxReplicas }} - {{- with .Values.autoscaling.behavior }} - behavior: - {{- toYaml . | nindent 4 }} - {{- end }} - metrics: - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} - {{- with .Values.autoscaling.customMetrics }} - {{- toYaml . | nindent 4 }} - {{- end }} -{{- end }} diff --git a/charts/echo-server/templates/ingress.yaml b/charts/echo-server/templates/ingress.yaml deleted file mode 100644 index eaa3da2..0000000 --- a/charts/echo-server/templates/ingress.yaml +++ /dev/null @@ -1,41 +0,0 @@ -{{- if .Values.ingress.enabled -}} -{{- $fullName := include "echo-server.fullname" . -}} -{{- $svcPort := .Values.service.port -}} -{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} -apiVersion: networking.k8s.io/v1beta1 -{{- else -}} -apiVersion: extensions/v1beta1 -{{- end }} -kind: Ingress -metadata: - name: {{ $fullName }} - labels: - {{- include "echo-server.labels" . | nindent 4 }} - {{- with .Values.ingress.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - {{- if .Values.ingress.tls }} - tls: - {{- range .Values.ingress.tls }} - - hosts: - {{- range .hosts }} - - {{ . | quote }} - {{- end }} - secretName: {{ .secretName }} - {{- end }} - {{- end }} - rules: - {{- range .Values.ingress.hosts }} - - host: {{ .host | quote }} - http: - paths: - {{- range .paths }} - - path: {{ . }} - backend: - serviceName: {{ $fullName }} - servicePort: {{ $svcPort }} - {{- end }} - {{- end }} - {{- end }} diff --git a/charts/echo-server/templates/pdb.yaml b/charts/echo-server/templates/pdb.yaml deleted file mode 100644 index a50ba3f..0000000 --- a/charts/echo-server/templates/pdb.yaml +++ /dev/null @@ -1,18 +0,0 @@ -{{- if or (and .Values.autoscaling.enabled (gt (.Values.autoscaling.minReplicas | int) 1)) (gt (.Values.replicaCount | int) 1) -}} -apiVersion: policy/v1beta1 -kind: PodDisruptionBudget -metadata: - labels: - {{- include "echo-server.labels" . | nindent 4 }} - name: {{ include "echo-server.fullname" . }} -spec: - selector: - matchLabels: - {{- include "echo-server.selectorLabels" . | nindent 6 }} - {{- if .Values.pdb.minAvailable }} - minAvailable: {{ .Values.pdb.minAvailable }} - {{- end }} - {{- if .Values.pdb.maxUnavailable }} - maxUnavailable: {{ .Values.pdb.maxUnavailable }} - {{- end }} -{{- end }} diff --git a/charts/echo-server/templates/service.yaml b/charts/echo-server/templates/service.yaml deleted file mode 100644 index 38f8441..0000000 --- a/charts/echo-server/templates/service.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ include "echo-server.fullname" . }} - labels: - {{- include "echo-server.labels" . | nindent 4 }} - annotations: - {{- with .Values.service.annotations }} - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - type: {{ .Values.service.type }} - ports: - - port: {{ .Values.service.port }} - targetPort: 6001 - protocol: TCP - name: echo - selector: - {{- include "echo-server.selectorLabels" . | nindent 4 }} - {{- if .Values.networkWatcher.enabled }} - echo.soketi.app/accepts-new-connections: "yes" - {{- end }} diff --git a/charts/echo-server/templates/serviceaccount-role.yaml b/charts/echo-server/templates/serviceaccount-role.yaml deleted file mode 100644 index 9770325..0000000 --- a/charts/echo-server/templates/serviceaccount-role.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if .Values.serviceAccount.create -}} -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: {{ include "echo-server.serviceAccountName" . }}-watcher-role - labels: - app.kubernetes.io/component: controller - {{- include "echo-server.labels" . | nindent 4 }} -rules: - - apiGroups: - - "" - resources: - - pods - verbs: - - get - - watch - - update - - patch - - apiGroups: - - "" - resources: - - events - verbs: - - create ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: {{ include "echo-server.serviceAccountName" . }}-watcher - labels: - app.kubernetes.io/component: controller - {{- include "echo-server.labels" . | nindent 4 }} -subjects: -- kind: ServiceAccount - name: {{ include "echo-server.serviceAccountName" . }} -roleRef: - kind: Role - name: {{ include "echo-server.serviceAccountName" . }}-watcher-role - apiGroup: rbac.authorization.k8s.io -{{- end }} diff --git a/charts/echo-server/templates/serviceaccount.yaml b/charts/echo-server/templates/serviceaccount.yaml deleted file mode 100644 index e95299a..0000000 --- a/charts/echo-server/templates/serviceaccount.yaml +++ /dev/null @@ -1,12 +0,0 @@ -{{- if .Values.serviceAccount.create -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ include "echo-server.serviceAccountName" . }} - labels: - {{- include "echo-server.labels" . | nindent 4 }} - {{- with .Values.serviceAccount.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -{{- end }} diff --git a/charts/echo-server/templates/tests/test-connection.yaml b/charts/echo-server/templates/tests/test-connection.yaml deleted file mode 100644 index 9bcf437..0000000 --- a/charts/echo-server/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "echo-server.fullname" . }}-test-connection" - labels: - {{- include "echo-server.labels" . | nindent 4 }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "echo-server.fullname" . }}:{{ .Values.service.port }}'] - restartPolicy: Never diff --git a/charts/echo-server/values.yaml b/charts/echo-server/values.yaml deleted file mode 100644 index d72ba12..0000000 --- a/charts/echo-server/values.yaml +++ /dev/null @@ -1,195 +0,0 @@ -# Default values for echo-server. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -replicaCount: 1 - -imagePullSecrets: [] -nameOverride: "" -fullnameOverride: "" - -# Echo Server is the server that will act like a Pusher REST API-compatible, -# Socket.IO WS compatible server that will accept the WS connections. -app: - image: - repository: soketi/echo-server - pullPolicy: IfNotPresent - tag: "5.4.0-14-alpine" - - # It's recommended to run the server with - # maximum memory that would match the resource limits - # for maximum memory space efficiency. - command: - - node - - --max-old-space-size=256 - - --max_old_space_size=256 - - --optimize_for_size - - --optimize-for-size - - /app/bin/server.js - - start - - # Add extra env to the Echo Server container. - extraEnv: [] - # - name: POD_ID - # valueFrom: - # fieldRef: - # fieldPath: metadata.name - # - name: NODE_ID - # valueFrom: - # fieldRef: - # fieldPath: spec.nodeName - - # Extra volumes to mount on the container. - extraVolumeMounts: [] - # - name: some-folder - # mountPath: /some/path - - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - resources: - limits: - cpu: 250m - memory: 256Mi - # requests: - # cpu: 100m - # memory: 128Mi - -# The Network Watcher is watching for container maximum allocated -# resources and once a specific threshold is exceeded, it will tell the -# Echo Server to stop accepting new connections by marking the Pod -# as not ready. The existing connections will still be persisted. -networkWatcher: - enabled: false - - image: - repository: soketi/network-watcher - pullPolicy: IfNotPresent - tag: "3.0.1" - - # Extra volumes to mount on the container. - extraVolumeMounts: [] - # - name: some-folder - # mountPath: /some/path - - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - resources: - limits: - cpu: 100m - memory: 128Mi - requests: - cpu: 100m - memory: 64Mi - - # The above threshold (in percent) after the pod becomes - # unavailable to serve new connections. 85% is a good threshold, - # because the still-opened connections will add some new members in - # the presence channels if they join or leave new ones. - threshold: 85 - - # The interval in seconds between checks. This will check the Prometheus - # metrics and will decide wether the threshold was reached and will prevent - # new connections from joining this pod. - interval: 1 - -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: {} - -podSecurityContext: {} - # fsGroup: 2000 - -securityContext: {} - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 6001 - - annotations: {} - # Set annotations for the service. - -ingress: - enabled: false - annotations: {} - # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: "true" - hosts: - - host: echo-example.local - paths: [] - - # - host: echo.test - # paths: - # - / - tls: [] - # - secretName: echo-example-tls - # hosts: - # - echo-example.local - -autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 100 - targetCPUUtilizationPercentage: 80 - # targetMemoryUtilizationPercentage: 80 - - # Set the behavior for the autoscaler. - # https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-configurable-scaling-behavior - behavior: - scaleDown: - stabilizationWindowSeconds: 1800 - scaleUp: - stabilizationWindowSeconds: 10 - - # Custom Metrics will be appended to the default CPU/Memory resources (if they're enabled). - customMetrics: [] - # - type: Pods - # pods: - # metric: - # name: nginx_process_utilization - # target: - # type: AverageValue - # averageValue: "50" - -pdb: - enabled: false - minAvailable: 1 - # maxUnavailable: 25% - -# In some cases, closing a Pod that has a lot of connections -# will disconnect them, and stats would need some time to catch up with the disconnections, -# so a bigger termination grace period would be suitable. -terminationGracePeriodSeconds: 30 - -nodeSelector: {} - -tolerations: [] - -affinity: {} - -# Extra volumes to attach to the deployment. -extraVolumes: [] -# - name: some-folder -# emptyDir: {} - -# Extra containers to run in the deployment. -extraContainers: [] - -# Extra init containers to run in the deployment. -extraInitContainers: []