From 7b52b11b0a96ecca1a7e31b753bb489ae3ef32e2 Mon Sep 17 00:00:00 2001 From: Roya Shourouni Date: Mon, 13 Jan 2025 10:32:46 -0800 Subject: [PATCH] fix zombie process in redis --- infrastructure/mailhog/.bumpversion.cfg | 7 - infrastructure/mailhog/.helmignore | 22 ---- infrastructure/mailhog/Chart.yaml | 20 --- infrastructure/mailhog/README.md | 107 ---------------- infrastructure/mailhog/templates/NOTES.txt | 16 --- infrastructure/mailhog/templates/_helpers.tpl | 83 ------------ .../mailhog/templates/auth-secret.yaml | 12 -- .../mailhog/templates/deployment.yaml | 110 ---------------- infrastructure/mailhog/templates/ingress.yaml | 64 ---------- infrastructure/mailhog/templates/service.yaml | 44 ------- .../mailhog/templates/serviceaccount.yaml | 11 -- .../mailhog/templates/smtp-secret.yaml | 12 -- infrastructure/mailhog/values.yaml | 120 ------------------ .../prime-app-ephemeral-template.yml | 2 +- infrastructure/prime-app-template.yml | 2 +- 15 files changed, 2 insertions(+), 630 deletions(-) delete mode 100644 infrastructure/mailhog/.bumpversion.cfg delete mode 100644 infrastructure/mailhog/.helmignore delete mode 100644 infrastructure/mailhog/Chart.yaml delete mode 100644 infrastructure/mailhog/README.md delete mode 100644 infrastructure/mailhog/templates/NOTES.txt delete mode 100644 infrastructure/mailhog/templates/_helpers.tpl delete mode 100644 infrastructure/mailhog/templates/auth-secret.yaml delete mode 100644 infrastructure/mailhog/templates/deployment.yaml delete mode 100644 infrastructure/mailhog/templates/ingress.yaml delete mode 100644 infrastructure/mailhog/templates/service.yaml delete mode 100644 infrastructure/mailhog/templates/serviceaccount.yaml delete mode 100644 infrastructure/mailhog/templates/smtp-secret.yaml delete mode 100644 infrastructure/mailhog/values.yaml diff --git a/infrastructure/mailhog/.bumpversion.cfg b/infrastructure/mailhog/.bumpversion.cfg deleted file mode 100644 index 4a4962e218..0000000000 --- a/infrastructure/mailhog/.bumpversion.cfg +++ /dev/null @@ -1,7 +0,0 @@ -[bumpversion] -current_version = 5.0.4 -commit = true -tag = false -message = Bump mailhog chart version: {current_version} → {new_version} - -[bumpversion:file:Chart.yaml] diff --git a/infrastructure/mailhog/.helmignore b/infrastructure/mailhog/.helmignore deleted file mode 100644 index 50af031725..0000000000 --- a/infrastructure/mailhog/.helmignore +++ /dev/null @@ -1,22 +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 -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/infrastructure/mailhog/Chart.yaml b/infrastructure/mailhog/Chart.yaml deleted file mode 100644 index 395963214f..0000000000 --- a/infrastructure/mailhog/Chart.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: v2 -description: An e-mail testing tool for developers -name: mailhog -appVersion: v1.0.1 -version: 5.0.4 -type: application -keywords: - - mailhog - - mail - - smtp - - email - - e-mail - - testing -home: http://iankent.uk/project/mailhog/ -icon: https://raw.githubusercontent.com/mailhog/MailHog-UI/master/assets/images/hog.png -sources: - - https://github.com/mailhog/MailHog -maintainers: - - name: unguiculus - email: unguiculus@gmail.com diff --git a/infrastructure/mailhog/README.md b/infrastructure/mailhog/README.md deleted file mode 100644 index 8449f876ae..0000000000 --- a/infrastructure/mailhog/README.md +++ /dev/null @@ -1,107 +0,0 @@ -# Mailhog - -[Mailhog](http://iankent.uk/project/mailhog/) is an e-mail testing tool for developers. - -## TL;DR; - -```bash -$ helm repo add codecentric https://codecentric.github.io/helm-charts -$ helm install mailhog codecentric/mailhog -``` - -## Introduction - -This chart creates a [Mailhog](http://iankent.uk/project/mailhog/) deployment on a [Kubernetes](http://kubernetes.io) -cluster using the [Helm](https://helm.sh) package manager. - -## Installing the Chart - -To install the chart with the release name `mailhog`: - -```bash -$ helm install mailhog codecentric/mailhog -``` - -The command deploys Mailhog on the Kubernetes cluster in the default configuration. The [configuration](#configuration) -section lists the parameters that can be configured during installation. - -## Uninstalling the Chart - -To uninstall/delete the `mailhog` deployment: - -```bash -$ helm uninstall mailhog -``` -The command removes all the Kubernetes components associated with the chart and deletes the release. - -## Configuration - -The following table lists the configurable parameters of the Mailhog chart and their default values. - -Parameter | Description | Default ---- | --- | --- -`image.repository` | Docker image repository | `mailhog/mailhog` -`image.tag` | Docker image tag whose default is the chart version | `""` -`image.pullPolicy` | Docker image pull policy | `IfNotPresent` -`imagePullSecrets` | Docker image pull secrets | `[]` -`auth.enabled` | Specifies whether basic authentication is enabled, see [Auth.md](https://github.com/mailhog/MailHog/blob/master/docs/Auth.md) | `false` -`auth.existingSecret` | If auth is enabled, uses an existing secret with this name; otherwise a secret is created | `""` -`auth.fileName` | The name of the auth file | `auth.txt` -`auth.fileContents` | The contents of the auth file | `""` -`nodeSelector` | Node labels for pod assignment | `{}` -`podAnnotations` | Extra annotations to add to pod | `{}` -`podLabels` | Extra labels to add to pod | `{}` -`resources` | Pod resource requests and limits | `{}` -`tolerations` | Node taints to tolerate | `[]` -`serviceAccount.create` | Specifies whether a ServiceAccount should be created | `true` | -`serviceAccount.name` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | `""` | -`serviceAccount.imagePullSecrets` | Image pull secrets that are attached to the ServiceAccount | `[]` | -`automountServiceAccountToken` | Indicates whether the service account token should be automatically mounted | `false` | -`service.annotations` | Annotations for the service | `{}` -`service.clusterIP` | Internal cluster service IP | `""` -`service.externalIPs` | Service external IP addresses | `[]` -`service.loadBalancerIP` | IP address to assign to load balancer (if supported) | `""` -`service.loadBalancerSourceRanges` | List of IP CIDRs allowed access to load balancer (if supported) | `[]` -`service.type` | Type of service to create | `ClusterIP` -`service.port.http` | HTTP port of service | `""` -`service.port.smtp` | SMTP port of service | `""` -`service.nodePort.http` | If `service.type` is `NodePort` and this is non-empty, sets the http node port of the service | `""` -`service.nodePort.smtp` | If `service.type` is `NodePort` and this is non-empty, sets the smtp node port of the service | `""` -`securityContext` | Pod security context | `{ runAsUser: 1000, fsGroup: 1000, runAsNonRoot: true }` -`ingress.enabled` | If `true`, an ingress is created | `false` -`ingress.ingressClassName` | If set the created Ingress resource will have this class name. kubernetes.io/ingress.class is [deprecated](https://kubernetes.io/docs/concepts/services-networking/ingress/#deprecated-annotation) | `nil` -`ingress.annotations` | Annotations for the ingress | `{}` -`ingress.labels` | Labels for the ingress | `{}` -`ingress.hosts` | A list of ingress hosts | `{ host: mailhog.example.com, paths: [{ path: "/", pathType: Prefix }] }` -`ingress.tls` | A list of [IngressTLS](https://v1-8.docs.kubernetes.io/docs/api-reference/v1.8/#ingresstls-v1beta1-extensions) items | `[]` -`extraEnv` | Additional environment variables, see [CONFIG.md](https://github.com/mailhog/MailHog/blob/master/docs/CONFIG.md) | `{}` - -## Upgrading - -### From chart < 5.0.0 - - Ingress path definitions are extended to describe path and pathType. Previously only the path was configured. Please adapt your configuration as shown below: - - Old: - ```yaml - ingress: - # ... - hosts: - - host: mailhog.example.com - # Paths for the host - paths: - - / - ``` - New: - ```yaml - ingress: - # ... - hosts: - - host: mailhog.example.com - # Paths for the host - paths: - - path: / - pathType: Prefix - ``` - - This allows to configure specific `pathType` configurations, e.g. `pathType: ImplementationSpecific` for [GKE Ingress on Google Cloud Platform](https://cloud.google.com/kubernetes-engine/docs/concepts/ingress#default_backend). \ No newline at end of file diff --git a/infrastructure/mailhog/templates/NOTES.txt b/infrastructure/mailhog/templates/NOTES.txt deleted file mode 100644 index 678ad48f12..0000000000 --- a/infrastructure/mailhog/templates/NOTES.txt +++ /dev/null @@ -1,16 +0,0 @@ -Mailhog can be accessed via ports {{ .Values.service.port.http }} (HTTP) and {{ .Values.service.port.smtp }} (SMTP) on the following DNS name from within your cluster: -{{ include "mailhog.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local - -If you'd like to test your instance, forward the ports locally: - -Web UI: -======= - -export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "mailhog.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") -kubectl port-forward --namespace {{ .Release.Namespace }} $POD_NAME 8025 - -SMTP Server: -============ - -export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "mailhog.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") -kubectl port-forward --namespace {{ .Release.Namespace }} $POD_NAME 1025 diff --git a/infrastructure/mailhog/templates/_helpers.tpl b/infrastructure/mailhog/templates/_helpers.tpl deleted file mode 100644 index 64897b5cf4..0000000000 --- a/infrastructure/mailhog/templates/_helpers.tpl +++ /dev/null @@ -1,83 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "mailhog.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 "mailhog.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 "mailhog.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Common labels -*/}} -{{- define "mailhog.labels" -}} -helm.sh/chart: {{ include "mailhog.chart" . }} -{{ include "mailhog.selectorLabels" . }} -app.kubernetes.io/version: {{ .Values.image.tag | default .Chart.AppVersion | quote }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "mailhog.selectorLabels" -}} -app.kubernetes.io/name: {{ include "mailhog.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} - -{{/* -Create the name of the service account to use -*/}} -{{- define "mailhog.serviceAccountName" -}} -{{- if .Values.serviceAccount.create }} -{{- default (include "mailhog.fullname" .) .Values.serviceAccount.name }} -{{- else }} -{{- default "default" .Values.serviceAccount.name }} -{{- end }} -{{- end }} - -{{/* -Create the name for the auth secret. -*/}} -{{- define "mailhog.authFileSecret" -}} - {{- if .Values.auth.existingSecret -}} - {{- .Values.auth.existingSecret -}} - {{- else -}} - {{- template "mailhog.fullname" . -}}-auth - {{- end -}} -{{- end -}} - -{{/* -Create the name for the outgoing-smtp secret. -*/}} -{{- define "mailhog.outgoingSMTPSecret" -}} - {{- if .Values.outgoingSMTP.existingSecret -}} - {{- .Values.outgoingSMTP.existingSecret -}} - {{- else -}} - {{- template "mailhog.fullname" . -}}-outgoing-smtp - {{- end -}} -{{- end -}} diff --git a/infrastructure/mailhog/templates/auth-secret.yaml b/infrastructure/mailhog/templates/auth-secret.yaml deleted file mode 100644 index 5b2ab58eb4..0000000000 --- a/infrastructure/mailhog/templates/auth-secret.yaml +++ /dev/null @@ -1,12 +0,0 @@ -{{- if and (.Values.auth.enabled) (not .Values.auth.existingSecret) -}} -apiVersion: v1 -kind: Secret -metadata: - labels: - {{- include "mailhog.labels" . | nindent 4 }} - name: {{ template "mailhog.authFileSecret" . }} - namespace: {{ .Release.Namespace }} -type: Opaque -data: - {{ .Values.auth.fileName }}: {{ .Values.auth.fileContents | b64enc }} -{{- end -}} diff --git a/infrastructure/mailhog/templates/deployment.yaml b/infrastructure/mailhog/templates/deployment.yaml deleted file mode 100644 index 1e8f717ce1..0000000000 --- a/infrastructure/mailhog/templates/deployment.yaml +++ /dev/null @@ -1,110 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "mailhog.fullname" . }} - labels: - {{- include "mailhog.labels" . | nindent 4 }} - namespace: {{ .Release.Namespace }} -spec: - selector: - matchLabels: - {{- include "mailhog.selectorLabels" . | nindent 6 }} - template: - metadata: - {{- with .Values.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "mailhog.selectorLabels" . | nindent 8 }} - {{- with .Values.podLabels }} - {{- toYaml . | nindent 8 }} - {{- end }} - spec: - serviceAccountName: {{ include "mailhog.serviceAccountName" . }} - automountServiceAccountToken: {{ .Values.automountServiceAccountToken }} - {{- with .Values.securityContext }} - securityContext: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - containers: - - name: {{ template "mailhog.name" . }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: "{{ .Values.image.pullPolicy }}" - env: - - name: MH_HOSTNAME - valueFrom: - fieldRef: - fieldPath: metadata.name - {{- if .Values.auth.enabled }} - - name: MH_AUTH_FILE - value: /authdir/{{ .Values.auth.fileName }} - {{- end }} - {{- if .Values.outgoingSMTP.enabled }} - - name: MH_OUTGOING_SMTP - value: /config/{{ .Values.outgoingSMTP.fileName }} - {{- end }} - {{- with .Values.extraEnv }} - {{- toYaml . | nindent 12 }} - {{- end }} - ports: - - name: http - containerPort: 8025 - protocol: TCP - - name: tcp-smtp - containerPort: 1025 - protocol: TCP - livenessProbe: - tcpSocket: - port: tcp-smtp - initialDelaySeconds: 10 - timeoutSeconds: 1 - readinessProbe: - tcpSocket: - port: tcp-smtp - {{- if .Values.auth.enabled }} - volumeMounts: - - name: authdir - mountPath: /authdir - readOnly: true - {{- end }} - {{- if .Values.outgoingSMTP.enabled }} - volumeMounts: - - name: outsmtpdir - mountPath: /config - readOnly: true - {{- end }} - {{- with .Values.containerSecurityContext }} - securityContext: - {{- toYaml . | nindent 12 }} - {{- end }} - resources: - {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- if .Values.auth.enabled }} - volumes: - - name: authdir - secret: - secretName: {{ template "mailhog.authFileSecret" . }} - {{- end }} - {{- if .Values.outgoingSMTP.enabled }} - volumes: - - name: outsmtpdir - secret: - secretName: {{ template "mailhog.outgoingSMTPSecret" . }} - {{- end }} diff --git a/infrastructure/mailhog/templates/ingress.yaml b/infrastructure/mailhog/templates/ingress.yaml deleted file mode 100644 index 3cbc60d588..0000000000 --- a/infrastructure/mailhog/templates/ingress.yaml +++ /dev/null @@ -1,64 +0,0 @@ -{{- if .Values.ingress.enabled -}} -{{- $fullName := include "mailhog.fullname" . -}} -{{- $apiV1 := false -}} -{{- $apiVersion := "extensions/v1beta1" -}} -{{- if and (.Capabilities.APIVersions.Has "networking.k8s.io/v1") (semverCompare ">= v1.19.0-0" .Capabilities.KubeVersion.Version) -}} - {{- $apiVersion = "networking.k8s.io/v1" -}} - {{- $apiV1 = true -}} -{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" -}} - {{- $apiVersion = "networking.k8s.io/v1beta1" -}} -{{- else -}} - {{- $apiVersion = "extensions/v1beta1" -}} -{{- end }} -apiVersion: {{ $apiVersion }} -kind: Ingress -metadata: - name: {{ $fullName }} - labels: - {{- include "mailhog.labels" . | nindent 4 }} - namespace: {{ .Release.Namespace }} - {{- with .Values.ingress.labels }} - {{- toYaml . | nindent 4 }} - {{- end }} - {{- with .Values.ingress.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -spec: -{{- if .Values.ingress.ingressClassName }} - ingressClassName: {{ .Values.ingress.ingressClassName }} -{{- end }} -{{- if .Values.ingress.tls }} - tls: - {{- range .Values.ingress.tls }} - - hosts: - {{- range .hosts }} - - {{ . | quote }} - {{- end }} - {{- with .secretName }} - secretName: {{ . }} - {{- end }} - {{- end }} -{{- end }} - rules: - {{- range .Values.ingress.hosts }} - - host: {{ .host | quote }} - http: - paths: - {{- range .paths }} - - path: {{ .path }} - {{- if $apiV1 }} - pathType: {{ .pathType }} - backend: - service: - name: {{ $fullName }} - port: - name: http - {{- else }} - backend: - serviceName: {{ $fullName }} - servicePort: http - {{- end }} - {{- end }} - {{- end }} -{{- end }} diff --git a/infrastructure/mailhog/templates/service.yaml b/infrastructure/mailhog/templates/service.yaml deleted file mode 100644 index 4a94555f5f..0000000000 --- a/infrastructure/mailhog/templates/service.yaml +++ /dev/null @@ -1,44 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ include "mailhog.fullname" . }} - {{- with .Values.service.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} - labels: - {{- include "mailhog.labels" . | nindent 4 }} - namespace: {{ .Release.Namespace }} -spec: - type: "{{ .Values.service.type }}" - {{- with .Values.service.clusterIP }} - clusterIP: "{{ . }}" - {{- end }} - {{- with .Values.service.externalIPs }} - externalIPs: - {{- toYaml . | nindent 4 }} - {{- end }} - {{- with .Values.service.loadBalancerIP }} - loadBalancerIP: "{{ . }}" - {{- end }} - {{- with .Values.service.loadBalancerSourceRanges }} - loadBalancerSourceRanges: - {{- toYaml . | nindent 4 }} - {{- end }} - ports: - - name: http - port: {{ .Values.service.port.http }} - protocol: TCP - targetPort: http - {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort.http))) }} - nodePort: {{ .Values.service.nodePort.http }} - {{- end }} - - name: tcp-smtp - port: {{ .Values.service.port.smtp }} - protocol: TCP - targetPort: tcp-smtp - {{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort.smtp))) }} - nodePort: {{ .Values.service.nodePort.smtp }} - {{- end }} - selector: - {{- include "mailhog.selectorLabels" . | nindent 4 }} diff --git a/infrastructure/mailhog/templates/serviceaccount.yaml b/infrastructure/mailhog/templates/serviceaccount.yaml deleted file mode 100644 index 7df6951771..0000000000 --- a/infrastructure/mailhog/templates/serviceaccount.yaml +++ /dev/null @@ -1,11 +0,0 @@ -{{- if .Values.serviceAccount.create -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ include "mailhog.serviceAccountName" . }} - labels: - {{- include "mailhog.labels" . | nindent 4 }} - namespace: {{ .Release.Namespace }} -imagePullSecrets: - {{- toYaml .Values.serviceAccount.imagePullSecrets | nindent 4 }} -{{- end }} diff --git a/infrastructure/mailhog/templates/smtp-secret.yaml b/infrastructure/mailhog/templates/smtp-secret.yaml deleted file mode 100644 index b1178bbff8..0000000000 --- a/infrastructure/mailhog/templates/smtp-secret.yaml +++ /dev/null @@ -1,12 +0,0 @@ -{{- if and (.Values.outgoingSMTP.enabled) (not .Values.outgoingSMTP.existingSecret) -}} -apiVersion: v1 -kind: Secret -metadata: - labels: - {{- include "mailhog.labels" . | nindent 4 }} - name: {{ template "mailhog.outgoingSMTPSecret" . }} - namespace: {{ .Release.Namespace }} -type: Opaque -data: - {{ .Values.outgoingSMTP.fileName }}: {{ .Values.outgoingSMTP.fileContents | toJson | b64enc }} -{{- end -}} diff --git a/infrastructure/mailhog/values.yaml b/infrastructure/mailhog/values.yaml deleted file mode 100644 index 28d1e40c55..0000000000 --- a/infrastructure/mailhog/values.yaml +++ /dev/null @@ -1,120 +0,0 @@ -image: - repository: image-registry.openshift-image-registry.svc:5000/9c33a9-tools/mailhog-server - tag: "latest" - pullPolicy: IfNotPresent - -imagePullSecrets: [] - -nameOverride: "" -fullnameOverride: "" - -serviceAccount: - # Specifies whether a ServiceAccount should be created - create: true - # The name of the service account to use. - # If not set and create is true, a name is generated using the fullname template - name: "" - # Image pull secrets that are attached to the ServiceAccount - imagePullSecrets: [] - -automountServiceAccountToken: false - -service: - annotations: {} - clusterIP: "" - externalIPs: [] - loadBalancerIP: "" - loadBalancerSourceRanges: [] - type: ClusterIP - port: - http: 8025 - smtp: 1025 - nodePort: - http: "" - smtp: "" - -securityContext: {} - -containerSecurityContext: - readOnlyRootFilesystem: true - privileged: false - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - -ingress: - enabled: true - # ingressClassName: nginx - annotations: {} - # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: "true" - labels: {} - hosts: - - host: mailhog-dev.pharmanetenrolment.gov.bc.ca - paths: - - path: "/" - pathType: Prefix - backend: - service: - name: mailhog - port: - name: http - - - tls: - - hosts: - - mailhog-dev.pharmanetenrolment.gov.bc.ca - secretName: pharmanet-api-ssl-certs - -auth: - enabled: false - existingSecret: "" - fileName: auth.txt - fileContents: "" - -# JSON file defining outgoing SMTP servers -outgoingSMTP: - enabled: false - existingSecret: "" - fileName: outgoing-smtp.json - fileContents: {} - # See https://github.com/mailhog/MailHog/blob/master/docs/CONFIG.md#outgoing-smtp-configuration - # Only name, host and port are required. - # - # server_name1: - # name: "server_name1" - # host: "mail.example.com" - # port: "25" # NOTE: go requires this port number to be a string... otherwise the container won't start - # email: "" - # username: "" - # password: "" - # mechanism: "PLAIN|CRAM-MD5" - # server_name2: - # name: "server_name2" - # host: "mail2.example.com" - # port: "587" # NOTE: go requires this port number to be a string... otherwise the container won't start - -podAnnotations: {} - -podLabels: {} - -extraEnv: [] - -resources: - # 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:'. - limits: - cpu: 100m - memory: 256Mi - requests: - cpu: 50m - memory: 128Mi - -affinity: {} - -nodeSelector: {} - -tolerations: [] diff --git a/infrastructure/prime-app-ephemeral-template.yml b/infrastructure/prime-app-ephemeral-template.yml index 54e1b98235..654432f8c5 100644 --- a/infrastructure/prime-app-ephemeral-template.yml +++ b/infrastructure/prime-app-ephemeral-template.yml @@ -1046,7 +1046,7 @@ objects: mountPath: /var/lib/redis/data terminationMessagePolicy: File image: >- - image-registry.openshift-image-registry.svc:5000/${OC_LICENSE_PLATE}-tools/redis-6:latest + image-registry.openshift-image-registry.svc:5000/${OC_LICENSE_PLATE}-tools/redis-6:tini restartPolicy: Always dnsPolicy: ClusterFirst diff --git a/infrastructure/prime-app-template.yml b/infrastructure/prime-app-template.yml index 9a74970ae1..b8bf3064bb 100644 --- a/infrastructure/prime-app-template.yml +++ b/infrastructure/prime-app-template.yml @@ -1073,7 +1073,7 @@ objects: containers: - name: redis image: >- - image-registry.openshift-image-registry.svc:5000/${OC_LICENSE_PLATE}-tools/redis-6:latest + image-registry.openshift-image-registry.svc:5000/${OC_LICENSE_PLATE}-tools/redis-6:tini resources: limits: cpu: 25m