Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
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
魏国强
Charts
Commits
bd77438b
Commit
bd77438b
authored
May 08, 2021
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setup chia deployment
parent
ec5554b8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
45 deletions
+4
-45
charts/chia/1.0.0/templates/deployment.yaml
charts/chia/1.0.0/templates/deployment.yaml
+4
-36
charts/chia/1.0.0/templates/service.yaml
charts/chia/1.0.0/templates/service.yaml
+0
-8
charts/chia/1.0.0/templates/serviceaccount.yaml
charts/chia/1.0.0/templates/serviceaccount.yaml
+0
-1
No files found.
charts/chia/1.0.0/templates/deployment.yaml
View file @
bd77438b
...
...
@@ -13,46 +13,14 @@ spec:
name
:
{{
template "common.names.fullname" .
}}
labels
:
{{
include "common.labels.selectorLabels" . | nindent 8
}}
spec
:
serviceAccountName
:
{{
include "common.names.serviceAccountName" . | quote
}}
initContainers
:
-
name
:
init-init
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
command
:
[
'
/bin/sh'
,
'
-c'
,
'
[
!
-e
/data/ipfs/config
]
&&
(/usr/local/bin/ipfs
init
;
chown
-R
1000:100
/data/ipfs)
;
exit
0'
]
{{
include "common.storage.allContainerVolumeMounts" .Values | nindent 10
}}
-
name
:
init-api
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
command
:
[
'
/usr/local/bin/ipfs'
,
'
config'
,
'
Addresses.API'
,
"
/ip4/0.0.0.0/tcp/9501"
]
{{
include "common.storage.allContainerVolumeMounts" .Values | nindent 10
}}
-
name
:
init-gateway
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
command
:
[
'
/usr/local/bin/ipfs'
,
'
config'
,
'
Addresses.Gateway'
,
"
/ip4/0.0.0.0/tcp/9080"
]
{{
include "common.storage.allContainerVolumeMounts" .Values | nindent 10
}}
-
name
:
init-swarm
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
command
:
[
'
/usr/local/bin/ipfs'
,
'
config'
,
'
--json'
,
'
Addresses.Swarm'
,
"
[
\"
/ip4/0.0.0.0/tcp/9401
\"
,
\"
/ip4/0.0.0.0/tcp/9401/quic
\"
]"
]
{{
include "common.storage.allContainerVolumeMounts" .Values | nindent 10
}}
-
name
:
init-access-origin
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
command
:
[
'
/usr/local/bin/ipfs'
,
'
config'
,
'
--json'
,
'
API.HTTPHeaders.Access-Control-Allow-Origin'
,
"
[
\"
*
\"
]"
]
{{
include "common.storage.allContainerVolumeMounts" .Values | nindent 10
}}
-
name
:
init-access-methods
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
command
:
[
'
/usr/local/bin/ipfs'
,
'
config'
,
'
--json'
,
'
API.HTTPHeaders.Access-Control-Allow-Methods'
,
"
[
\"
PUT
\"
,
\"
POST
\"
]"
]
{{
include "common.storage.allContainerVolumeMounts" .Values | nindent 10
}}
-
name
:
init-chown
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
command
:
[
'
chown'
,
'
1000:100'
,
'
/data/ipfs/config'
]
{{
include "common.storage.allContainerVolumeMounts" .Values | nindent 10
}}
containers
:
-
name
:
{{
.Chart.Name
}}
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
{{
include "common.storage.allContainerVolumeMounts" .Values | nindent 10
}}
ports
:
-
name
:
swarm
containerPort
:
9401
-
name
:
api
containerPort
:
9501
-
name
:
gateway
containerPort
:
9880
-
name
:
chia-network
protocol
:
TCP
containerPort
:
8444
hostPort
:
8444
{{
include "common.containers.allEnvironmentVariables" .Values | nindent 10
}}
{{
include "common.storage.allAppVolumes" .Values | nindent 6
}}
charts/chia/1.0.0/templates/service.yaml
deleted
100644 → 0
View file @
ec5554b8
{{
$svc
:
= .Values.service
}}
{{
$ports
:
= list
}}
{{
$ports = mustAppend $ports (dict "name" "swarm" "port" $svc.swarmPort "nodePort" $svc.swarmPort "targetPort" 9401)
}}
{{
$ports = mustAppend $ports (dict "name" "api" "port" $svc.apiPort "nodePort" $svc.apiPort "targetPort" 9501)
}}
{{
$ports = mustAppend $ports (dict "name" "gateway" "port" $svc.gatewayPort "nodePort" $svc.gatewayPort "targetPort" 9880)
}}
{{
$params
:
= .
}}
{{
$_
:
= set $params "commonService" (dict "type" "NodePort" "ports" $ports )
}}
{{
include "common.classes.service" $params
}}
charts/chia/1.0.0/templates/serviceaccount.yaml
deleted
100644 → 0
View file @
ec5554b8
{{
include "common.serviceaccount" .
}}
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