Giter Site home page Giter Site logo

geek's Introduction

运行

go run httpserver/main.go --config ./httpserver/etc/config.toml

接口文档

swag安装

go install github.com/swaggo/swag/cmd/swag@latest

生成接口文档

make generate 

查看接口文档

http://127.0.0.1:8080/swagger/index.html

生成镜像

make httpserver-image

k8s部署

kubectl apply -f https://raw.githubusercontent.com/asinglestep/geek/master/httpserver/deployment/deployment.yaml

prometheus监控

httpserver/prometheus/httpserver.json

istio ingress gateway部署

openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -subj '/O=cncamp Inc./CN=*.cncamp.com' -keyout cncamp.com.key -out cncamp.com.crt
kubectl create -n istio-system secret tls cncamp-credential --key=cncamp.com.key --cert=cncamp.com.crt

kubectl create ns tracing
kubectl label ns tracing istio-injection=enabled
kubectl apply -f istio.yaml

测试

kubectl get svc -n istio-system istio-ingressgateway
export INGRESS=10.99.43.20
curl --resolve httpserver.cncamp.com:443:$INGRESS https://httpserver.cncamp.com/random -v -k

geek's People

Contributors

liu1536326836 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.