-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into hpa-v1-fallback
- Loading branch information
Showing
20 changed files
with
297 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Dockerfiles for specific clouds | ||
|
||
This directory will include Dockerfiles for various cloud providers. | ||
|
||
## AWS | ||
|
||
For the usage of `krr` container we need the Dockerfile to have `awscli` installed on it. | ||
The `aws.Dockerfile` is a modified `krr` dockerfile which includes: | ||
- installation of curl & zip | ||
- installation of awscli | ||
|
||
|
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,28 @@ | ||
# Use the official Python 3.9 slim image as the base image | ||
FROM python:3.9-slim as builder | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Install system dependencies required for Poetry | ||
RUN apt-get update && \ | ||
dpkg --add-architecture arm64 | ||
|
||
COPY ./requirements.txt requirements.txt | ||
|
||
# Install the project dependencies | ||
RUN pip install -r requirements.txt | ||
|
||
# Install curl and unzip for awscli | ||
RUN apt-get -y update; apt-get -y install curl; apt-get -y install unzip | ||
|
||
# Download awscli and unzip it | ||
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \ | ||
unzip awscliv2.zip && \ | ||
./aws/install | ||
|
||
# Copy the rest of the application code | ||
COPY . . | ||
|
||
# Run the application using 'poetry run krr simple' | ||
ENTRYPOINT ["python", "krr.py", "simple"] |
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
1 change: 1 addition & 0 deletions
1
robusta_krr/core/integrations/prometheus/metrics/base_filtered_metric.py
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
3 changes: 2 additions & 1 deletion
3
robusta_krr/core/integrations/prometheus/metrics/cpu_metric.py
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
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
8 changes: 4 additions & 4 deletions
8
robusta_krr/core/integrations/prometheus/metrics_service/thanos_metrics_service.py
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
Oops, something went wrong.