Skip to content

Commit a74cdf1

Browse files
authored
Merge pull request #119 from holaplex/espi/solana-indexer
Solana Indexer Deployment
2 parents 2e302f3 + 4df8abf commit a74cdf1

File tree

4 files changed

+72
-1
lines changed

4 files changed

+72
-1
lines changed

charts/hub-nfts-solana/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type: application
1818
# This is the chart version. This version number should be incremented each time you make changes
1919
# to the chart and its templates, including the app version.
2020
# Versions are expected to follow Semantic Versioning (https://semver.org/)
21-
version: 0.2.0
21+
version: 0.3.0
2222

2323
# This is the version number of the application being deployed. This version number should be
2424
# incremented each time you make changes to the application. Versions are not expected to
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{{- if .Values.indexer.enabled }}
2+
apiVersion: apps/v1
3+
kind: Deployment
4+
metadata:
5+
name: {{ include "hub-nfts-solana.fullname" . }}-indexer
6+
labels:
7+
{{- include "hub-nfts-solana.labels" . | nindent 4 }}
8+
app.kubernetes.io/component: indexer
9+
spec:
10+
replicas: 1
11+
selector:
12+
matchLabels:
13+
{{- include "hub-nfts-solana.selectorLabels" . | nindent 6 }}
14+
app.kubernetes.io/component: indexer
15+
template:
16+
metadata:
17+
{{- with .Values.podAnnotations }}
18+
annotations:
19+
{{- toYaml . | nindent 8 }}
20+
{{- end }}
21+
labels:
22+
{{- include "hub-nfts-solana.selectorLabels" . | nindent 8 }}
23+
app.kubernetes.io/component: indexer
24+
spec:
25+
{{- with .Values.imagePullSecrets }}
26+
imagePullSecrets:
27+
{{- toYaml . | nindent 8 }}
28+
{{- end }}
29+
serviceAccountName: {{ include "hub-nfts-solana.serviceAccountName" . }}
30+
securityContext:
31+
{{- toYaml .Values.podSecurityContext | nindent 8 }}
32+
containers:
33+
- name: {{ .Chart.Name }}-indexer
34+
securityContext:
35+
{{- toYaml .Values.securityContext | nindent 12 }}
36+
{{- with .Values.indexer.image }}
37+
image: "{{ .repository }}:{{ .tag | default $.Chart.AppVersion }}"
38+
imagePullPolicy: {{ .pullPolicy }}
39+
{{- end }}
40+
envFrom:
41+
- configMapRef:
42+
name: {{ include "hub-nfts-solana.fullname" . }}
43+
- secretRef:
44+
name: {{ include "hub-nfts-solana.fullname" . }}
45+
resources:
46+
{{- toYaml .Values.resources | nindent 12 }}
47+
{{- with .Values.nodeSelector }}
48+
nodeSelector:
49+
{{- toYaml . | nindent 8 }}
50+
{{- end }}
51+
{{- with .Values.affinity }}
52+
affinity:
53+
{{- toYaml . | nindent 8 }}
54+
{{- end }}
55+
{{- with .Values.tolerations }}
56+
tolerations:
57+
{{- toYaml . | nindent 8 }}
58+
{{- end }}
59+
{{- end }}

charts/hub-nfts-solana/templates/secrets.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ data:
1111
DATABASE_URL: {{ .entries.databaseUrl | b64enc }}
1212
KAFKA_PASSWORD: {{ .entries.kafkaPassword | b64enc }}
1313
SOLANA_ENDPOINT: {{ .entries.solanaEndpoint | b64enc }}
14+
DRAGON_MOUTH_ENDPOINT: {{ .entries.dragonMouthEndpoint | b64enc }}
15+
DRAGON_MOUTH_X_TOKEN: {{ .entries.dragonMouthXToken | b64enc }}
1416
{{- end }}
1517
{{- end }}
1618

charts/hub-nfts-solana/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ migrate:
1111
# Overrides the image tag whose default is the chart appVersion.
1212
tag: "latest"
1313

14+
indexer:
15+
enabled: false
16+
image:
17+
repository: holaplex/hub-nfts-solana-indexer
18+
pullPolicy: IfNotPresent
19+
# Overrides the image tag whose default is the chart appVersion.
20+
tag: "latest"
21+
1422
image:
1523
repository: holaplex/hub-nfts-solana
1624
pullPolicy: IfNotPresent
@@ -88,6 +96,8 @@ secrets:
8896
solanaEndpoint: ""
8997
kafkaPassword: ""
9098
databaseUrl: ""
99+
dragonMouthEndpoint: ""
100+
dragonMouthXToken: ""
91101

92102
environment:
93103
kafkaBrokers: "hub-eventbus-cluster-0.hub-eventbus-cluster.default.svc.cluster.local.:9093"

0 commit comments

Comments
 (0)