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
2fdae73b
Commit
2fdae73b
authored
Aug 29, 2019
by
Anton Borisov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update app.tpl.yml
parent
213445d3
Pipeline
#641
passed with stages
in 19 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
336 additions
and
14 deletions
+336
-14
app.tpl.yml
app.tpl.yml
+336
-14
No files found.
app.tpl.yml
View file @
2fdae73b
---
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
node1-deny-traffic-except-platform
namespace
:
test
spec
:
podSelector
:
matchLabels
:
app
:
node1
policyTypes
:
-
Ingress
-
Egress
ingress
:
-
from
:
-
ipBlock
:
cidr
:
10.233.0.0/17
-
from
:
-
ipBlock
:
cidr
:
151.101.112.249/32
egress
:
-
to
:
-
ipBlock
:
cidr
:
10.233.0.0/17
-
to
:
-
ipBlock
:
cidr
:
151.101.112.249/32
---
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
node2-deny-traffic-except-platform
namespace
:
test
spec
:
podSelector
:
matchLabels
:
app
:
node2
policyTypes
:
-
Ingress
-
Egress
ingress
:
-
from
:
-
ipBlock
:
cidr
:
10.233.0.0/17
-
from
:
-
ipBlock
:
cidr
:
151.101.112.249/32
egress
:
-
to
:
-
ipBlock
:
cidr
:
10.233.0.0/17
-
to
:
-
ipBlock
:
cidr
:
151.101.112.249/32
---
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
node3-deny-traffic-except-platform
namespace
:
test
spec
:
podSelector
:
matchLabels
:
app
:
node3
policyTypes
:
-
Ingress
-
Egress
ingress
:
-
from
:
-
ipBlock
:
cidr
:
10.233.0.0/17
-
from
:
-
ipBlock
:
cidr
:
151.101.112.249/32
egress
:
-
to
:
-
ipBlock
:
cidr
:
10.233.0.0/17
-
to
:
-
ipBlock
:
cidr
:
151.101.112.249/32
---
kind
:
PersistentVolume
apiVersion
:
v1
metadata
:
name
:
pv-node1
namespace
:
test
labels
:
type
:
local
spec
:
storageClassName
:
hostssd
capacity
:
storage
:
10Gi
accessModes
:
-
ReadWriteOnce
hostPath
:
path
:
"
/mnt/node1"
---
kind
:
PersistentVolumeClaim
apiVersion
:
v1
metadata
:
name
:
pv-node1-claim
namespace
:
test
spec
:
storageClassName
:
hostssd
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
10Gi
---
kind
:
PersistentVolume
apiVersion
:
v1
metadata
:
name
:
pv-node2
namespace
:
test
labels
:
type
:
local
spec
:
storageClassName
:
hostssd
capacity
:
storage
:
10Gi
accessModes
:
-
ReadWriteOnce
hostPath
:
path
:
"
/mnt/node2"
---
kind
:
PersistentVolumeClaim
apiVersion
:
v1
metadata
:
name
:
pv-node2-claim
namespace
:
test
spec
:
storageClassName
:
hostssd
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
10Gi
---
kind
:
PersistentVolume
apiVersion
:
v1
metadata
:
name
:
pv-node3
namespace
:
test
labels
:
type
:
local
spec
:
storageClassName
:
hostssd
capacity
:
storage
:
10Gi
accessModes
:
-
ReadWriteOnce
hostPath
:
path
:
"
/mnt/node3"
---
kind
:
PersistentVolumeClaim
apiVersion
:
v1
metadata
:
name
:
pv-node3-claim
namespace
:
test
spec
:
storageClassName
:
hostssd
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
10Gi
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
node1
namespace
:
test
labels
:
app
:
node1
spec
:
ports
:
-
name
:
node1-api
port
:
56833
targetPort
:
node1-api
selector
:
app
:
node1
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
node1
labels
:
app
:
node1
namespace
:
test
spec
:
replicas
:
1
revisionHistoryLimit
:
2
strategy
:
type
:
RollingUpdate
rollingUpdate
:
maxSurge
:
1
maxUnavailable
:
0
selector
:
matchLabels
:
app
:
node1
template
:
metadata
:
labels
:
app
:
node1
spec
:
containers
:
-
name
:
node1
image
:
_IMAGE_NAME_:_VERSION_
command
:
[
"
dotnet"
]
args
:
[
"
DeStream.DeStreamD.dll"
,
"
-addnode=node2"
,
"
-addnode=node3"
,
"
IpRangeFiltering=false"
]
ports
:
-
name
:
node1-api
containerPort
:
56833
volumeMounts
:
-
name
:
pv-node1
mountPath
:
"
/root/.destreamnode"
nodeName
:
node1
imagePullSecrets
:
-
name
:
registrypullsecret
volumes
:
-
name
:
pv-node1
persistentVolumeClaim
:
claimName
:
pv-node1-claim
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
node2
namespace
:
test
labels
:
app
:
node2
spec
:
ports
:
-
name
:
node2-api
port
:
56833
targetPort
:
node2-api
selector
:
app
:
node2
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
node2
labels
:
app
:
node2
namespace
:
test
spec
:
replicas
:
1
revisionHistoryLimit
:
2
strategy
:
type
:
RollingUpdate
rollingUpdate
:
maxSurge
:
1
maxUnavailable
:
0
selector
:
matchLabels
:
app
:
node2
template
:
metadata
:
labels
:
app
:
node2
spec
:
containers
:
-
name
:
node2
image
:
_IMAGE_NAME_:_VERSION_
command
:
[
"
dotnet"
]
args
:
[
"
DeStream.DeStreamD.dll"
,
"
-addnode=node1"
,
"
-addnode=node3"
,
"
IpRangeFiltering=false"
]
ports
:
-
name
:
node2-api
containerPort
:
56833
volumeMounts
:
-
name
:
pv-node2
mountPath
:
"
/root/.destreamnode"
nodeName
:
node2
imagePullSecrets
:
-
name
:
registrypullsecret
volumes
:
-
name
:
pv-node2
persistentVolumeClaim
:
claimName
:
pv-node2-claim
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
node3
namespace
:
test
labels
:
app
:
node3
spec
:
ports
:
-
name
:
node3-api
port
:
56833
targetPort
:
node3-api
selector
:
app
:
node3
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
node
name
:
node
3
labels
:
app
:
node
app
:
node
3
namespace
:
test
spec
:
replicas
:
3
replicas
:
1
revisionHistoryLimit
:
2
strategy
:
type
:
Recreate
type
:
RollingUpdate
rollingUpdate
:
maxSurge
:
1
maxUnavailable
:
0
selector
:
matchLabels
:
app
:
node
app
:
node
3
template
:
metadata
:
labels
:
app
:
node
app
:
node
3
spec
:
containers
:
-
name
:
node
-
name
:
node
3
image
:
_IMAGE_NAME_:_VERSION_
command
:
[
"
dotnet"
]
args
:
[
"
DeStream.DeStreamD.dll"
]
args
:
[
"
DeStream.DeStreamD.dll"
,
"
-addnode=node1"
,
"
-addnode=node2"
,
"
IpRangeFiltering=false"
]
ports
:
-
name
:
node-api
-
name
:
node
3
-api
containerPort
:
56833
-
name
:
node-svc
containerPort
:
56864
volumeMounts
:
-
name
:
pv-node
-test
-
name
:
pv-node
3
mountPath
:
"
/root/.destreamnode"
nodeName
:
node3
imagePullSecrets
:
-
name
:
registrypullsecret
volumes
:
-
name
:
pv-node
-test
-
name
:
pv-node
3
persistentVolumeClaim
:
claimName
:
pv-node-test-claim
\ No newline at end of file
claimName
:
pv-node3-claim
\ No newline at end of file
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