Skip to content

Dashboard showing deployed assets for wM API Gateway. Based on Python and run via Docker.

Notifications You must be signed in to change notification settings

AronKa-SAG/apigw-cicd-dashboard

Repository files navigation

apigw-cicd-dashboard

Dashboard showing deployed assets for wM API Gateway. Based on Python and run via Docker.

start and stop aks cluster

if needed: manual login in azure

az login

starting aks

az aks start --name dashboard --resource-group apigw-dashboard
az aks stop --name dashboard --resource-group apigw-dashboard

az aks show --name dashboard --resource-group apigw-dashboard | ConvertFrom-Json | Select-Object powerState | ConvertTo-Json
kubectl scale --replicas=0 deployment/dashboard -n aka-dashboard
kubectl get pods -n aka-dashboard

kubectl config to aks cluster

kubectl config use-context dashboard
kubectl get pods -n aka-dashboard

use ADO to build and deploy image

The ADO pipeline is triggered by the creation of tags. When you create a new tag, the pipeline builds (and publishes) the new version of the image. Next the image will be deployed to the AKS cluster, using the the k8s deployment manifest in this repo.

create a new tag

git tag 1.0

push tag to repo

git push origin 1.0

delete tag locally

git tag --delete 1.0

build locally

docker build -t dashboard:0.9 .
kubectl config use-context rancher-desktop
kubectl delete -f dashboard_deployment_modified.yaml
kubectl apply -f dashboard_deployment_modified.yaml

docker run -d -p 8080:8080 dashboard:0.9

upload image to repo

docker image tag dashboard:0.9 sagtestclient/aron-docker:dashboard-1.0
docker image push sagtestclient/aron-docker:dashboard-1.0

About

Dashboard showing deployed assets for wM API Gateway. Based on Python and run via Docker.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages