Publish image, chart, and GitOps promotion / Test and publish immutable artifacts (push) Failing after 14s
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
{{- if .Values.ingress.enabled }}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "immich-sync.fullname" . }}
|
|
{{- with .Values.ingress.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- with .Values.ingress.className }}
|
|
ingressClassName: {{ . }}
|
|
{{- end }}
|
|
rules:
|
|
- host: {{ .Values.ingress.host }}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: {{ include "immich-sync.fullname" . }}
|
|
port:
|
|
name: http
|
|
{{- end }}
|
|
{{- if .Values.podDisruptionBudget.enabled }}
|
|
---
|
|
apiVersion: policy/v1
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ include "immich-sync.fullname" . }}
|
|
spec:
|
|
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "immich-sync.selectorLabels" . | nindent 6 }}
|
|
{{- end }}
|
|
{{- if .Values.metrics.serviceMonitor.enabled }}
|
|
---
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: {{ include "immich-sync.fullname" . }}
|
|
labels:
|
|
{{- include "immich-sync.labels" . | nindent 4 }}
|
|
{{- with .Values.metrics.serviceMonitor.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
{{- include "immich-sync.selectorLabels" . | nindent 6 }}
|
|
endpoints:
|
|
- port: http
|
|
path: /metrics
|
|
interval: 30s
|
|
scrapeTimeout: 10s
|
|
{{- end }}
|