mirror of
https://github.com/hanzoai/o11y-foundry.git
synced 2026-11-03 02:08:34 +00:00
#### Features - adds kubernets kustomize casting - add examples for knobs, knobs with patches, patches and default installation Related: https://github.com/SigNoz/platform-pod/issues/1778
65 lines
1.9 KiB
Go Template
65 lines
1.9 KiB
Go Template
{{- $name := print $.Metadata.Name "-signoz" -}}
|
|
{{- $clickhouseName := print $.Metadata.Name "-clickhouse" -}}
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: {{ $name }}
|
|
labels:
|
|
app.kubernetes.io/component: signoz
|
|
app.kubernetes.io/instance: {{ $.Metadata.Name }}
|
|
app.kubernetes.io/managed-by: kustomize
|
|
app.kubernetes.io/name: {{ $name }}
|
|
spec:
|
|
replicas: {{ int $.Spec.Signoz.Spec.Cluster.Replicas }}
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: {{ $name }}
|
|
app.kubernetes.io/instance: {{ $.Metadata.Name }}
|
|
app.kubernetes.io/component: signoz
|
|
serviceName: {{ $name }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: signoz
|
|
app.kubernetes.io/instance: {{ $.Metadata.Name }}
|
|
app.kubernetes.io/name: {{ $name }}
|
|
spec:
|
|
containers:
|
|
- env:
|
|
{{- range $key, $val := $.Spec.Signoz.Spec.Env }}
|
|
- name: {{ $key }}
|
|
value: {{ $val }}
|
|
{{- end }}
|
|
image: {{ $.Spec.Signoz.Spec.Image }}
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
httpGet:
|
|
port: http
|
|
path: /api/v1/health
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 6
|
|
successThreshold: 1
|
|
name: signoz
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|
|
protocol: TCP
|
|
- name: opamp
|
|
containerPort: 4320
|
|
protocol: TCP
|
|
readinessProbe:
|
|
httpGet:
|
|
port: http
|
|
path: /api/v1/health
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 6
|
|
successThreshold: 1
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 200Mi
|
|
serviceAccountName: {{ $name }} |