Files
NageshbansalandGitHub f654e27aec feat(casting): adds k8skustomize casting (#67)
#### 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
2026-03-18 19:28:57 +05:30

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 }}