Skip to content

kdcllc/bet.ks8s

Repository files navigation

bet.ks8s

Master CI/CD

The goal of this repo is two fold:

  1. GitHub Actions Docker Images build and deployment
  2. To publish nuget packages to feedz.io from dev branch with versioning and nuget.org on master page.

Goals

  • Setup Github action for nuget packages

  • Setup Github action for docker build

  • Create a test webapi HPA test in the cluster

    # initialization
    dotnet tye init

    # runs locally
    dotnet tye run

    # generates simple deployment yaml
    dotnet tye generate
    
    # deploys
    dotnet tye deploy  -v Debug
    
    # displays resources that would be deleted
    dotnet tye undeploy --what-if
    kubectl apply -f "deploy.yaml" -n bet
    kubectl delete -f "deploy.yaml" -n bet

    kubectl port-forward pods/bet-k8s-api-554d7967df-68z5v 5080:80 -n bet

Download bombardier/

    bombardier --duration=60s --rate=20 --timeout=20s https://betapi.kingdavidconsulting.com

    kubectl api-versions

    bombardier --duration=5m --rate=100 --timeout=20s https://betapi.kingdavidconsulting.com
    

References