-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ace483
commit 2591c67
Showing
9 changed files
with
232 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
{{- define "graph-node.name" -}} | ||
{{- define "graphnode.name" -}} | ||
{{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{- define "graph-node.fullname" -}} | ||
{{ include "graph-node.name" . }}-graph-node | ||
{{- define "graphnode.fullname" -}} | ||
{{ include "graphnode.name" . }}-graph-node | ||
{{- end }} | ||
|
||
{{/* | ||
Namepsace to deploy elements into. | ||
*/}} | ||
{{- define "graphnode.namespace" -}} | ||
{{- default .Release.Namespace .Values.global.namespaceOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- end }} |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,53 +1,50 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: graph-node | ||
namespace: {{ .Values.global.namespaceOverride | default .Release.Namespace }} | ||
namespace: {{ include "graphnode.namespace" . }} | ||
spec: | ||
selector: | ||
app: graph-node | ||
ports: | ||
- name: http | ||
port: {{ .Values.graphNode.ports.http | default 8000 }} | ||
targetPort: {{ .Values.graphNode.ports.http | default 8000 }} | ||
port: {{ .Values.graphNode.ports.http }} | ||
targetPort: {{ .Values.graphNode.ports.http }} | ||
- name: json-rpc | ||
port: {{ .Values.graphNode.ports.jsonRpc | default 8001 }} | ||
targetPort: {{ .Values.graphNode.ports.jsonRpc | default 8001 }} | ||
port: {{ .Values.graphNode.ports.jsonRpc }} | ||
targetPort: {{ .Values.graphNode.ports.jsonRpc }} | ||
- name: index-node | ||
port: {{ .Values.graphNode.ports.indexNode | default 8020 }} | ||
targetPort: {{ .Values.graphNode.ports.indexNode | default 8020 }} | ||
port: {{ .Values.graphNode.ports.indexNode }} | ||
targetPort: {{ .Values.graphNode.ports.indexNode }} | ||
- name: metrics | ||
port: {{ .Values.graphNode.ports.metrics | default 8030 }} | ||
targetPort: {{ .Values.graphNode.ports.metrics | default 8030 }} | ||
port: {{ .Values.graphNode.ports.metrics }} | ||
targetPort: {{ .Values.graphNode.ports.metrics }} | ||
- name: subgraph-metrics | ||
port: {{ .Values.graphNode.ports.subgraphMetrics | default 8040 }} | ||
targetPort: {{ .Values.graphNode.ports.subgraphMetrics | default 8040 }} | ||
|
||
port: {{ .Values.graphNode.ports.subgraphMetrics }} | ||
targetPort: {{ .Values.graphNode.ports.subgraphMetrics }} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: ipfs | ||
namespace: {{ .Values.global.namespaceOverride | default .Release.Namespace }} | ||
namespace: {{ include "graphnode.namespace" . }} | ||
spec: | ||
selector: | ||
app: ipfs | ||
ports: | ||
- name: api | ||
port: {{ .Values.ipfs.ports.api | default 5001 }} | ||
targetPort: {{ .Values.ipfs.ports.api | default 5001 }} | ||
|
||
port: {{ .Values.ipfs.ports.api }} | ||
targetPort: {{ .Values.ipfs.ports.api }} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: postgres | ||
namespace: {{ .Values.global.namespaceOverride | default .Release.Namespace }} | ||
namespace: {{ include "graphnode.namespace" . }} | ||
spec: | ||
selector: | ||
app: postgres | ||
ports: | ||
- name: postgres | ||
port: {{ .Values.postgres.ports.postgres | default 5432 }} | ||
targetPort: {{ .Values.postgres.ports.postgres | default 5432 }} | ||
port: {{ .Values.postgres.ports.postgres }} | ||
targetPort: {{ .Values.postgres.ports.postgres }} |
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,13 @@ | ||
{{/* We only want to create a storage class if we are local. */}} | ||
{{/* For production, you need to create a StorageClass on GKE. */}} | ||
{{- if or (and .Values.ipfs.storage.enabled .Values.ipfs.storage.local) (and .Values.postgres.storage.enabled .Values.postgres.storage.local) }} | ||
{{- range $key, $value := .Values.storage.entities }} | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: {{ include "graphnode.name" $ }}-{{ $value.persistentVolumeName }}-graph-node-local | ||
provisioner: kubernetes.io/no-provisioner | ||
volumeBindingMode: WaitForFirstConsumer | ||
reclaimPolicy: Retain | ||
{{- end }} | ||
{{- end }} |
Oops, something went wrong.