Skip to content
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

start of the k8s cluster #69

Closed

Conversation

jmikedupont2
Copy link

  • Description: Start of k8s deployment
  • Issue: deployment of swarms to k8s/faas
  • Dependencies: adding submodules to vendors
    cc @kyegomez
  • Twitter handle: @introsp3ctor
    Work in progress, please dont merge

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello there, thank you for opening an PR ! 🙏🏻 The team was notified and they will get back to you asap.

@jmikedupont2
Copy link
Author

jmikedupont2 commented Jul 25, 2024

@jmikedupont2
Copy link
Author

Using terraformer to import, then

upgrade the generated state with
tofu state replace-provider registry.opentofu.org/-/aws hashicorp/aws

then generate imports with
tf-import-gen

@jmikedupont2
Copy link
Author

Apply worked.

@jmikedupont2
Copy link
Author

next I will make sure the service is reachable,
also we will want to build the docker image from github actions or aws codebuild,
and we also want to slim down the docker image and also add in the health checks

@jmikedupont2
Copy link
Author

@kyegomez now in the pr you have the k8s cluster, the docker compose test, a test routine, a deploy routine, some readme how I built it, and it fails to run the application code just like locally.

@jmikedupont2
Copy link
Author

return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/api.py", line 148, in agent_completions
    completions=ChatCompletionResponse(
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pydantic/main.py", line 193, in __init__
    self.__pydantic_validator__.validate_python(data, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 4 validation errors for ChatCompletionResponse
model
  Field required [type=missing, input_value={'choices': [{'index': 0,...2, completion_tokens=1)}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.8/v/missing
object
  Field required [type=missing, input_value={'choices': [{'index': 0,...2, completion_tokens=1)}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.8/v/missing
choices.0.ChatCompletionResponseChoice.message.role
  Input should be 'assistant' [type=literal_error, input_value='Swarm Agent', input_type=str]
    For further information visit https://errors.pydantic.dev/2.8/v/literal_error
choices.0.ChatCompletionResponseStreamChoice.delta
  Field required [type=missing, input_value={'index': 0, 'message': {...ent': '', 'name': None}}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.8/v/missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants