Skip to content

Service for mapping IAM roles to k8s cluster roles

License

Notifications You must be signed in to change notification settings

wangyu0426/k8s-janitor

 
 

Repository files navigation

k8s-janitor Service

Build Status

Service managing k8s cluster with our business logics.

Development

Prerequisites

  • .NET Core 2.1 SDK (download)
  • Docker (any relatively new version will do)

Other than the above prerequisites this application requires no additional special setup on your machine. Open the solution or root folder in your editor of choice and start cracking!

Running the application locally

To run the application locally you have two options e.g. in a container or directly on your machine using dotnet cli.

Environment variables

Not defined yet.

Running in a container

To run the application you first need to execute a script located in the repository root. This will restore any dependencies and build both the application and also a container image using Docker. Run the following on your command line in the repository root:

$ ./pipeline.sh

Please note: the script above is a linux bash script and needs a bash runtime to execute.

Now you should be able to start a container by running the following on your command line:

$ docker run -it --rm -p 8080:80 k8s-janitor

You should be able to navigate to http://localhost:8080 in a browser.

Running with dotnet cli

To run the application on your local machine run the following on your command line in the /src folder in your repository:

$ dotnet build

Followed by:

$ dotnet run --project K8sJanitor.WebApi/K8sJanitor.WebApi.csproj

About

Service for mapping IAM roles to k8s cluster roles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 96.2%
  • Shell 3.7%
  • Dockerfile 0.1%