-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a deployment template for the site controller, with a metrics port associated with the pod. Enables users to put custom pod labels on the inbox listener, stream service, and site controller, so that they may opt these deployments into scraping executed by some external framework on the basis of labels. For instance, if a prometheus PodMonitor is set up to scrape pods with label monitoring: true, this can now be accomplished through the chart.
- Loading branch information
Showing
9 changed files
with
92 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,5 @@ spec: | |
targetPort: 9099 | ||
- name: metrics | ||
protocol: TCP | ||
port: 6002 | ||
targetPort: 6002 | ||
port: 6001 | ||
targetPort: 6001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
charts/primary-site/templates/deployments/site-controller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: site-controller | ||
labels: | ||
app: site-controller | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: site-controller | ||
template: | ||
metadata: | ||
labels: | ||
app: site-controller | ||
{{- range $key, $value := .Values.siteController.deployment.podLabels }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
spec: | ||
containers: | ||
- name: site-controller | ||
image: us-central1-docker.pkg.dev/foxglove-images/images/site-controller:{{ .Chart.AppVersion }} | ||
resources: | ||
requests: | ||
cpu: {{ .Values.siteController.deployment.resources.requests.cpu }} | ||
memory: {{ .Values.siteController.deployment.resources.requests.memory }} | ||
limits: | ||
cpu: {{ .Values.siteController.deployment.resources.limits.cpu }} | ||
memory: {{ .Values.siteController.deployment.resources.limits.memory }} | ||
livenessProbe: | ||
httpGet: | ||
path: /liveness | ||
port: 6002 | ||
ports: | ||
- name: metrics | ||
containerPort: 6001 | ||
env: | ||
- name: FOXGLOVE_API_URL | ||
value: {{ .Values.globals.foxgloveApiUrl }} | ||
- name: FOXGLOVE_SITE_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: foxglove-site | ||
key: token | ||
- name: MODE | ||
value: self-managed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters