Skip to content

Commit

Permalink
adding hub-nfts chart
Browse files Browse the repository at this point in the history
  • Loading branch information
mpwsh committed Mar 1, 2023
1 parent a989a5b commit 6e4fb52
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
10 changes: 10 additions & 0 deletions charts/hub-nfts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ spec:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
volumeMounts:
- name: solana-keypair
mountPath: /app/keypair.json
subPath: keypair.json
readOnly: true
livenessProbe:
httpGet:
path: /health
Expand All @@ -52,6 +57,11 @@ spec:
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:
- name: solana-keypair
secret:
secretName: {{ print (include "hub-nfts.fullname" .) "-keypair" }}
optional: false
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
12 changes: 12 additions & 0 deletions charts/hub-nfts/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,17 @@ type: Opaque
data:
DATABASE_URL: {{ .entries.databaseUrl | b64enc }}
KAFKA_PASSWORD: {{ .entries.kafkaPassword | b64enc }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ print (include "hub-nfts.fullname" $) "-keypair" }}
annotations:
"helm.sh/hook": pre-install
type: Opaque
data:
keypair.json: |-
{{ required "must set secrets.solanaKeyPair" .entries.solanaKeyPair | b64enc }}
{{- end }}
{{- end }}

4 changes: 3 additions & 1 deletion charts/hub-nfts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@ secrets:
entries:
databaseUrl: ""
kafkaPassword: ""
solanaKeyPair: |
""
environment:
port: "80"
kafkaBrokers: "hub-eventbus-cluster-0.hub-eventbus-cluster.default.svc.cluster.local.:9093"
kafkaUsername: ""
kafkaSsl: false
keyPairPath: "./keypair.json"
keyPairPath: "/app/keypair.json"
solanaEndpoint: "https://api.devnet.solana.com"

0 comments on commit 6e4fb52

Please sign in to comment.