From a8eafdb7a108f08e3ca565f7dbf1662af7b05ab2 Mon Sep 17 00:00:00 2001 From: Renzo Toma Date: Tue, 2 Feb 2021 23:19:48 +0100 Subject: [PATCH] feat: support changing default port --- charts/drone/templates/deployment.yaml | 2 +- charts/drone/values.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/drone/templates/deployment.yaml b/charts/drone/templates/deployment.yaml index ba17b54..d7fa753 100644 --- a/charts/drone/templates/deployment.yaml +++ b/charts/drone/templates/deployment.yaml @@ -37,7 +37,7 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http - containerPort: 80 + containerPort: {{ .Values.port }} protocol: TCP livenessProbe: httpGet: diff --git a/charts/drone/values.yaml b/charts/drone/values.yaml index f041adb..cd18345 100644 --- a/charts/drone/values.yaml +++ b/charts/drone/values.yaml @@ -36,6 +36,10 @@ podAnnotations: {} updateStrategy: {} +# Listener port. Must be changed >1024 when securityContext set to runAsNonRoot +# When changed, remember to set env variable DRONE_SERVER_PORT= +port: 80 + service: type: ClusterIP port: 80