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

Commit

Permalink
Add headless svc for all workload (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyriltovena authored and simonswine committed Mar 7, 2023
1 parent e7485a3 commit 758c5f2
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 2 deletions.
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 @@ -1198,6 +1198,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 @@ -1222,6 +1247,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 @@ -1257,6 +1307,7 @@ metadata:
app.kubernetes.io/component: "ingester"
spec:
type: ClusterIP
clusterIP: None
ports:
- port: 4100
targetPort: http2
Expand Down Expand Up @@ -1294,6 +1345,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 @@ -1318,6 +1394,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 @@ -1339,6 +1440,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 @@ -792,6 +792,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 }}

0 comments on commit 758c5f2

Please sign in to comment.