Skip to content

Commit

Permalink
Merge pull request #4187 from lsst-sqre/u/afausti/fixup-sasquatch-ing…
Browse files Browse the repository at this point in the history
…ress

Fix Sasquatch ingresses
  • Loading branch information
afausti authored Feb 11, 2025
2 parents 95c3cc9 + c6c9dc0 commit ea58172
Show file tree
Hide file tree
Showing 13 changed files with 94 additions and 15 deletions.
6 changes: 5 additions & 1 deletion applications/sasquatch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@ Rubin Observatory's telemetry service
| chronograf.ingress.className | string | `"nginx"` | Ingress class to use |
| chronograf.ingress.enabled | bool | `false` | Whether to enable the Chronograf ingress |
| chronograf.ingress.hostname | string | None, must be set if the ingress is enabled | Hostname of the ingress |
| chronograf.ingress.path | string | `"/chronograf(/\|$)"` | Path for the ingress |
| chronograf.ingress.path | string | `"/chronograf"` | Path for the ingress |
| chronograf.ingress.tls | bool | `false` | Whether to obtain TLS certificates for the ingress hostname |
| chronograf.persistence.enabled | bool | `true` | Whether to enable persistence for Chronograf data |
| chronograf.persistence.size | string | `"100Gi"` | Size of data store to request, if enabled |
| chronograf.resources | object | See `values.yaml` | Kubernetes resource requests and limits for Chronograf |
| chronograf.updateStrategy.type | string | `"Recreate"` | Deployment strategy, use recreate with persistence enabled |
| customInfluxDBIngress.annotations | object | See `values.yaml` | Annotations to add to the ingress |
| customInfluxDBIngress.enabled | bool | `false` | Whether to enable the custom ingress for InfluxDB OSS |
| customInfluxDBIngress.hostname | string | None, must be set if the ingress is enabled | Hostname of the ingress |
| customInfluxDBIngress.path | string | `"/influxdb(/\|$)(.*)"` | Path for the ingress |
| influxdb-enterprise.enabled | bool | `false` | Whether to use influxdb-enterprise |
| influxdb.config.continuous_queries.enabled | bool | `false` | Whether continuous queries are enabled |
| influxdb.config.coordinator.log-queries-after | string | `"15s"` | Maximum duration a query can run before InfluxDB logs it as a slow query |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
http:
paths:
- path: {{ $ingressPath }}
pathType: Prefix
pathType: ImplementationSpecific
backend:
service:
name: {{ $fullName }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
http:
paths:
- path: {{ .Values.registry.ingress.path }}
pathType: Prefix
pathType: ImplementationSpecific
backend:
service:
name: sasquatch-schema-registry
Expand Down
26 changes: 26 additions & 0 deletions applications/sasquatch/templates/influxdb-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{- if .Values.customInfluxDBIngress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: sasquatch-influxdb
labels:
app.kubernetes.io/instance: sasquatch
app.kubernetes.io/name: influxdb
{{- if .Values.customInfluxDBIngress.annotations }}
annotations:
{{ toYaml .Values.customInfluxDBIngress.annotations | indent 4 }}
{{- end }}
spec:
ingressClassName: nginx
rules:
- host: {{ .Values.customInfluxDBIngress.hostname | quote }}
http:
paths:
- path: {{ .Values.customInfluxDBIngress.path }}
pathType: ImplementationSpecific
backend:
service:
name: sasquatch-influxdb
port:
number: 8086
{{- end }}
10 changes: 7 additions & 3 deletions applications/sasquatch/values-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ strimzi-kafka:
effect: "NoSchedule"

influxdb:
persistence:
storageClass: rook-ceph-block
ingress:
enabled: true
enabled: false
hostname: base-lsp.lsst.codes
persistence:
storageClass: rook-ceph-block
resources:
requests:
memory: 16Gi
Expand All @@ -148,6 +148,10 @@ influxdb:
memory: 16Gi
cpu: 8

customInfluxDBIngress:
enabled: true
hostname: base-lsp.lsst.codes

telegraf-kafka-consumer:
enabled: true
kafkaConsumers:
Expand Down
6 changes: 5 additions & 1 deletion applications/sasquatch/values-idfdev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ strimzi-kafka:

influxdb:
ingress:
enabled: true
enabled: false
hostname: data-dev.lsst.cloud
resources:
requests:
Expand All @@ -64,6 +64,10 @@ influxdb:
memory: 16Gi
cpu: 2

customInfluxDBIngress:
enabled: true
hostname: data-dev.lsst.cloud

influxdb-enterprise:
enabled: true
license:
Expand Down
6 changes: 5 additions & 1 deletion applications/sasquatch/values-idfint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ strimzi-kafka:

influxdb:
ingress:
enabled: true
enabled: false
hostname: data-int.lsst.cloud
resources:
requests:
Expand All @@ -73,6 +73,10 @@ influxdb:
memory: 16Gi
cpu: 2

customInfluxDBIngress:
enabled: true
hostname: data-int.lsst.cloud

telegraf-kafka-consumer:
enabled: true
kafkaConsumers:
Expand Down
6 changes: 5 additions & 1 deletion applications/sasquatch/values-idfprod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ strimzi-kafka:

influxdb:
ingress:
enabled: true
enabled: false
hostname: data.lsst.cloud
resources:
requests:
Expand All @@ -55,6 +55,10 @@ influxdb:
memory: 8Gi
cpu: 1

customInfluxDBIngress:
enabled: true
hostname: data.lsst.cloud

telegraf-kafka-consumer:
enabled: true
kafkaConsumers:
Expand Down
6 changes: 5 additions & 1 deletion applications/sasquatch/values-summit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ influxdb:
storageClass: rook-ceph-block
size: 5Ti
ingress:
enabled: true
enabled: false
hostname: summit-lsp.lsst.codes
resources:
requests:
Expand All @@ -131,6 +131,10 @@ influxdb:
memory: 128Gi
cpu: 16

customInfluxDBIngress:
enabled: true
hostname: summit-lsp.lsst.codes

influxdb-enterprise:
enabled: true
license:
Expand Down
6 changes: 5 additions & 1 deletion applications/sasquatch/values-tucson-teststand.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,13 @@ influxdb:
persistence:
storageClass: rook-ceph-block
ingress:
enabled: true
enabled: false
hostname: tucson-teststand.lsst.codes

customInfluxDBIngress:
enabled: true
hostname: tucson-teststand.lsst.codes

telegraf-kafka-consumer:
enabled: true
kafkaConsumers:
Expand Down
6 changes: 5 additions & 1 deletion applications/sasquatch/values-usdfdev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ strimzi-kafka:

influxdb:
ingress:
enabled: true
enabled: false
hostname: usdf-rsp-dev.slac.stanford.edu
persistence:
enabled: true
size: 15Ti

customInfluxDBIngress:
enabled: true
hostname: usdf-rsp-dev.slac.stanford.edu

kafka-connect-manager:
influxdbSink:
# Based on the kafka producers configuration for the BTS
Expand Down
6 changes: 5 additions & 1 deletion applications/sasquatch/values-usdfint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ strimzi-kafka:

influxdb:
ingress:
enabled: true
enabled: false
hostname: usdf-rsp-int.slac.stanford.edu
persistence:
enabled: true
size: 15Ti

customInfluxDBIngress:
enabled: true
hostname: usdf-rsp-int.slac.stanford.edu

kafka-connect-manager:
influxdbSink:
# Based on the kafka producers configuration for the BTS
Expand Down
21 changes: 19 additions & 2 deletions applications/sasquatch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,23 @@ influxdb:
memory: 96Gi
cpu: 8

customInfluxDBIngress:
# -- Whether to enable the custom ingress for InfluxDB OSS
enabled: false

# -- Hostname of the ingress
# @default -- None, must be set if the ingress is enabled
hostname: ""

# -- Annotations to add to the ingress
# @default -- See `values.yaml`
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2

# -- Path for the ingress
# @default -- `"/influxdb(/\|$)(.*)"`
path: "/influxdb(/|$)(.*)"

influxdb-enterprise:
# -- Whether to use influxdb-enterprise
enabled: false
Expand Down Expand Up @@ -215,8 +232,8 @@ chronograf:
className: "nginx"

# -- Path for the ingress
# @default -- `"/chronograf(/\|$)"`
path: "/chronograf(/|$)"
# @default -- `"/chronograf"`
path: "/chronograf"

# -- Additional environment variables for Chronograf
# @default -- See `values.yaml`
Expand Down

0 comments on commit ea58172

Please sign in to comment.