In the following exam, you’re gonna implement a logical autoscaler software that pulls…
- User
In the following exam, you’re gonna implement a logical autoscaler software that pulls scaling configurations and scales relevant K8S deployments replicas.
The autoscaler can be written in any language (preferred Python) The autoscaler will pull the scaling configurations with REST API: url: http://wscdevopsexam.eastus.azurecontainer.io path: /autoscale method: GET The scaling configuration is a list of deployments and the target replicas for each deployment. Based on the configurations, the autoscaler will scale the deployment’s replicas All the deployments are in “wsc” namespace Bonus: Create a Dockerfile to pack your software Bonus: Create a README.md file
- Assistant
Autoscaler Dockerfile
FROM python:3.8-slim-buster
Set the working directory in the container
WORKDIR /usr/src/app
Copy the current directory contents into the container at /usr/src/app
COPY . .
Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
Make port 80 available to the world outside this container
EXPOSE 80
Define environment variable
ENV NAME World
- User
In the following exam, you’re gonna implement a logical autoscaler software that pulls scaling configurations and scales relevant K8S deployments replicas.
The autoscaler can be written in any language (preferred Python) The autoscaler will pull the scaling configurations with REST API: url: http://wscdevopsexam.eastus.azurecontainer.io path: /autoscale method: GET The scaling configuration is a list of deployments and the target replicas for each deployment. Based on the configurations, the autoscaler will scale the deployment’s replicas All the deployments are in “wsc” namespace Bonus: Create a Dockerfile to pack your software Bonus: Create a README.md file
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.