Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
destream-blockchain
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
destream-blockchain
Commits
4a0e28b9
Commit
4a0e28b9
authored
Mar 05, 2020
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update by ank
parent
3f0bc3a5
Pipeline
#1438
passed with stages
in 4 minutes and 47 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
19 deletions
+37
-19
.gitlab-ci.yml
.gitlab-ci.yml
+6
-0
app-nako-scanner.tpl.yml
app-nako-scanner.tpl.yml
+30
-0
app.tpl.yml
app.tpl.yml
+1
-19
No files found.
.gitlab-ci.yml
View file @
4a0e28b9
...
@@ -55,9 +55,15 @@ build_prod:
...
@@ -55,9 +55,15 @@ build_prod:
deploy_to_test
:
deploy_to_test
:
stage
:
deploy_to_test
stage
:
deploy_to_test
script
:
script
:
# - sed 's|_IMAGE_NAME_|'"${CI_REGISTRY_IMAGE}/prod"'|g; s|_VERSION_|'"${CI_PIPELINE_ID}"'|g' app-dst-client.tpl.yml > app-dst-client.yml; cat app-dst-client.yml
-
sed 's|_IMAGE_NAME_|'"${CI_REGISTRY_IMAGE}/prod"'|g; s|_VERSION_|'"${CI_PIPELINE_ID}"'|g' app-nako-scanner.tpl.yml > app-nako-scanner.yml; cat app-nako-scanner.yml
-
sed 's|_IMAGE_NAME_|'"${CI_REGISTRY_IMAGE}/test"'|g; s|_VERSION_|'"${CI_PIPELINE_ID}"'|g' app.tpl.yml > app.yml; cat app.yml
-
sed 's|_IMAGE_NAME_|'"${CI_REGISTRY_IMAGE}/test"'|g; s|_VERSION_|'"${CI_PIPELINE_ID}"'|g' app.tpl.yml > app.yml; cat app.yml
-
wget https://storage.googleapis.com/kubernetes-release/release/v1.13.3/bin/linux/amd64/kubectl && chmod +x ./kubectl
-
wget https://storage.googleapis.com/kubernetes-release/release/v1.13.3/bin/linux/amd64/kubectl && chmod +x ./kubectl
-
wget https://github.com/garethr/kubeval/releases/download/0.7.3/kubeval-linux-amd64.tar.gz && tar xvf kubeval-linux-amd64.tar.gz && ./kubeval app.yml
-
wget https://github.com/garethr/kubeval/releases/download/0.7.3/kubeval-linux-amd64.tar.gz && tar xvf kubeval-linux-amd64.tar.gz && ./kubeval app.yml
# - ./kubeval app-dst-client.yml
-
./kubeval app-nako-scanner.yml
# - ./kubectl apply -f app-dst-client.yml
-
./kubectl apply -f app-nako-scanner.yml
-
./kubectl apply -f app.yml
-
./kubectl apply -f app.yml
environment
:
environment
:
name
:
${CI_COMMIT_REF_NAME}
name
:
${CI_COMMIT_REF_NAME}
...
...
app-nako-scanner.tpl.yml
View file @
4a0e28b9
---
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
node-scanner-deny-traffic-except-platform
namespace
:
test
spec
:
podSelector
:
matchLabels
:
app
:
node-scanner
policyTypes
:
-
Ingress
-
Egress
ingress
:
-
from
:
-
ipBlock
:
cidr
:
10.233.0.0/17
ports
:
-
protocol
:
TCP
port
:
56833
port
:
5000
egress
:
-
to
:
-
ipBlock
:
cidr
:
10.233.0.0/17
ports
:
-
protocol
:
TCP
port
:
56833
port
:
5000
---
---
apiVersion
:
apps/v1
apiVersion
:
apps/v1
kind
:
Deployment
kind
:
Deployment
...
...
app.tpl.yml
View file @
4a0e28b9
...
@@ -15,9 +15,6 @@ spec:
...
@@ -15,9 +15,6 @@ spec:
-
from
:
-
from
:
-
ipBlock
:
-
ipBlock
:
cidr
:
10.233.0.0/17
cidr
:
10.233.0.0/17
-
from
:
-
ipBlock
:
cidr
:
151.101.112.249/32
ports
:
ports
:
-
protocol
:
TCP
-
protocol
:
TCP
port
:
56833
port
:
56833
...
@@ -25,9 +22,6 @@ spec:
...
@@ -25,9 +22,6 @@ spec:
-
to
:
-
to
:
-
ipBlock
:
-
ipBlock
:
cidr
:
10.233.0.0/17
cidr
:
10.233.0.0/17
-
to
:
-
ipBlock
:
cidr
:
151.101.112.249/32
ports
:
ports
:
-
protocol
:
TCP
-
protocol
:
TCP
port
:
56833
port
:
56833
...
@@ -49,9 +43,6 @@ spec:
...
@@ -49,9 +43,6 @@ spec:
-
from
:
-
from
:
-
ipBlock
:
-
ipBlock
:
cidr
:
10.233.0.0/17
cidr
:
10.233.0.0/17
-
from
:
-
ipBlock
:
cidr
:
151.101.112.249/32
ports
:
ports
:
-
protocol
:
TCP
-
protocol
:
TCP
port
:
56833
port
:
56833
...
@@ -59,9 +50,6 @@ spec:
...
@@ -59,9 +50,6 @@ spec:
-
to
:
-
to
:
-
ipBlock
:
-
ipBlock
:
cidr
:
10.233.0.0/17
cidr
:
10.233.0.0/17
-
to
:
-
ipBlock
:
cidr
:
151.101.112.249/32
ports
:
ports
:
-
protocol
:
TCP
-
protocol
:
TCP
port
:
56833
port
:
56833
...
@@ -83,9 +71,6 @@ spec:
...
@@ -83,9 +71,6 @@ spec:
-
from
:
-
from
:
-
ipBlock
:
-
ipBlock
:
cidr
:
10.233.0.0/17
cidr
:
10.233.0.0/17
-
from
:
-
ipBlock
:
cidr
:
151.101.112.249/32
ports
:
ports
:
-
protocol
:
TCP
-
protocol
:
TCP
port
:
56833
port
:
56833
...
@@ -93,9 +78,6 @@ spec:
...
@@ -93,9 +78,6 @@ spec:
-
to
:
-
to
:
-
ipBlock
:
-
ipBlock
:
cidr
:
10.233.0.0/17
cidr
:
10.233.0.0/17
-
to
:
-
ipBlock
:
cidr
:
151.101.112.249/32
ports
:
ports
:
-
protocol
:
TCP
-
protocol
:
TCP
port
:
56833
port
:
56833
...
...
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