Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k8syml
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
k8syml
Commits
1e258f87
Commit
1e258f87
authored
Aug 03, 2020
by
DESKTOP-7Q3CA17\86137
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.gongsibao.com/jiangyong/k8syml
parents
7a7a274a
c3714391
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
yamls/main.js
+6
-1
yamls/zhichan/newtime/zzb-deliver-deployment.yaml
+1
-1
No files found.
yamls/main.js
View file @
1e258f87
...
@@ -4,8 +4,13 @@ var app = express();
...
@@ -4,8 +4,13 @@ var app = express();
var
bodyParser
=
require
(
'body-parser'
);
var
bodyParser
=
require
(
'body-parser'
);
app
.
use
(
bodyParser
.
json
({
limit
:
'50mb'
}));
app
.
use
(
bodyParser
.
json
({
limit
:
'50mb'
}));
var
server
=
http
.
createServer
(
app
);
var
server
=
http
.
createServer
(
app
);
app
.
post
(
"/upline"
,
function
(
req
,
res
,
next
)
{
const
util
=
require
(
'util'
);
const
exec
=
util
.
promisify
(
require
(
'child_process'
).
exec
);
app
.
post
(
"/upline"
,
async
function
(
req
,
res
,
next
)
{
console
.
log
(
req
.
body
,
"..........................."
)
console
.
log
(
req
.
body
,
"..........................."
)
let
{
stdout
,
stderr
}
=
await
exec
(
'ls'
)
console
.
log
(
'stdout:'
,
stdout
);
console
.
error
(
'stderr:'
,
stderr
);
res
.
end
(
"ok"
)
res
.
end
(
"ok"
)
})
})
server
.
listen
(
31199
,
function
()
{
server
.
listen
(
31199
,
function
()
{
...
...
yamls/zhichan/newtime/zzb-deliver-deployment.yaml
View file @
1e258f87
...
@@ -18,7 +18,7 @@ spec:
...
@@ -18,7 +18,7 @@ spec:
restartPolicy
:
Always
restartPolicy
:
Always
containers
:
containers
:
-
name
:
icp-deliver
-
name
:
icp-deliver
image
:
registry.cn-beijing.aliyuncs.com/hantang2/imgshare:1220.0.2
4
image
:
registry.cn-beijing.aliyuncs.com/hantang2/imgshare:1220.0.2
5
imagePullPolicy
:
IfNotPresent
imagePullPolicy
:
IfNotPresent
ports
:
ports
:
-
containerPort
:
80
-
containerPort
:
80
...
...
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