chore: 增加健康检测功能

This commit is contained in:
2022-01-16 12:21:02 +08:00
parent cbc392ce08
commit fb29788734
129 changed files with 14041 additions and 203 deletions

View File

@@ -1,7 +1,7 @@
SHELL := /bin/bash
run:
go run main.go
go run app/services/sales-api/main.go
build:
go build -ldflags "-X main.build=local"
@@ -9,7 +9,7 @@ build:
# =========================================================
# Building containers
VERSION :=1.1
VERSION :=1.2
all: sales-api
@@ -37,9 +37,12 @@ kind-down:
kind delete cluster --name $(KIND_CLUSTER)
kind-status:
kubectl get nodes -o wide
kubectl get svc -o wide
kubectl get pods -o wide
kubectl get nodes -o wide -A
kubectl get svc -o wide -A
kubectl get pods -o wide -A
kind-status-sales:
kubectl get pods -o wide -w
kind-load:
cd zarf/k8s/kind/sales-pod; kustomize edit set image sales-api-image=sales-api-amd64:$(VERSION)