Skip to content

Commit

Permalink
chor: install kuttl in vagrant
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Rosiek <[email protected]>
  • Loading branch information
Dominik Rosiek committed Jun 29, 2023
1 parent 1543bed commit ebb777e
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 96 deletions.
189 changes: 95 additions & 94 deletions helm/tests/values.withCustomConfiguration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,110 +9,111 @@ sidecar:
tag: test

config:
fluent-bit.conf: |
[SERVICE]
# Flush
# =====
# set an interval of seconds before to flush records to a destination
flush 1
content:
fluent-bit.conf: |
[SERVICE]
# Flush
# =====
# set an interval of seconds before to flush records to a destination
flush 1
# Daemon
# ======
# instruct Fluent Bit to run in foreground or background mode.
daemon Off
# Daemon
# ======
# instruct Fluent Bit to run in foreground or background mode.
daemon Off
# Log_Level
# =========
# Set the verbosity level of the service, values can be:
#
# - error
# - warning
# - info
# - debug
# - trace
#
# e.g. when 'info' is set, that means it includes 'error' and 'warning'.
log_level ${LOG_LEVEL}
# Log_Level
# =========
# Set the verbosity level of the service, values can be:
#
# - error
# - warning
# - info
# - debug
# - trace
#
# e.g. when 'info' is set, that means it includes 'error' and 'warning'.
log_level ${LOG_LEVEL}
# Parsers File
# ============
# specify an optional 'Parsers' configuration file
parsers_file parsers.conf
# Parsers File
# ============
# specify an optional 'Parsers' configuration file
parsers_file parsers.conf
# Plugins File
# ============
# specify an optional 'Plugins' configuration file to load external plugins.
plugins_file plugins.conf
# Plugins File
# ============
# specify an optional 'Plugins' configuration file to load external plugins.
plugins_file plugins.conf
# HTTP Server
# ===========
# Enable/Disable the built-in HTTP Server for metrics
http_server Off
http_listen 0.0.0.0
http_port 2020
# HTTP Server
# ===========
# Enable/Disable the built-in HTTP Server for metrics
http_server Off
http_listen 0.0.0.0
http_port 2020
# Storage
# =======
# Fluent Bit can use memory and filesystem buffering based mechanisms
#
# - https://docs.fluentbit.io/manual/administration/buffering-and-storage
#
# storage metrics
# ---------------
# publish storage pipeline metrics in '/api/v1/storage'. The metrics are
# exported only if the 'http_server' option is enabled.
#
storage.metrics on
# Storage
# =======
# Fluent Bit can use memory and filesystem buffering based mechanisms
#
# - https://docs.fluentbit.io/manual/administration/buffering-and-storage
#
# storage metrics
# ---------------
# publish storage pipeline metrics in '/api/v1/storage'. The metrics are
# exported only if the 'http_server' option is enabled.
#
storage.metrics on
# storage.path
# ------------
# absolute file system path to store filesystem data buffers (chunks).
#
# storage.path /tmp/storage
# storage.path
# ------------
# absolute file system path to store filesystem data buffers (chunks).
#
# storage.path /tmp/storage
# storage.sync
# ------------
# configure the synchronization mode used to store the data into the
# filesystem. It can take the values normal or full.
#
# storage.sync normal
# storage.sync
# ------------
# configure the synchronization mode used to store the data into the
# filesystem. It can take the values normal or full.
#
# storage.sync normal
# storage.checksum
# ----------------
# enable the data integrity check when writing and reading data from the
# filesystem. The storage layer uses the CRC32 algorithm.
#
# storage.checksum off
# storage.checksum
# ----------------
# enable the data integrity check when writing and reading data from the
# filesystem. The storage layer uses the CRC32 algorithm.
#
# storage.checksum off
# storage.backlog.mem_limit
# -------------------------
# if storage.path is set, Fluent Bit will look for data chunks that were
# not delivered and are still in the storage layer, these are called
# backlog data. This option configure a hint of maximum value of memory
# to use when processing these records.
#
# storage.backlog.mem_limit 5M
# storage.backlog.mem_limit
# -------------------------
# if storage.path is set, Fluent Bit will look for data chunks that were
# not delivered and are still in the storage layer, these are called
# backlog data. This option configure a hint of maximum value of memory
# to use when processing these records.
#
# storage.backlog.mem_limit 5M
[INPUT]
name tail
path ${PATH_TO_TAIL}
Read_from_Head On
Refresh_Interval 1
Rotate_Wait 60
Mem_Buf_Limit 5MB
DB /tailing-sidecar/var/fluent-bit-state.db
DB.Sync Normal
[FILTER]
Name modify
Match *
Set message modified
[INPUT]
name tail
path ${PATH_TO_TAIL}
Read_from_Head On
Refresh_Interval 1
Rotate_Wait 60
Mem_Buf_Limit 5MB
DB /tailing-sidecar/var/fluent-bit-state.db
DB.Sync Normal
[FILTER]
Name modify
Match *
Set message modified
[OUTPUT]
name gstdout
[OUTPUT]
name gstdout
plugins.conf: |
[PLUGINS]
Path /tailing-sidecar/lib/out_gstdout.so
parsers.conf: |
plugins.conf: |
[PLUGINS]
Path /tailing-sidecar/lib/out_gstdout.so
parsers.conf: |
17 changes: 15 additions & 2 deletions vagrant/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
set -x

export DEBIAN_FRONTEND=noninteractive
GO_VERSION="1.20"
HELM_VERSION=v3.5.2
KUTTL_VERSION=0.15.0

apt-get update
apt-get --yes upgrade


apt-get install --yes make gcc

# Install docker
Expand Down Expand Up @@ -37,7 +42,6 @@ usermod -a -G microk8s vagrant
echo "export KUBECONFIG=/var/snap/microk8s/current/credentials/kubelet.config" >> /home/vagrant/.bashrc

# Install go
GO_VERSION="1.20"
wget "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz"
tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz
rm go${GO_VERSION}.linux-amd64.tar.gz
Expand All @@ -53,7 +57,6 @@ curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack
mv kustomize /usr/local/bin/

# Install Helm
HELM_VERSION=v3.5.2
mkdir /opt/helm3
curl "https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz" | tar -xz -C /opt/helm3
ln -s /opt/helm3/linux-amd64/helm /usr/bin/helm3
Expand Down Expand Up @@ -81,3 +84,13 @@ while true; do
fi
sleep 5
done

# Install kuttl
curl -L "https://github.com/kudobuilder/kuttl/releases/latest/download/kubectl-kuttl_${KUTTL_VERSION}_linux_x86_64" --output kubectl-kuttl
chmod +x kubectl-kuttl
mv kubectl-kuttl /usr/local/bin/kubectl-kuttl

# For AMD64 / x86_64
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64
chmod +x kind
mv kind /usr/local/bin/kind

0 comments on commit ebb777e

Please sign in to comment.