-
Notifications
You must be signed in to change notification settings - Fork 2
adding deployment yamls #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,94 @@ | ||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: kruize-optimizer | ||
| # Namespace is set via kustomize overlays to avoid duplicating manifests per environment | ||
| labels: | ||
| app: kruize-optimizer | ||
| spec: | ||
| replicas: 1 | ||
| selector: | ||
| matchLabels: | ||
| app: kruize-optimizer | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: kruize-optimizer | ||
| spec: | ||
| containers: | ||
| - name: kruize-optimizer | ||
| # TODO: This image will be updated with kruize org image | ||
| image: quay.io/rh-ee-shesaxen/optimizer:06042026 | ||
| imagePullPolicy: Always | ||
| ports: | ||
| - containerPort: 8080 | ||
| env: | ||
| # Swagger UI Configuration | ||
| - name: ENABLE_SWAGGER | ||
| value: "false" | ||
|
|
||
| # Kruize Service URL | ||
| # In k8s: http://<service-name>.<namespace>:<port> | ||
| - name: KRUIZE_URL | ||
| value: "http://kruize:8080" | ||
|
|
||
| # State Refresh Configuration | ||
| # Interval to refresh state and install missing profiles | ||
| - name: KRUIZE_STATE_REFRESH_INTERVAL | ||
| value: "60m" | ||
|
|
||
| # Bulk Scheduler Configuration | ||
| # Interval to call bulk API (cron format or duration) | ||
| - name: KRUIZE_BULK_SCHEDULER_INTERVAL | ||
| value: "15m" | ||
|
|
||
| # Startup delay before first bulk API call | ||
| - name: KRUIZE_BULK_SCHEDULER_STARTUP_DELAY | ||
| value: "1m" | ||
|
|
||
| # Measurement duration for bulk API calls | ||
| - name: KRUIZE_BULK_MEASUREMENT_DURATION | ||
| value: "15min" | ||
|
|
||
| # Webhook Configuration | ||
| # Webhook URL for bulk API callbacks | ||
| - name: KRUIZE_WEBHOOK_URL | ||
| value: "http://kruize-optimizer:8080/webhook" | ||
|
|
||
| # Target Labels Configuration | ||
| # Max number of labels to process | ||
| - name: KRUIZE_TARGET_LABEL_LIMIT | ||
| value: "1" | ||
|
|
||
| # Pass labels as a JSON String (Object or Array of "key=value") | ||
| - name: KRUIZE_TARGET_LABELS | ||
| value: '{"kruize/autotune": "enabled"}' | ||
|
|
||
| # Default Configuration | ||
| # Default datasource name | ||
| - name: KRUIZE_DEFAULT_DATASOURCE | ||
| value: "prometheus-1" | ||
|
|
||
| # Default metadata profile name | ||
| - name: KRUIZE_DEFAULT_METADATA_PROFILE | ||
| value: "cluster-metadata-local-monitoring" | ||
|
|
||
| # Default metric profile name | ||
| - name: KRUIZE_DEFAULT_METRIC_PROFILE | ||
| value: "resource-optimization-local-monitoring" | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: kruize-optimizer | ||
| # Namespace is set via kustomize overlays | ||
| spec: | ||
| type: ClusterIP | ||
| selector: | ||
| app: kruize-optimizer | ||
| ports: | ||
| - name: http | ||
| port: 8080 | ||
| targetPort: 8080 | ||
|
|
||
| # Made with Bob | ||
This file contains hidden or 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,6 @@ | ||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||
| kind: Kustomization | ||
|
|
||
| resources: | ||
| - deployment.yaml | ||
|
|
This file contains hidden or 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,8 @@ | ||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||
| kind: Kustomization | ||
|
|
||
| namespace: monitoring | ||
|
|
||
| resources: | ||
| - ../../base | ||
|
|
This file contains hidden or 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,8 @@ | ||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||
| kind: Kustomization | ||
|
|
||
| namespace: openshift-tuning | ||
|
|
||
| resources: | ||
| - ../../base | ||
|
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.