Creating a New Service
- Create a new folder in
/cmd/
with poetry new NAME
- Add dependencies as needed with
poetry add LIBRARY
, and then poetry lock
to lock the dependencies in
- Follow an existing module like
dotnet
to see how the Dockerfile should be structured for Poetry.
- Create/test a .Dockerfile and place it in in ./dockerfiles/
- You can build the dockerfile independently with
~/ods$ docker build -f ./dockerfiles/<SERVICE>.Dockerfile .
- In ./helm/nemesis/templates/ create (based on existing examples):
./<SERVICE>.deployment.yaml
./<SERVICE>.service.yaml
- In skaffold.yaml:
- Add the service under the build, profile/artifacts, and kubectl/manifests sections
- (Optionally) Expose the port in the portForward section