Latest fixes, fluent-bit version bump

This commit is contained in:
Stefan Reimer 2020-11-26 09:37:10 -08:00
parent c8a903110f
commit 052efd077c
7 changed files with 57 additions and 8 deletions

1
charts/fluent-bit Symbolic link
View File

@ -0,0 +1 @@
../../fluent-bit-helm/charts/fluent-bit

View File

@ -27,7 +27,7 @@ dependencies:
repository: https://kubernetes-charts.storage.googleapis.com/ repository: https://kubernetes-charts.storage.googleapis.com/
condition: fluentd.enabled condition: fluentd.enabled
- name: fluent-bit - name: fluent-bit
version: 0.7.2 version: 0.7.10
repository: https://zero-down-time.github.io/kubezero/ repository: https://zero-down-time.github.io/kubezero/
# repository: https://fluent.github.io/helm-charts # repository: https://fluent.github.io/helm-charts
condition: fluent-bit.enabled condition: fluent-bit.enabled

View File

@ -3,7 +3,7 @@ set -ex
ACTION=$1 ACTION=$1
ARTIFACTS=("$2") ARTIFACTS=("$2")
VALUES=$3 CLUSTER=$3
LOCATION=${4:-""} LOCATION=${4:-""}
DEPLOY_DIR=$( dirname $( realpath $0 )) DEPLOY_DIR=$( dirname $( realpath $0 ))
@ -11,9 +11,12 @@ which yq || { echo "yq not found!"; exit 1; }
TMPDIR=$(mktemp -d kubezero.XXX) TMPDIR=$(mktemp -d kubezero.XXX)
function join { local IFS="$1"; shift; echo "$*"; }
# First lets generate kubezero.yaml # First lets generate kubezero.yaml
# This will be stored as secret during the initial kubezero chart install # Add all yaml files in $CLUSTER
helm template $DEPLOY_DIR -f $VALUES -f cloudbender.yaml --set argo=false > $TMPDIR/kubezero.yaml VALUES="$(find $CLUSTER -name '*.yaml' | tr '\n' ',')"
helm template $DEPLOY_DIR -f ${VALUES%%,} --set argo=false > $TMPDIR/kubezero.yaml
if [ ${ARTIFACTS[0]} == "all" ]; then if [ ${ARTIFACTS[0]} == "all" ]; then
ARTIFACTS=($(yq r -p p $TMPDIR/kubezero.yaml "*.enabled" | awk -F "." '{print $1}')) ARTIFACTS=($(yq r -p p $TMPDIR/kubezero.yaml "*.enabled" | awk -F "." '{print $1}'))

View File

View File

@ -1,4 +1,5 @@
{{- define "cert-manager-values" }} {{- define "cert-manager-values" }}
localCA: localCA:
enabled: true enabled: true
{{ with index .Values "cert-manager" "IamArn" }} {{ with index .Values "cert-manager" "IamArn" }}
@ -14,10 +15,7 @@ clusterIssuer:
{{- end }} {{- end }}
{{- define "cert-manager-argo" }} {{- define "cert-manager-argo" }}
{{- end }} {{- end }}
{{- end }}
{{ include "kubezero-app.app" . }} {{ include "kubezero-app.app" . }}

View File

@ -1,7 +1,7 @@
argo: {} argo: {}
global: global:
argo: kubezero:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
repoURL: https://github.com/zero-down-time/kubezero repoURL: https://github.com/zero-down-time/kubezero
targetRevision: HEAD targetRevision: HEAD

47
docs/Upgrade.md Normal file
View File

@ -0,0 +1,47 @@
# Upgrade to KubeZero V2(Argoless)
- disable all auto-sync in argo !!
- migrate values.yaml to new structure,adapt as needed
- update new central kubezero location in git and merge cluster configs
## High level / Admin changes
- ArgoCD is now optional
- ArgoCD is NOT required nor used during initial cluster bootstrap
- the initial bootstrap script now uses the same config as ArgoCD later on
- the initial bootstrap is WAY faster and re-try safe
## Individual changes
### Cert-manager
- local issuer is now a cluster issuer
- all resources moved to cert-manager namespace
### Kiam
- check certs and function due to cert-manager changes
- set priorty class
### Logging
- ES/Kibana version bump, new ECK operator
### ArgoCD
- version bump, new app of app architecure
### Metrics
- version bumps
- all servicemonitor resources are now in the same namespaces as the apps
- check all metrics still work
### Calico
- version bump
### EBS
- version bump
### Istio
- operator removed, deployment migrated to helm, cleanups
- version bump to 1.8
- no more policy by default
- all ingress in dedicated new namespace istio-ingress as well as dedicated helm chart
- set priorty class