Customize EJBCA container port (#3124)

Signed-off-by: joancafom <jcarmona@bitnami.com>
This commit is contained in:
Jose Antonio Carmona
2020-07-15 12:07:12 +02:00
committed by GitHub
parent f234cc7ff1
commit 22c5fe5a96
4 changed files with 15 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: ejbca
version: 0.1.1
version: 0.1.2
appVersion: 6.15.2-6
description: Enterprise class PKI Certificate Authority built on JEE technology.
icon: https://bitnami.com/assets/stacks/ejbca/img/ejbca-stack-220x234.png

View File

@@ -132,6 +132,8 @@ The following table lists the configurable parameters of the EJBCA chart and the
| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe | `1` |
| `customLivenessProbe` | Custom liveness probe to execute (when the main one is disabled) | `{}` (evaluated as a template) |
| `customReadinessProbe` | Custom readiness probe to execute (when the main one is disabled) | `{}` (evaluated as a template) |
| `containerPorts.http` | Port to open for HTTP traffic in EJBCA | `8080` |
| `containerPorts.https` | Port to open for HTTPS traffic in EJBCA | `8443` |
| `extraEnvVarsCM` | Array to add extra configmaps | `[]` |
| `extraEnvVarsSecret` | Array to add extra environment from a Secret | `nil` |

View File

@@ -75,6 +75,10 @@ spec:
value: {{ template "ejbca.databaseName" . }}
- name: EJBCA_DATABASE_USERNAME
value: {{ template "ejbca.databaseUsername" . }}
- name: EJBCA_HTTP_PORT_NUMBER
value: {{ .Values.containerPorts.http | quote }}
- name: EJBCA_HTTPS_PORT_NUMBER
value: {{ .Values.containerPorts.https | quote }}
{{- if .Values.ejbcaKeystoreExistingSecret }}
- name: EJBCA_SERVER_CERT_FILE
value: /opt/bitnami/ejbca/mounted-jks/keystore.jks
@@ -98,9 +102,9 @@ spec:
{{- end }}
ports:
- name: http
containerPort: 8080
containerPort: {{ .Values.containerPorts.http }}
- name: https
containerPort: 8443
containerPort: {{ .Values.containerPorts.https }}
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}

View File

@@ -199,6 +199,12 @@ readinessProbe:
customLivenessProbe: {}
customReadinessProbe: {}
## EJBCA Container ports to open
##
containerPorts:
http: 8080
https: 8443
## Kubernetes configuration
## For minikube, set this to NodePort, elsewhere use LoadBalancer or ClusterIP
##