Skip to content

Commit

Permalink
add extraPorts config for development environments (#2795)
Browse files Browse the repository at this point in the history
  • Loading branch information
saweber authored Dec 6, 2023
1 parent 705bfc9 commit 1f69e26
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cost-analyzer/templates/aggregator-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ spec:
- name: tcp-api
port: 9004
targetPort: 9004
{{- with .Values.kubecostAggregator.extraPorts }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions cost-analyzer/templates/aggregator-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ spec:
- name: tcp-api
containerPort: 9004
protocol: TCP
{{- with.Values.kubecostAggregator.extraPorts }}
{{- toYaml . | nindent 12 }}
{{- end }}
resources:
{{ toYaml .Values.kubecostAggregator.resources | nindent 12 }}
volumeMounts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@ spec:
- name: tcp-frontend
containerPort: 9090
protocol: TCP
{{- with .Values.kubecostModel.extraPorts }}
{{- toYaml . | nindent 10 }}
{{- end }}
resources:
{{ toYaml .Values.kubecostModel.resources | indent 12 }}
readinessProbe:
Expand Down
3 changes: 3 additions & 0 deletions cost-analyzer/templates/cost-analyzer-service-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ spec:
- name: tcp-model
port: 9003
targetPort: 9003
{{- with .Values.kubecostModel.extraPorts }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.kubecostFrontend.enabled }}
- name: tcp-frontend
{{- if .Values.kubecostFrontend.tls }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ spec:
- name: tcp-model
containerPort: 9003
protocol: TCP
{{- with .Values.kubecostDeployment.queryService.extraPorts }}
{{- toYaml . | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.kubecostDeployment.queryService.resources | nindent 12 }}
volumeMounts:
Expand Down
3 changes: 3 additions & 0 deletions cost-analyzer/templates/query-service-service-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ spec:
- name: tcp-query-service
port: 9003
targetPort: 9003
{{- with .Values.kubecostDeployment.queryService.extraPorts }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
19 changes: 19 additions & 0 deletions cost-analyzer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,12 @@ kubecostModel:
# hosts:
# - cost-analyzer-model.local
utcOffset: "+00:00"
# Optional - add extra ports to the cost-model container. For kubecost development purposes only - not recommended for users.
extraPorts: []
# - name: debug
# port: 40000
# targetPort: 40000
# containerPort: 40000

# etlUtils is a utility currently used by Kubecost internal support to implement specific functionality related to Thanos conversion.
etlUtils:
Expand Down Expand Up @@ -979,6 +985,12 @@ kubecostDeployment:
databaseVolumeSize: 100Gi
configVolumeSize: 1Gi
initImage: {}
# Optional - add extra ports to the query service container. For kubecost development purposes only - not recommended for users.
extraPorts: []
# - name: debug
# port: 40000
# targetPort: 40000
# containerPort: 40000

## The Kubecost Aggregator is a high scale implementation of Kubecost intended
## for large datasets and/or high query load. At present, this should only be
Expand Down Expand Up @@ -1034,6 +1046,13 @@ kubecostAggregator:
# capabilities:
# drop:
# - ALL
#
# Optional - add extra ports to the aggregator container. For kubecost development purposes only - not recommended for users.
extraPorts: []
# - name: debug
# port: 40000
# targetPort: 40000
# containerPort: 40000

# Kubecost Cluster Controller for Right Sizing and Cluster Turndown
clusterController:
Expand Down

0 comments on commit 1f69e26

Please sign in to comment.