diff --git a/packages/system/goldpinger/Chart.yaml b/packages/system/goldpinger/Chart.yaml index db7c25e3b..e7c2d49f6 100644 --- a/packages/system/goldpinger/Chart.yaml +++ b/packages/system/goldpinger/Chart.yaml @@ -1,3 +1,7 @@ apiVersion: v2 name: cozy-goldpinger version: 0.0.0 # Placeholder, the actual version will be automatically set during the build process +dependencies: + - name: goldpinger + version: "*" + repository: file://charts/goldpinger diff --git a/packages/system/goldpinger/charts/goldpinger/Chart.yaml b/packages/system/goldpinger/charts/goldpinger/Chart.yaml index 932c0425b..7275e00e8 100644 --- a/packages/system/goldpinger/charts/goldpinger/Chart.yaml +++ b/packages/system/goldpinger/charts/goldpinger/Chart.yaml @@ -1,9 +1,9 @@ apiVersion: v1 -appVersion: 3.10.2 +appVersion: 3.11.5 description: Goldpinger is a tool to help debug, troubleshoot and visualize network connectivity and slowness issues. home: https://github.com/bloomberg/goldpinger name: goldpinger sources: - https://github.com/bloomberg/goldpinger -version: 1.0.1 +version: 1.2.0 diff --git a/packages/system/goldpinger/charts/goldpinger/templates/daemonset.yaml b/packages/system/goldpinger/charts/goldpinger/templates/daemonset.yaml index 54034a649..13b850a35 100644 --- a/packages/system/goldpinger/charts/goldpinger/templates/daemonset.yaml +++ b/packages/system/goldpinger/charts/goldpinger/templates/daemonset.yaml @@ -50,6 +50,12 @@ spec: value: "{{ .Values.goldpinger.port }}" - name: LABEL_SELECTOR value: "app.kubernetes.io/name={{ include "goldpinger.name" . }}" + {{- if .Values.goldpinger.udp.enabled }} + - name: UDP_ENABLED + value: "true" + - name: UDP_PORT + value: "{{ .Values.goldpinger.udp.port }}" + {{- end }} {{- if .Values.extraEnv -}} {{ toYaml .Values.extraEnv | nindent 12 }} {{- end }} @@ -66,6 +72,11 @@ spec: hostPort: {{ $.Values.goldpinger.port }} {{- end }} {{- end }} + {{- if .Values.goldpinger.udp.enabled }} + - name: udp-probe + containerPort: {{ .Values.goldpinger.udp.port }} + protocol: UDP + {{- end }} livenessProbe: httpGet: path: / diff --git a/packages/system/goldpinger/charts/goldpinger/templates/httproute.yaml b/packages/system/goldpinger/charts/goldpinger/templates/httproute.yaml new file mode 100644 index 000000000..e349d45d6 --- /dev/null +++ b/packages/system/goldpinger/charts/goldpinger/templates/httproute.yaml @@ -0,0 +1,32 @@ +{{- if .Values.httpRoute.enabled -}} +{{- $fullName := include "goldpinger.fullname" . -}} +{{- $svcPort := .Values.service.port -}} +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: {{ $fullName }} + labels: + {{- include "goldpinger.labels" . | nindent 4 }} + {{- with .Values.httpRoute.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + {{- with .Values.httpRoute.hostnames }} + hostnames: + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with .Values.httpRoute.parentRefs }} + parentRefs: + {{- toYaml . | nindent 4 }} + {{- end }} + rules: + - backendRefs: + - name: {{ $fullName }} + port: {{ $svcPort }} + weight: 1 + matches: + - path: + type: PathPrefix + value: / +{{- end }} diff --git a/packages/system/goldpinger/charts/goldpinger/templates/service.yaml b/packages/system/goldpinger/charts/goldpinger/templates/service.yaml index 43a3e85da..35a3450dd 100644 --- a/packages/system/goldpinger/charts/goldpinger/templates/service.yaml +++ b/packages/system/goldpinger/charts/goldpinger/templates/service.yaml @@ -18,6 +18,12 @@ spec: targetPort: {{ .Values.goldpinger.port }} protocol: TCP name: http + {{- if .Values.goldpinger.udp.enabled }} + - port: {{ .Values.goldpinger.udp.port }} + targetPort: {{ .Values.goldpinger.udp.port }} + protocol: UDP + name: udp-probe + {{- end }} selector: {{- include "goldpinger.selectorLabels" . | nindent 4 }} {{- if .Values.service.loadBalancerSourceRanges }} diff --git a/packages/system/goldpinger/charts/goldpinger/values.yaml b/packages/system/goldpinger/charts/goldpinger/values.yaml index 1c80a1b11..3d290f618 100644 --- a/packages/system/goldpinger/charts/goldpinger/values.yaml +++ b/packages/system/goldpinger/charts/goldpinger/values.yaml @@ -23,6 +23,9 @@ serviceAccount: goldpinger: port: 8080 + udp: + enabled: false + port: 6969 zapConfig: | { "level": "info", @@ -71,6 +74,17 @@ ingress: # hosts: # - chart-example.local +httpRoute: + enabled: false + hostnames: [] + # - chart-example.local + parentRefs: [] + # - group: gateway.networking.k8s.io + # kind: Gateway + # name: default-gateway + # namespace: "gateway-namespace" + annotations: {} + ## Set a priorityClassName for the pod. If left blank a default priority will be set. priorityClassName: