mirror of
https://github.com/plausible/hosting.git
synced 2025-07-04 11:07:30 -05:00
Add Helm chart
This commit is contained in:
20
chart/plausible-analytics/templates/service.yaml
Normal file
20
chart/plausible-analytics/templates/service.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "plausible-analytics.fullname" . }}
|
||||
labels:
|
||||
{{- include "plausible-analytics.labels" . | nindent 4 }}
|
||||
{{- if .Values.labels }}
|
||||
{{- with .Values.labels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
- port: {{ .Values.service.port }}
|
||||
targetPort: http
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
{{- include "plausible-analytics.selectorLabels" . | nindent 4 }}
|
Reference in New Issue
Block a user