From cb25f650ca26fe6812c26ff4757cf4318e8c513c Mon Sep 17 00:00:00 2001 From: cuisongliu Date: Thu, 13 Jan 2022 20:44:01 +0800 Subject: [PATCH 1/2] feat(main): add ci --- .github/workflows/go.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7b0defd..b08aabd 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -31,3 +31,27 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} VERSION: latest + - name: set up buildx + id: buildx + uses: crazy-max/ghaction-docker-buildx@v1 + with: + version: latest + + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: build (and publish) main image + env: + # fork friendly ^^ + DOCKER_REPO: ghcr.io/${{ github.repository_owner }}/endpoints-operator + run: | + docker buildx build \ + --platform linux/amd64,linux/arm64 \ + --build-arg VERSION=dev \ + --push \ + -t ${DOCKER_REPO}:dev \ + -f Dockerfile \ + . From 017ed22f5e260b07fa9327f38249389673b4dedf Mon Sep 17 00:00:00 2001 From: cuisongliu Date: Thu, 13 Jan 2022 22:16:00 +0800 Subject: [PATCH 2/2] feat(main): add docs --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a0c9aa4..7961a7b 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,10 @@ subsets: protocol: TCP ``` -这样手动设置了对应的 +这样手动设置了对应的endpoint我们就可以通过service进行访问,但是有个缺点就是如果服务挂掉kube-proxy并检测不到对应的IP是否通讯OK。这个controller主要就是解决这两个问题: + +1. 设置cr同步对应的service和endpoint +2. 定时轮训IP如果探针有问题 ## Usage