Skip to content

Commit

Permalink
fluentbit use service account
Browse files Browse the repository at this point in the history
  • Loading branch information
iQQBot committed Apr 24, 2024
1 parent 70a348e commit 35f0f37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
9 changes: 0 additions & 9 deletions dev/preview/workflow/preview/deploy-gitpod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,6 @@ function refreshImagePullSecret {

# Install Fluent-Bit sending logs to GCP
function installFluentBit {
secret=$(gcloud secrets versions access latest --secret="fluent-bit-external" --project=${PREVIEW_GCP_PROJECT})
kubectl \
create secret generic "fluent-bit-external" --namespace="${PREVIEW_NAMESPACE}" --dry-run=client -oyaml \
| yq4 eval-all ".data = $secret" \
| kubectl \
--kubeconfig "${PREVIEW_K3S_KUBE_PATH}" \
--context "${PREVIEW_K3S_KUBE_CONTEXT}" \
apply -n ${PREVIEW_NAMESPACE} -f -

helm3 \
--kubeconfig "${PREVIEW_K3S_KUBE_PATH}" \
--kube-context "${PREVIEW_K3S_KUBE_CONTEXT}" \
Expand Down
17 changes: 3 additions & 14 deletions dev/preview/workflow/vm/charts/fluentbit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@ config:
[OUTPUT]
Name stackdriver
Match *
env:
- name: GOOGLE_SERVICE_CREDENTIALS
value: /gcp/credentials.json

extraVolumes:
- name: fluent-bit-external
secret:
secretName: fluent-bit-external
defaultMode: 420

extraVolumeMounts:
- name: fluent-bit-external
mountPath: /gcp
region europe-west1
zone europe-west1-c
project_id gitpod-dev-preview

0 comments on commit 35f0f37

Please sign in to comment.