-
Notifications
You must be signed in to change notification settings - Fork 332
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
db88c85
commit 6c3e7f5
Showing
147 changed files
with
1,613 additions
and
2,276 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
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,32 +1,36 @@ | ||
{{- if .Values.printNotes }} | ||
{{- if .Values.server.enabled }} | ||
{{- $ctx := dict "helm" . "appKey" "server" "style" "plain" }} | ||
{{- $fqdn := include "vm.fqdn" $ctx }} | ||
{{- $url := include "vm.url" $ctx }} | ||
{{- $fullname := (include "vm.plain.fullname" $ctx) }} | ||
The VictoriaLogs write api can be accessed via port {{ .Values.server.service.servicePort }} on the following DNS name from within your cluster: | ||
{{ include "victoria-logs.server.fullname" . }}.{{ include "vm.namespace" . }}.svc.cluster.local | ||
{{ $fqdn }} | ||
|
||
|
||
Logs Ingestion: | ||
Get the Victoria Logs service URL by running these commands in the same shell: | ||
|
||
{{- if contains "NodePort" .Values.server.service.type }} | ||
export NODE_PORT=$(kubectl get --namespace {{ include "vm.namespace" . }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "victoria-logs.server.fullname" . }}) | ||
export NODE_PORT=$(kubectl get --namespace {{ include "vm.namespace" . }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ $fullname }}) | ||
export NODE_IP=$(kubectl get nodes --namespace {{ include "vm.namespace" . }} -o jsonpath="{.items[0].status.addresses[0].address}") | ||
echo http://$NODE_IP:$NODE_PORT | ||
{{- else if contains "LoadBalancer" .Values.server.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 svc --namespace {{ include "vm.namespace" . }} -w {{ include "victoria-logs.server.fullname" . }}' | ||
You can watch the status of by running 'kubectl get svc --namespace {{ include "vm.namespace" . }} -w {{ $fullname }}' | ||
|
||
export SERVICE_IP=$(kubectl get svc --namespace {{ include "vm.namespace" . }} {{ include "victoria-logs.server.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') | ||
export SERVICE_IP=$(kubectl get svc --namespace {{ include "vm.namespace" . }} {{ include $fullname }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') | ||
echo http://$SERVICE_IP:{{ .Values.server.service.servicePort }} | ||
{{- else if contains "ClusterIP" .Values.server.service.type }} | ||
export POD_NAME=$(kubectl get pods --namespace {{ include "vm.namespace" . }} -l "app={{ .Values.global.victoriaLogs.server.name }}" -o jsonpath="{.items[0].metadata.name}") | ||
export POD_NAME=$(kubectl get pods --namespace {{ include "vm.namespace" . }} -l "app={{ include "vm.app.name" $ctx }}" -o jsonpath="{.items[0].metadata.name}") | ||
kubectl --namespace {{ include "vm.namespace" . }} port-forward $POD_NAME {{ .Values.server.service.servicePort }} | ||
{{- end }} | ||
|
||
Write url inside the kubernetes cluster: | ||
http://{{ include "victoria-logs.server.fullname" . }}.{{ include "vm.namespace" . }}.svc.cluster.local:{{ .Values.server.service.servicePort }}/ | ||
{{ $url }} | ||
|
||
Read Data: | ||
The following url can be used to query data:: | ||
http://{{ include "victoria-logs.server.fullname" . }}.{{ include "vm.namespace" . }}.svc.cluster.local:{{ .Values.server.service.servicePort }} | ||
The following url can be used to query data: | ||
{{ $url }} | ||
{{- end }} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
{{- if .Values.podDisruptionBudget.enabled }} | ||
{{- $pdb := .Values.podDisruptionBudget }} | ||
{{- if $pdb.enabled }} | ||
{{- $ctx := (dict "helm" . "extraLabels" $pdb.labels) }} | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ include "victoria-logs.fullname" . }} | ||
name: {{ include "vm.fullname" . }} | ||
namespace: {{ include "vm.namespace" . }} | ||
{{- $ctx := merge (deepCopy .) (dict "extraLabels" .Values.podDisruptionBudget.labels) }} | ||
labels: {{ include "victoria-logs.common.metaLabels" $ctx | nindent 4 }} | ||
spec: | ||
{{- with .Values.podDisruptionBudget.minAvailable }} | ||
{{- with $pdb.minAvailable }} | ||
minAvailable: {{ . }} | ||
{{- end }} | ||
{{- with .Values.podDisruptionBudget.maxUnavailable }} | ||
{{- with $pdb.maxUnavailable }} | ||
maxUnavailable: {{ . }} | ||
{{- end }} | ||
selector: | ||
matchLabels: {{ include "victoria-logs.server.matchLabels" . | nindent 6 }} | ||
matchLabels: {{ include "victoria-logs.server.matchLabels" (omit $ctx "extraLabels") | nindent 6 }} | ||
{{- 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 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
Oops, something went wrong.