forked from paritytech/substrate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add kubernetes helm chart and gcp deployment (paritytech#1854)
* ci: add kubernetes helm chart and gcp deployment * use official or parity's docker images only
- Loading branch information
Showing
11 changed files
with
426 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: substrate | ||
version: 0.1 | ||
appVersion: 0.9.1 | ||
description: "Substrate: The platform for blockchain innovators" | ||
home: https://substrate.network/ | ||
icon: https://substrate.network/favicon.ico | ||
sources: | ||
- https://github.com/paritytech/substrate/ | ||
maintainers: | ||
- name: Paritytech Devops Team | ||
email: [email protected] | ||
tillerVersion: ">=2.8.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
|
||
# Substrate Kubernetes Helm Chart | ||
|
||
This [Helm Chart](https://helm.sh/) can be used for deploying containerized | ||
**Substrate** to a [Kubernetes](https://kubernetes.io/) cluster. | ||
|
||
|
||
## Prerequisites | ||
|
||
- Tested on Kubernetes 1.10.7-gke.6 | ||
|
||
## Installation | ||
|
||
To install the chart with the release name `my-release` into namespace | ||
`my-namespace` from within this directory: | ||
|
||
```console | ||
$ helm install --namespace my-namespace --name my-release --values values.yaml ./ | ||
``` | ||
|
||
The command deploys Substrate on the Kubernetes cluster in the configuration | ||
given in `values.yaml`. When the namespace is omitted it'll be installed in | ||
the default one. | ||
|
||
|
||
## Removal of the Chart | ||
|
||
To uninstall/delete the `my-release` deployment: | ||
|
||
```console | ||
$ helm delete --namespace my-namespace my-release | ||
``` | ||
|
||
The command removes all the Kubernetes components associated with the chart and deletes the release. | ||
|
||
|
||
## Upgrading | ||
|
||
Once the chart is installed and a new version should be deployed helm takes | ||
care of this by | ||
|
||
```console | ||
$ helm upgrade --namespace my-namespace --values values.yaml my-release ./ | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: policy/v1beta1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: substrate | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: substrate | ||
maxUnavailable: 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{- if .Values.validator.keys }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: substrate-secrets | ||
labels: | ||
app: substrate | ||
type: Opaque | ||
data: | ||
secrets: {{ .Values.validator.keys | default "" }} | ||
{{- end }} |
Oops, something went wrong.