mirror of
https://github.com/lukaszraczylo/helm-charts.git
synced 2026-06-28 04:35:00 +00:00
71 lines
3.9 KiB
Plaintext
71 lines
3.9 KiB
Plaintext
** GoHoarder has been installed! **
|
|
|
|
1. Get the application URL by running these commands:
|
|
{{- if .Values.ingress.enabled }}
|
|
{{- if .Values.ingress.frontend.enabled }}
|
|
http{{ if .Values.ingress.frontend.tls.enabled }}s{{ end }}://{{ .Values.ingress.frontend.host | default (printf "%s.%s" "gohoarder" .Values.global.domain) }}
|
|
{{- end }}
|
|
{{- else if contains "NodePort" .Values.frontend.service.type }}
|
|
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "gohoarder.fullname" . }}-frontend)
|
|
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.frontend.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 "gohoarder.fullname" . }}-frontend'
|
|
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "gohoarder.fullname" . }}-frontend --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
|
|
echo http://$SERVICE_IP:{{ .Values.frontend.service.port }}
|
|
{{- else if contains "ClusterIP" .Values.frontend.service.type }}
|
|
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "gohoarder.name" . }},app.kubernetes.io/instance={{ .Release.Name }},app.kubernetes.io/component=frontend" -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 }}
|
|
|
|
2. Admin API Key:
|
|
{{- if .Values.auth.enabled }}
|
|
{{- if .Values.auth.existingSecret }}
|
|
The admin API key is stored in the existing secret: {{ .Values.auth.existingSecret }}
|
|
|
|
To retrieve it:
|
|
kubectl get secret {{ .Values.auth.existingSecret }} -n {{ .Release.Namespace }} -o jsonpath='{.data.{{ .Values.auth.secretKey }}}' | base64 -d
|
|
{{- else if .Values.auth.adminApiKey }}
|
|
The admin API key you provided: {{ .Values.auth.adminApiKey }}
|
|
{{- else }}
|
|
A random admin API key has been generated. To retrieve it:
|
|
kubectl get secret {{ include "gohoarder.fullname" . }}-auth -n {{ .Release.Namespace }} -o jsonpath='{.data.{{ .Values.auth.secretKey }}}' | base64 -d
|
|
{{- end }}
|
|
{{- else }}
|
|
Authentication is disabled.
|
|
{{- end }}
|
|
|
|
3. Configuration:
|
|
- Storage backend: {{ .Values.storage.backend }}
|
|
- Metadata backend: {{ .Values.metadata.backend }}
|
|
- Security scanning: {{ if .Values.security.enabled }}enabled{{ else }}disabled{{ end }}
|
|
{{- if .Values.security.enabled }}
|
|
- Active scanners:
|
|
{{- range $scanner, $config := .Values.security.scanners }}
|
|
{{- if $config.enabled }}
|
|
* {{ $scanner }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
4. Package Proxies:
|
|
Configure your package managers to use GoHoarder:
|
|
|
|
NPM:
|
|
npm config set registry http://{{ include "gohoarder.fullname" . }}-server.{{ .Release.Namespace }}.svc.cluster.local/npm/
|
|
|
|
Go:
|
|
export GOPROXY=http://{{ include "gohoarder.fullname" . }}-server.{{ .Release.Namespace }}.svc.cluster.local/go,direct
|
|
|
|
PyPI:
|
|
pip config set global.index-url http://{{ include "gohoarder.fullname" . }}-server.{{ .Release.Namespace }}.svc.cluster.local/pypi/simple
|
|
|
|
5. Health Checks:
|
|
- Server health: http://{{ include "gohoarder.fullname" . }}-server.{{ .Release.Namespace }}.svc.cluster.local/health
|
|
- Server ready: http://{{ include "gohoarder.fullname" . }}-server.{{ .Release.Namespace }}.svc.cluster.local/health/ready
|
|
|
|
For more information, visit: https://github.com/lukaszraczylo/gohoarder
|