Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Add headless svc for all workload #556

Merged
merged 1 commit into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 126 additions & 0 deletions operations/phlare/helm/phlare/rendered/micro-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,31 @@ spec:
# Source: phlare/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: phlare-dev-agent-headless
labels:
helm.sh/chart: phlare-0.5.2
app.kubernetes.io/name: phlare
app.kubernetes.io/instance: phlare-dev
app.kubernetes.io/version: "0.5.1"
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: "agent"
spec:
type: ClusterIP
clusterIP: None
ports:
- port: 4100
targetPort: http2
protocol: TCP
name: http2
selector:
app.kubernetes.io/name: phlare
app.kubernetes.io/instance: phlare-dev
app.kubernetes.io/component: "agent"
---
# Source: phlare/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: phlare-dev-distributor
labels:
Expand All @@ -1238,6 +1263,31 @@ spec:
# Source: phlare/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: phlare-dev-distributor-headless
labels:
helm.sh/chart: phlare-0.5.2
app.kubernetes.io/name: phlare
app.kubernetes.io/instance: phlare-dev
app.kubernetes.io/version: "0.5.1"
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: "distributor"
spec:
type: ClusterIP
clusterIP: None
ports:
- port: 4100
targetPort: http2
protocol: TCP
name: http2
selector:
app.kubernetes.io/name: phlare
app.kubernetes.io/instance: phlare-dev
app.kubernetes.io/component: "distributor"
---
# Source: phlare/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: phlare-dev-ingester
labels:
Expand Down Expand Up @@ -1273,6 +1323,7 @@ metadata:
app.kubernetes.io/component: "ingester"
spec:
type: ClusterIP
clusterIP: None
ports:
- port: 4100
targetPort: http2
Expand Down Expand Up @@ -1310,6 +1361,31 @@ spec:
# Source: phlare/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: phlare-dev-querier-headless
labels:
helm.sh/chart: phlare-0.5.2
app.kubernetes.io/name: phlare
app.kubernetes.io/instance: phlare-dev
app.kubernetes.io/version: "0.5.1"
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: "querier"
spec:
type: ClusterIP
clusterIP: None
ports:
- port: 4100
targetPort: http2
protocol: TCP
name: http2
selector:
app.kubernetes.io/name: phlare
app.kubernetes.io/instance: phlare-dev
app.kubernetes.io/component: "querier"
---
# Source: phlare/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: phlare-dev-query-frontend
labels:
Expand All @@ -1334,6 +1410,31 @@ spec:
# Source: phlare/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: phlare-dev-query-frontend-headless
labels:
helm.sh/chart: phlare-0.5.2
app.kubernetes.io/name: phlare
app.kubernetes.io/instance: phlare-dev
app.kubernetes.io/version: "0.5.1"
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: "query-frontend"
spec:
type: ClusterIP
clusterIP: None
ports:
- port: 4100
targetPort: http2
protocol: TCP
name: http2
selector:
app.kubernetes.io/name: phlare
app.kubernetes.io/instance: phlare-dev
app.kubernetes.io/component: "query-frontend"
---
# Source: phlare/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: phlare-dev-query-scheduler
labels:
Expand All @@ -1355,6 +1456,31 @@ spec:
app.kubernetes.io/instance: phlare-dev
app.kubernetes.io/component: "query-scheduler"
---
# Source: phlare/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: phlare-dev-query-scheduler-headless
labels:
helm.sh/chart: phlare-0.5.2
app.kubernetes.io/name: phlare
app.kubernetes.io/instance: phlare-dev
app.kubernetes.io/version: "0.5.1"
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: "query-scheduler"
spec:
type: ClusterIP
clusterIP: None
ports:
- port: 4100
targetPort: http2
protocol: TCP
name: http2
selector:
app.kubernetes.io/name: phlare
app.kubernetes.io/instance: phlare-dev
app.kubernetes.io/component: "query-scheduler"
---
# Source: phlare/templates/deployments-statefulsets.yaml
apiVersion: apps/v1
kind: Deployment
Expand Down
1 change: 1 addition & 0 deletions operations/phlare/helm/phlare/rendered/single-binary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ metadata:
app.kubernetes.io/component: "all"
spec:
type: ClusterIP
clusterIP: None
ports:
- port: 4100
targetPort: http2
Expand Down
3 changes: 1 addition & 2 deletions operations/phlare/helm/phlare/templates/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ spec:
selector:
{{- include "phlare.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: {{ $component | quote }}
{{- if eq $cfg.kind "StatefulSet" }}
---
apiVersion: v1
kind: Service
Expand All @@ -30,6 +29,7 @@ metadata:
app.kubernetes.io/component: {{ $component | quote }}
spec:
type: {{ .Values.phlare.service.type }}
clusterIP: None
ports:
- port: {{ .Values.phlare.service.port }}
targetPort: {{ .Values.phlare.service.port_name }}
Expand All @@ -40,4 +40,3 @@ spec:
app.kubernetes.io/component: {{ $component | quote }}
{{- end }}
{{- end }}
{{- end }}