feat: logging version bump, kubezero git-sync for argocd

This commit is contained in:
Stefan Reimer 2021-08-30 00:28:32 +02:00
parent 6eb7180ebc
commit afb125eac7
9 changed files with 119 additions and 29 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v2 apiVersion: v2
description: KubeZero ArgoCD Helm chart to install ArgoCD itself and the KubeZero ArgoCD Application description: KubeZero ArgoCD Helm chart to install ArgoCD itself and the KubeZero ArgoCD Application
name: kubezero-argocd name: kubezero-argocd
version: 0.8.1 version: 0.8.2
home: https://kubezero.com home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
keywords: keywords:
@ -17,4 +17,8 @@ dependencies:
- name: argo-cd - name: argo-cd
version: 3.13.1 version: 3.13.1
repository: https://argoproj.github.io/argo-helm repository: https://argoproj.github.io/argo-helm
- name: argocd-applicationset
version: 1.4.0
repository: https://argoproj.github.io/argo-helm
condition: argocd-applicationset.enabled
kubeVersion: ">= 1.18.0" kubeVersion: ">= 1.18.0"

View File

@ -101,3 +101,18 @@ argo-cd:
dex: dex:
enabled: false enabled: false
argocd-applicationset:
enabled: false
rbac:
pspEnabled: false
resources:
# limits:
# cpu: 500m
# memory: 2048Mi
requests:
cpu: 50m
memory: 64Mi

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: kubezero-logging name: kubezero-logging
description: KubeZero Umbrella Chart for complete EFK stack description: KubeZero Umbrella Chart for complete EFK stack
type: application type: application
version: 0.7.7 version: 0.7.8
appVersion: 1.6.0 appVersion: 1.6.0
home: https://kubezero.com home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png

View File

@ -46,7 +46,8 @@ fluentd:
enabled: false enabled: false
image: image:
repository: fluent/fluentd-kubernetes-daemonset repository: fluent/fluentd-kubernetes-daemonset
tag: v1-debian-elasticsearch # tag: v1-debian-elasticsearch
tag: v1.11.1-debian-elasticsearch7-1.3
istio: istio:
enabled: false enabled: false
@ -123,7 +124,7 @@ fluentd:
log_level info log_level info
ignore_repeated_log_interval 60s ignore_repeated_log_interval 60s
ignore_same_log_interval 60s ignore_same_log_interval 60s
workers 2 workers 1
</system> </system>
01_sources.conf: |- 01_sources.conf: |-
<source> <source>
@ -165,6 +166,13 @@ fluentd:
</exclude> </exclude>
</filter> </filter>
# Generate Hash ID to break endless loop for already ingested events during retries
<filter **>
@type elasticsearch_genid
use_entire_record true
</filter>
# Route through DISPATCH for Prometheus metrics
<match **> <match **>
@type relabel @type relabel
@label @DISPATCH @label @DISPATCH
@ -178,8 +186,8 @@ fluentd:
@type elasticsearch @type elasticsearch
# @log_level debug # @log_level debug
include_tag_key true include_tag_key true
id_key id id_key _hash
remove_keys id remove_keys _hash
# KubeZero pipeline incl. GeoIP etc. # KubeZero pipeline incl. GeoIP etc.
pipeline fluentd pipeline fluentd
@ -207,7 +215,7 @@ fluentd:
@type file @type file
flush_mode interval flush_mode interval
flush_thread_count 1 flush_thread_count 2
flush_interval 30s flush_interval 30s
chunk_limit_size 4MB chunk_limit_size 4MB

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: kubezero name: kubezero
description: KubeZero - Bootstrap and ArgoCD Root App of Apps chart description: KubeZero - Bootstrap and ArgoCD Root App of Apps chart
type: application type: application
version: 1.20.8-3 version: 1.20.8-4
home: https://kubezero.com home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
keywords: keywords:

30
charts/kubezero/app.yaml Normal file
View File

