Skip to content

Commit

Permalink
update scoretrak helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisibrahimd committed Oct 16, 2021
1 parent 06866e8 commit 1f2af24
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 19 deletions.
6 changes: 3 additions & 3 deletions charts/scoretrak/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
version: 0.1.8
- name: commercebackend
repository: file://../commercebackend
version: 0.1.6
version: 0.1.7
- name: commerceui
repository: file://../commerceui
version: 0.1.1
Expand All @@ -23,5 +23,5 @@ dependencies:
- name: nsq
repository: https://beeinventor.github.io/charts
version: 1.2.0
digest: sha256:583351be3ecff80379e6ab3e5d73181457a065099fc833e89a96786a06ac1dc9
generated: "2021-10-15T17:03:20.312751006-04:00"
digest: sha256:7236d01102346adc210ec4d5d38913532dee1c930cb4af661d42bfcf49e9c80d
generated: "2021-10-16T09:42:28.225213-04:00"
7 changes: 4 additions & 3 deletions charts/scoretrak/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.17
version: 0.1.18

dependencies:
- name: envoy
Expand All @@ -31,7 +31,7 @@ dependencies:
version: "0.1.8"
repository: "file://../payments"
- name: commercebackend
version: "0.1.6"
version: "0.1.7"
repository: "file://../commercebackend"
- name: commerceui
version: "0.1.1"
Expand All @@ -41,4 +41,5 @@ dependencies:
repository: "https://charts.cockroachdb.com/"
- name: nsq
version: "1.2.0"
repository: "https://beeinventor.github.io/charts"
repository: "https://beeinventor.github.io/charts"
condition: nsq.use
29 changes: 29 additions & 0 deletions charts/scoretrak/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
1. Passwords

export SCORETRAK_PASSWORD=$(kubectl get --namespace {{ .Release.Namespace }} -o yaml secrets {{ include "call-nested" ( list . "scoretrak" "scoretrak.fullname" ) }} | yq e '.data.SCORETRAK_PASS' - | base64d)
export PAYMENTS_PASSWORD=$(kubectl get --namespace {{ .Release.Namespace }} -o yaml secrets {{ include "call-nested" ( list . "payments" "payments.fullname" ) }} | yq e '.data.PAYMENTS_PASS' - | base64d)
echo $SCORETRAK_PASSWORD | pbcopy
echo $PAYMENTS_PASSWORD | pbcopy

2. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
{{- range .paths }}
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "payments.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "payments.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "payments.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "payments.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
{{- end }}
16 changes: 3 additions & 13 deletions charts/scoretrak/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,14 @@ commerceui:
payments:
config:
create: false


# COCKROACHDB SUB HELM CHART VALUES

cockroachdb:
statefulset:
replicas: 3
resources:
limits:
memory: "2Gi"
requests:
memory: "2Gi"
storage:
persistentVolume:
enabled: false
size: "5Gi"
conf:
cache: "500Mi"
max-sql-memory: "500Mi"
max-offset: 1000ms
size: "10Gi"
tls:
enabled: true

Expand Down

0 comments on commit 1f2af24

Please sign in to comment.