Skip to content

Commit

Permalink
Adding support for zipkin UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Yangfisher1 committed Jul 24, 2023
1 parent a21482a commit 3992197
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions chart/skywalking/templates/oap-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,17 @@ spec:
- containerPort: {{ $value }}
name: {{ $key }}
{{- end }}

{{- if eq .Values.oap.env.SW_RECEIVER_ZIPKIN "default" }}
- containerPort: 9411
name: "zipkin"
{{- end }}

{{- if eq .Values.oap.env.SW_QUERY_ZIPKIN "default" }}
- containerPort: 9412
name: "zipkin-ui"
{{- end }}

{{- if .Values.oap.resources }}
resources:
{{ toYaml .Values.oap.resources | indent 10 }}
Expand Down
8 changes: 8 additions & 0 deletions chart/skywalking/templates/oap-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ spec:
- port: {{ $value }}
name: {{ $key }}
{{- end }}
{{- if eq .Values.oap.env.SW_RECEIVER_ZIPKIN "default" }}
- port: 9411
name: "zipkin"
{{- end }}
{{- if eq .Values.oap.env.SW_QUERY_ZIPKIN "default" }}
- port: 9412
name: "zipkin-ui"
{{- end }}
selector:
app: {{ template "skywalking.name" . }}
component: "{{ .Values.oap.name }}"
Expand Down
4 changes: 4 additions & 0 deletions chart/skywalking/templates/ui-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ spec:
env:
- name: SW_OAP_ADDRESS
value: "http://{{ template "skywalking.oap.fullname" . }}:{{ .Values.oap.ports.rest }}"
{{- if eq .Values.oap.env.SW_QUERY_ZIPKIN "default" }}
- name: SW_ZIPKIN_ADDRESS
value: "http://{{ template "skywalking.oap.fullname" . }}:9412"
{{- end }}
{{- range $key, $value := .Values.ui.env }}
- name: {{ $key }}
value: {{ $value | quote }}
Expand Down

0 comments on commit 3992197

Please sign in to comment.