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
region=us-east1 | |
zone=${region}-b | |
project_id=[YOUR_PROJECT_ID] | |
gcloud config set compute/zone ${zone} | |
gcloud config set project ${project_id} | |
gcloud container clusters create custom-fluentbit \ | |
--zone $zone \ | |
--logging=SYSTEM \ |
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
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: fluent-bit | |
namespace: logging | |
labels: | |
k8s-app: fluent-bit-logging | |
version: v1 | |
kubernetes.io/cluster-service: "true" | |
spec: |
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
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: fluent-bit | |
namespace: logging | |
labels: | |
k8s-app: fluent-bit-logging | |
version: v1 | |
kubernetes.io/cluster-service: "true" | |
spec: |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: fluent-bit-config | |
namespace: logging | |
labels: | |
k8s-app: fluent-bit | |
data: | |
# Configuration files: server, input, filters and output | |
# ====================================================== |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: fluent-bit-config | |
namespace: logging | |
labels: | |
k8s-app: fluent-bit | |
data: | |
# Configuration files: server, input, filters and output | |
# ====================================================== |
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
#!/bin/bash | |
# Get curent project id | |
export PROJECT_ID=$(gcloud config get-value project) | |
echo "Current project id: $PROJECT_ID" | |
# Suppress Python 2 warning in Cloud Shell | |
mkdir -p ~/.cloudshell | |
touch ~/.cloudshell/no-python-warning |