satellite-svc.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Licensed to the Apache Software Foundation (ASF) under one or more
  2. # contributor license agreements. See the NOTICE file distributed with
  3. # this work for additional information regarding copyright ownership.
  4. # The ASF licenses this file to You under the Apache License, Version 2.0
  5. # (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. {{- if .Values.satellite.enabled }}
  16. apiVersion: v1
  17. kind: Service
  18. metadata:
  19. name: {{ template "skywalking.satellite.fullname" . }}
  20. labels:
  21. app: {{ template "skywalking.name" . }}
  22. chart: {{ .Chart.Name }}-{{ .Chart.Version }}
  23. component: "{{ .Values.satellite.name }}"
  24. heritage: {{ .Release.Service }}
  25. release: {{ .Release.Name }}
  26. spec:
  27. type: {{ .Values.satellite.service.type }}
  28. ports:
  29. {{- range $key, $value := .Values.satellite.ports }}
  30. - port: {{ $value }}
  31. name: {{ $key }}
  32. {{- end }}
  33. selector:
  34. app: {{ template "skywalking.name" . }}
  35. component: "{{ .Values.satellite.name }}"
  36. release: {{ .Release.Name }}
  37. {{- end }}