Adding dependencies, binary autostart
This commit is contained in:
20
opencloud/charts/loki/docs/examples/oss/README.md
Normal file
20
opencloud/charts/loki/docs/examples/oss/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
## Introduction
|
||||
This example gives you an example or getting started overrides value file for deploying Loki (OSS) using the Simple Scalable architecture in GKE and using GCS
|
||||
|
||||
## Installation of Helm Chart
|
||||
These instructions assume you have already have access to a Kubernetes cluster, GCS Bucket and GCP Service Account which has read/write permissions to that GCS Bucket.
|
||||
|
||||
### Populate Secret Values
|
||||
Populate the examples/enterprise/enterprise-secrets.yaml so that:
|
||||
- The gcp_service_account.json secret has the contents of your GCP Service Account JSON key
|
||||
|
||||
Deploy the secrets file to your k8s cluster.
|
||||
|
||||
`kubectl apply -f loki-secrets.yaml`
|
||||
|
||||
### Configure the Helm Chart
|
||||
Open examples/enterprise/overides-oss-gcs.yaml and replace `{YOUR_GCS_BUCKET}` with the name of your GCS bucket. If there are other things you'd like to configure, view the core [Values.yaml file](https://github.com/grafana/loki/blob/main/production/helm/loki/values.yaml) and override anything else you need to within the overrides-enterprise-gcs.yaml file.
|
||||
|
||||
### Install the Helm chart
|
||||
|
||||
`helm upgrade --install --values {PATH_TO_YOUR_OVERRIDES_YAML_FILE} {YOUR_RELEASE_NAME} grafana/loki-simple-scalable --namespace {KUBERNETES_NAMESPACE}`
|
||||
10
opencloud/charts/loki/docs/examples/oss/oss-secrets.yaml
Normal file
10
opencloud/charts/loki/docs/examples/oss/oss-secrets.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: loki-secrets
|
||||
type: Opaque
|
||||
stringData:
|
||||
gcp_service_account.json: |
|
||||
{
|
||||
GCP_SERVICE_ACCOUNT_JSON_HERE
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
enterprise:
|
||||
enabled: false
|
||||
adminApi:
|
||||
enabled: false
|
||||
useExternalLicense: false
|
||||
|
||||
config: |
|
||||
admin_client:
|
||||
storage:
|
||||
gcs:
|
||||
bucket_name: {YOUR_GCS_BUCKET}
|
||||
auth:
|
||||
type: trust
|
||||
auth_enabled: false
|
||||
cluster_name: loki-logs
|
||||
|
||||
loki:
|
||||
auth_enabled: false
|
||||
|
||||
commonConfig:
|
||||
path_prefix: /var/loki
|
||||
replication_factor: 3
|
||||
|
||||
storage:
|
||||
type: gcs
|
||||
bucketNames:
|
||||
chunks: {YOUR_GCS_BUCKET}
|
||||
ruler: {YOUR_GCS_BUCKET}
|
||||
admin: {YOUR_GCS_BUCKET}
|
||||
|
||||
minio:
|
||||
enabled: false
|
||||
|
||||
write:
|
||||
extraEnv:
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: "/etc/loki_secrets/gcp_service_account.json"
|
||||
extraVolumeMounts:
|
||||
- name: loki-secrets
|
||||
mountPath: "/etc/loki_secrets"
|
||||
extraVolumes:
|
||||
- name: loki-secrets
|
||||
secret:
|
||||
secretName: loki-secrets
|
||||
items:
|
||||
- key: gcp_service_account.json
|
||||
path: gcp_service_account.json
|
||||
|
||||
read:
|
||||
extraEnv:
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: "/etc/loki_secrets/gcp_service_account.json"
|
||||
extraVolumeMounts:
|
||||
- name: loki-secrets
|
||||
mountPath: "/etc/loki_secrets"
|
||||
extraVolumes:
|
||||
- name: loki-secrets
|
||||
secret:
|
||||
secretName: loki-secrets
|
||||
items:
|
||||
- key: gcp_service_account.json
|
||||
path: gcp_service_account.json
|
||||
|
||||
gateway:
|
||||
extraEnv:
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: "/etc/loki_secrets/gcp_service_account.json"
|
||||
extraVolumeMounts:
|
||||
- name: loki-secrets
|
||||
mountPath: "/etc/loki_secrets"
|
||||
extraVolumes:
|
||||
- name: loki-secrets
|
||||
secret:
|
||||
secretName: loki-secrets
|
||||
items:
|
||||
- key: gcp_service_account.json
|
||||
path: gcp_service_account.json
|
||||
Reference in New Issue
Block a user