@ -0,0 +1,30 @@
# Skeleton template to put into each cluster git folder
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: kubezero
namespace: argocd
spec:
project: kubezero
source:
repoURL: https://zero-down-time.github.io/kubezero
chart: kubezero
targetRevision: {{ .Values.kubezero.version }}
helm:
parameters:
# We use this to detect if we are called from ArgoCD
- name: argocdAppName
value: $ARGOCD_APP_NAME
# This breaks the recursion, otherwise we install another kubezero project and app
- name: installKubeZero
value: "false"
values: |
{{- toYaml .Values | nindent 8 }}
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: true

View File

@ -0,0 +1,41 @@
kind: ApplicationSet
metadata:
name: kubezero
namespace: argocd
labels:
{{- include "kubezero-lib.labels" . | nindent 4 }}
spec:
generators:
- git:
repoURL: {{ .Values.kubezero.applicationSet.repoURL }}
revision: {{ .Values.kubezero.applicationSet.revision }}
files:
{{- toYaml .Values.kubezero.applicationSet.files | nindent 6 }}
template:
metadata:
name: kubezero
spec:
project: kubezero
source:
repoURL: https://zero-down-time.github.io/kubezero
chart: kubezero
targetRevision: '{{ "{{" }} kubezero.version {{ "}}" }}'
helm:
parameters:
# We use this to detect if we are called from ArgoCD
- name: argocdAppName
value: $ARGOCD_APP_NAME
# This breaks the recursion, otherwise we install another kubezero project and app
# To be removed once we applicationSet is working and AppProject is moved back to ArgoCD chart
- name: installKubeZero
value: "false"
valueFiles:
- '{{ "{{" }} kubezero.valuesPath {{ "}}" }}/kubezero.yaml'
- '{{ "{{" }} kubezero.valuesPath {{ "}}" }}/values.yaml'
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: true

View File

@ -11,10 +11,11 @@ metadata:
spec: spec:
description: KubeZero - ZeroDownTime Kubernetes Platform description: KubeZero - ZeroDownTime Kubernetes Platform
# Allow manifests to deploy from # Add the git repo used for git-sync
{{- with .Values.kubezero.sourceRepos }}
sourceRepos: sourceRepos:
{{- toYaml . | nindent 2 }} - {{ .Values.kubezero.repoURL }}
{{ with .Values.kubezero.gitSync.repoURL }}
- {{ . }}
{{- end }} {{- end }}
# platform namespaces in the local cluster # platform namespaces in the local cluster
@ -44,28 +45,20 @@ spec:
apiVersion: argoproj.io/v1alpha1 apiVersion: argoproj.io/v1alpha1
kind: Application kind: Application
metadata: metadata:
name: kubezero name: kubezero-git-sync
namespace: argocd namespace: argocd
labels: labels:
{{- include "kubezero-lib.labels" . | nindent 4 }} {{- include "kubezero-lib.labels" . | nindent 4 }}
spec: spec:
project: kubezero project: kubezero
source: source:
repoURL: https://zero-down-time.github.io/kubezero repoURL: {{ .Values.kubezero.gitSync.repoURL }}
chart: kubezero targetRevision: {{ .Values.kubezero.gitSync.targetRevision }}
# targetRevision: '>=1.20.8-0' path: {{ .Values.kubezero.gitSync.path }}
targetRevision: '{{ .Chart.Version }}'
helm: helm:
parameters: valueFiles:
# We use this to detect if we are called from ArgoCD - kubezero.yaml
- name: argocdAppName
value: $ARGOCD_APP_NAME
# This breaks the recursion, otherwise we install another kubezero project and app
- name: installKubeZero
value: "false"
values: |
{{- toYaml .Values | nindent 8 }}
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc

View File

@ -1,9 +1,8 @@
kubezero: kubezero:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc
repoURL: https://zero-down-time.github.io/kubezero repoURL: https://zero-down-time.github.io/kubezero
targetRevision: '*' defaultTargetRevision: '*'
sourceRepos: gitSync: {}
- 'https://zero-down-time.github.io/kubezero'
HighAvailableControlplane: false HighAvailableControlplane: false
@ -63,7 +62,7 @@ logging:
enabled: false enabled: false
crds: true crds: true
namespace: logging namespace: logging
targetRevision: 0.7.7 targetRevision: 0.7.8
argocd: argocd:
enabled: false enabled: false