|
| 1 | +# Copyright 2025 SkyAPM org |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +{{- if .Values.features.baseline.enabled }} |
| 16 | +apiVersion: v1 |
| 17 | +kind: PersistentVolumeClaim |
| 18 | +metadata: |
| 19 | + name: predictor-data |
| 20 | +spec: |
| 21 | + accessModes: |
| 22 | + - ReadWriteOnce |
| 23 | + resources: |
| 24 | + requests: |
| 25 | + # PVC storage size |
| 26 | + storage: "10Gi" |
| 27 | + |
| 28 | +--- |
| 29 | + |
| 30 | +apiVersion: apps/v1 |
| 31 | +kind: Deployment |
| 32 | +metadata: |
| 33 | + name: skywalking-predictor |
| 34 | + namespace: {{ .Release.Namespace }} |
| 35 | +spec: |
| 36 | + selector: |
| 37 | + matchLabels: |
| 38 | + name: skywalking-predictor |
| 39 | + template: |
| 40 | + metadata: |
| 41 | + labels: |
| 42 | + name: skywalking-predictor |
| 43 | + spec: |
| 44 | + containers: |
| 45 | + - name: skywalking-predictor |
| 46 | + image: {{ .Values.features.baseline.image }} |
| 47 | + ports: |
| 48 | + - containerPort: 18080 |
| 49 | + name: grpc |
| 50 | + - containerPort: 8000 |
| 51 | + name: prometheus |
| 52 | + env: |
| 53 | + - name: BASELINE_FETCH_SERVER_ENDPOINT |
| 54 | + value: {{ template "skywalking.oap.address.http" . }} |
| 55 | + - name: BASELINE_FETCH_CRON |
| 56 | + value: "10 */8 * * *" |
| 57 | + - name: BASELINE_FETCH_METRICS |
| 58 | + value: "service_resp_time,service_sla,service_cpm,service_percentile,service_apdex" |
| 59 | + - name: BASELINE_FETCH_SERVER_LAYERS |
| 60 | + value: "GENERAL,MESH" |
| 61 | + - name: LOGGING_LEVEL |
| 62 | + value: DEBUG |
| 63 | + livenessProbe: |
| 64 | + initialDelaySeconds: 30 |
| 65 | + periodSeconds: 30 |
| 66 | + tcpSocket: |
| 67 | + port: grpc |
| 68 | + timeoutSeconds: 1 |
| 69 | + volumeMounts: |
| 70 | + - mountPath: /predictor-data |
| 71 | + name: predictor-data |
| 72 | + volumes: |
| 73 | + - name: predictor-data |
| 74 | + persistentVolumeClaim: |
| 75 | + claimName: predictor-data |
| 76 | + |
| 77 | +--- |
| 78 | + |
| 79 | +apiVersion: v1 |
| 80 | +kind: Service |
| 81 | +metadata: |
| 82 | + name: {{ .Values.skywalking.fullnameOverride }}-baseline |
| 83 | + namespace: {{ .Release.Namespace }} |
| 84 | +spec: |
| 85 | + selector: |
| 86 | + name: skywalking-predictor |
| 87 | + ports: |
| 88 | + - port: 18080 |
| 89 | + protocol: TCP |
| 90 | + targetPort: grpc |
| 91 | + |
| 92 | +{{- end }} |
0 commit comments