This is an automated email from the ASF dual-hosted git repository. innerpeacez pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/skywalking-kubernetes.git
The following commit(s) were added to refs/heads/master by this push: new 0968383 update oap-deployment with danamic add more ports. (#72) 0968383 is described below commit 09683837b6f29b6793084081a0f0a0fdc1f647ee Author: Jared Tan <jian....@daocloud.io> AuthorDate: Thu Jun 24 13:45:38 2021 +0800 update oap-deployment with danamic add more ports. (#72) * update oap-deployment with danamic add more ports. * polish --- chart/skywalking/templates/oap-deployment.yaml | 8 ++++---- chart/skywalking/values.yaml | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/chart/skywalking/templates/oap-deployment.yaml b/chart/skywalking/templates/oap-deployment.yaml index 40f1ce4..560e9db 100644 --- a/chart/skywalking/templates/oap-deployment.yaml +++ b/chart/skywalking/templates/oap-deployment.yaml @@ -99,10 +99,10 @@ spec: initialDelaySeconds: 15 periodSeconds: 20 ports: - - containerPort: 11800 - name: grpc - - containerPort: 12800 - name: rest + {{- range $key, $value := .Values.oap.ports }} + - containerPort: {{ $value }} + name: {{ $key }} + {{- end }} {{- if .Values.oap.resources }} resources: {{ toYaml .Values.oap.resources | indent 10 }} diff --git a/chart/skywalking/values.yaml b/chart/skywalking/values.yaml index 4a36230..ee7f6c9 100644 --- a/chart/skywalking/values.yaml +++ b/chart/skywalking/values.yaml @@ -38,6 +38,8 @@ oap: pullPolicy: IfNotPresent storageType: null ports: + # add more ports here if you need, for example + # zabbix: 10051 grpc: 11800 rest: 12800 replicas: 2