rancher-partner-charts/charts/btp/chronicle/templates/pernode-tp-service.yaml

19 lines
607 B
YAML
Raw Normal View History

{{- $ctx := . -}}
{{ range untilStep 0 ((include "tp.replicas" $ctx) | int) 1 }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "common.names.fullname" $ctx }}-tp-{{ . }}
labels: {{- include "lib.labels" $ctx | nindent 4 }}
per-node: {{ include "common.names.fullname" $ctx }}-{{ . }}
component: chronicle-tp
spec:
type: ClusterIP
clusterIP: None
sessionAffinity: ClientIP
selector: {{- include "common.labels.matchLabels" $ctx | nindent 4 }}
component: chronicle-tp
statefulset.kubernetes.io/pod-name: {{ include "common.names.fullname" $ctx }}-{{ . }}
{{- end -}}