-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59739b8
commit a1f3587
Showing
20 changed files
with
1,370 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM golang:alpine | ||
WORKDIR /app | ||
COPY ./go.mod . | ||
RUN go mod download | ||
COPY . . | ||
CMD ["go", "run", "src/server.go"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module gitee.com/lizi/test-bot | ||
|
||
go 1.16 | ||
|
||
require ( | ||
gitee.com/openeuler/go-gitee v0.0.0-20210427125813-de0b78ea30e9 | ||
github.com/antihax/optional v1.0.0 | ||
github.com/robfig/cron/v3 v3.0.1 | ||
github.com/sirupsen/logrus v1.8.1 | ||
golang.org/x/oauth2 v0.0.0-20210427180440-81ed05c6b58c | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: back-cluster-ip | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
component: back | ||
ports: | ||
- port: 8008 | ||
targetPort: 8008 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: back | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
component: back | ||
template: | ||
metadata: | ||
labels: | ||
component: back | ||
spec: | ||
containers: | ||
- name: back | ||
image: robekeane/test-bot:0.41 | ||
ports: | ||
- containerPort: 8008 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: networking.k8s.io/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: ingress-service | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
spec: | ||
rules: | ||
- http: | ||
paths: | ||
- backend: | ||
serviceName: back-cluster-ip | ||
servicePort: 8008 | ||
path: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
adb08695039522366c4a645e1e6a3dd4 |
Oops, something went wrong.