27 lines
822 B
YAML
27 lines
822 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ .Release.Name }}-node-agent
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{ include "stackstate-k8s-agent.labels" . | indent 4 }}
|
|
app.kubernetes.io/component: node-agent
|
|
{{- with .Values.nodeAgent.service.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
type: {{ .Values.nodeAgent.service.type }}
|
|
{{- if eq .Values.nodeAgent.service.type "LoadBalancer" }}
|
|
loadBalancerSourceRanges: {{ toYaml .Values.nodeAgent.service.loadBalancerSourceRanges | nindent 4}}
|
|
{{- end }}
|
|
ports:
|
|
- name: traceport
|
|
port: 8126
|
|
protocol: TCP
|
|
targetPort: 8126
|
|
selector:
|
|
app.kubernetes.io/component: node-agent
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/name: {{ include "stackstate-k8s-agent.name" . }}
|