Skip to content

Commit

Permalink
refactor config info
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Trent <[email protected]>
  • Loading branch information
trent-s committed Apr 30, 2024
1 parent 2bf0988 commit 0c3c601
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 19 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.13
0.0.14
21 changes: 14 additions & 7 deletions bundle/manifests/susql-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ metadata:
]
capabilities: Basic Install
categories: Monitoring
containerImage: quay.io/sustainable_computing_io/susql_operator:0.0.13
createdAt: "2024-04-30T05:50:24Z"
containerImage: quay.io/sustainable_computing_io/susql_operator:0.0.14
createdAt: "2024-04-30T07:27:57Z"
description: 'Aggregates energy data from pods tagged with SusQL labels '
operators.operatorframework.io/builder: operator-sdk-v1.34.1
operators.operatorframework.io/project_layout: go.kubebuilder.io/v4
repository: https://github.com/sustainable-computing-io/susql-operator
support: https://github.com/sustainable-computing-io/susql-operator/issues
name: susql-operator.v0.0.13
name: susql-operator.v0.0.14
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -196,14 +196,14 @@ spec:
drop:
- ALL
- args:
- --health-probe-bind-address=:8081
- --metrics-bind-address=127.0.0.1:9999
- --leader-elect
- --kepler-prometheus-url=$(KEPLER-PROMETHEUS-URL)
- --kepler-metric-name=$(KEPLER-METRIC-NAME)
- --susql-prometheus-database-url=$(SUSQL-PROMETHEUS-DATABASE-URL)
- --susql-prometheus-metrics-url=$(SUSQL-PROMETHEUS-METRICS-URL)
- --sampling-rate=$(SAMPLING-RATE)
- --health-probe-bind-address=:8081
- --metrics-bind-address=127.0.0.1:9999
command:
- /manager
env:
Expand All @@ -217,7 +217,7 @@ spec:
value: http://0.0.0.0:8082
- name: SAMPLING-RATE
value: "2"
image: quay.io/sustainable_computing_io/susql_operator:0.0.13
image: quay.io/sustainable_computing_io/susql_operator:0.0.14
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
Expand All @@ -226,6 +226,13 @@ spec:
initialDelaySeconds: 15
periodSeconds: 20
name: manager
ports:
- containerPort: 8082
name: metric
protocol: TCP
- containerPort: 9999
name: autometric
protocol: TCP
readinessProbe:
httpGet:
path: /readyz
Expand Down Expand Up @@ -314,4 +321,4 @@ spec:
provider:
name: SusQL Operator Contributors
url: https://github.com/sustainable-computing-io/susql-operator
version: 0.0.13
version: 0.0.14
10 changes: 0 additions & 10 deletions config/default/manager_auth_proxy_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,3 @@ spec:
requests:
cpu: 5m
memory: 64Mi
- name: manager
args:
- "--health-probe-bind-address=:8081"
- "--metrics-bind-address=127.0.0.1:9999"
- "--leader-elect"
- "--kepler-prometheus-url=$(KEPLER-PROMETHEUS-URL)"
- "--kepler-metric-name=$(KEPLER-METRIC-NAME)"
- "--susql-prometheus-database-url=$(SUSQL-PROMETHEUS-DATABASE-URL)"
- "--susql-prometheus-metrics-url=$(SUSQL-PROMETHEUS-METRICS-URL)"
- "--sampling-rate=$(SAMPLING-RATE)"
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kind: Kustomization
images:
- name: controller
newName: quay.io/sustainable_computing_io/susql_operator
newTag: 0.0.13
newTag: 0.0.14
9 changes: 9 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ spec:
- --susql-prometheus-database-url=$(SUSQL-PROMETHEUS-DATABASE-URL)
- --susql-prometheus-metrics-url=$(SUSQL-PROMETHEUS-METRICS-URL)
- --sampling-rate=$(SAMPLING-RATE)
- --health-probe-bind-address=:8081
- --metrics-bind-address=127.0.0.1:9999
image: '<OPERATOR_IMG>'
imagePullPolicy: IfNotPresent
name: manager
Expand All @@ -110,6 +112,13 @@ spec:
periodSeconds: 10
# TODO(user): Configure the resources accordingly based on the project requirements.
# More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
ports:
- containerPort: 8082
protocol: TCP
name: metric
- containerPort: 9999
protocol: TCP
name: autometric
resources:
limits:
cpu: 500m
Expand Down

0 comments on commit 0c3c601

Please sign in to comment.