Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-meshproxy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-meshproxy
Commits
071c5f59
Commit
071c5f59
authored
Oct 21, 2019
by
gaoshiyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c60b5efd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
17 deletions
+19
-17
.beagle.yml
.beagle.yml
+11
-11
.gitignore
.gitignore
+2
-1
src/main.go
src/main.go
+6
-5
No files found.
.beagle.yml
View file @
071c5f59
...
...
@@ -42,15 +42,15 @@ pipeline:
target
:
REGISTRY_PASSWORD
when
:
branch
:
[
master
]
#
deploy:
#
image: registry-vpc.cn-qingdao.aliyuncs.com/wod-devops/kubernetes:1.0
# namespace: apaas
#
deployment: apaas-meshproxy
#
container: apaas-meshproxy
#
registry: hub.wodcloud.com
#
secrets:
#
- source: KUBERNETES_SERVER
#
target: KUBERNETES_SERVER
#
- source: KUBERNETES_TOKEN
#
target: KUBERNETES_TOKEN
deploy
:
image
:
registry-vpc.cn-qingdao.aliyuncs.com/wod-devops/kubernetes:1.0
namespace
:
cig
deployment
:
apaas-meshproxy
container
:
apaas-meshproxy
registry
:
hub.wodcloud.com
secrets
:
-
source
:
KUBERNETES_SERVER
target
:
KUBERNETES_SERVER
-
source
:
KUBERNETES_TOKEN
target
:
KUBERNETES_TOKEN
.gitignore
View file @
071c5f59
.vscode
.idea/
vendor
__debug_bin
\ No newline at end of file
src/main.go
View file @
071c5f59
...
...
@@ -14,6 +14,7 @@ import (
var
(
argPort
=
pflag
.
Int
(
"port"
,
8088
,
""
)
argPrefix
=
pflag
.
String
(
"prefix"
,
"/vuemap"
,
""
)
redisUrl
=
pflag
.
String
(
"redisUrl"
,
"redis://redis:16379"
,
""
)
redisTag
=
pflag
.
String
(
"redisTag"
,
"apaas-mesh-proxy"
,
""
)
)
...
...
@@ -24,8 +25,8 @@ func main() {
initConfig
()
proxyhandler
,
_
:=
handler
.
CreateProxyHandler
()
counthandler
,
_
:=
handler
.
CreateCountHandler
()
http
.
Handle
(
"/count"
,
counthandler
)
http
.
Handle
(
"/"
,
proxyhandler
)
http
.
Handle
(
fmt
.
Sprintf
(
"%s%s"
,
*
argPrefix
,
"/count"
)
,
counthandler
)
http
.
Handle
(
*
argPrefix
+
"/"
,
proxyhandler
)
if
err
:=
http
.
ListenAndServe
(
fmt
.
Sprintf
(
":%d"
,
*
argPort
),
nil
);
err
!=
nil
{
log
.
Error
(
"Listen Server err:"
,
err
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment