Skip to main content Link Menu Expand (external link) Document Search Copy Copied
Table of contents
  1. Container Image
  2. Helm chart
  3. kubectl label namespace dynamic-inventory cert-manager.io/disable-validation=true
    1. Known issues

Container Image

Helm chart

  1. Create Helm chart

     helm create devices-api
    
    
  2. Define repository

    set repository value into images dictionary in values.yaml

     image:
       repository: aksbootstrap.azurecr.io/dynamic-inventory/devices-api
    
    

kubectl create namespace dynamic-inventory

kubectl label namespace dynamic-inventory cert-manager.io/disable-validation=true

helm create inventory-api

helm upgrade inventoryconfigurationapi .\configuration-api\ ` –install ` –values .\configuration-api\values.yaml ` –namespace dynamic-inventory ` –set image.tag=915 ` –set postgres.host=postgresql.postgresql ` –set postgres.database=ConfigurationDB ` –set postgres.user=configurationdb_rw ` –set postgres.password=test

https://anthonychu.ca/post/aspnet-core-appsettings-secrets-kubernetes/

kubectl create secret generic secret-appsettings –from-file=./../temp/appsettings.secrets.json

EF : https://dotnetthoughts.net/run-ef-core-migrations-in-azure-devops/ https://learn.microsoft.com/en-us/ef/core/managing-schemas/migrations/applying?tabs=dotnet-core-cli

dotnet ef migrations script –output ..\databases\configuration\configurationDB.sql –idempotent -s .\configuration\Inventory.Configuration.Api\ -p .\configuration\Inventory.Configuration.Infrastructure\

Known issues

  1. Semantic version for docker

    Doesn’t support +

  2. Semantic version for helm

     OCI artifact references (e.g. tags) do not support the plus sign (+). To support
     storing semantic versions, Helm adopts the convention of changing plus (+) to
     an underscore (_) in chart version tags when pushing to a registry and back to
     a plus (+) when pulling from a registry.