mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
chore: add loki to argocd lab (#5231)
* chore: add loki to argocd lab Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * chore: add loki to argocd lab Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
6cdbd55f93
commit
6325860c89
2 changed files with 28 additions and 2 deletions
|
@ -9,8 +9,7 @@ This lab sets up the following components:
|
||||||
- ArgoCD application to deploy [policy-reporter](https://kyverno.github.io/policy-reporter)
|
- ArgoCD application to deploy [policy-reporter](https://kyverno.github.io/policy-reporter)
|
||||||
- ArgoCD application to deploy [metrics-server](https://github.com/kubernetes-sigs/metrics-server)
|
- ArgoCD application to deploy [metrics-server](https://github.com/kubernetes-sigs/metrics-server)
|
||||||
- ArgoCD application to deploy [kube-prometheus-stack](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack)
|
- ArgoCD application to deploy [kube-prometheus-stack](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack)
|
||||||
|
- ArgoCD application to deploy [loki-stack](https://github.com/grafana/helm-charts/tree/main/charts/loki-stack)
|
||||||
> **Note**: Unfortunately kube-prometheus-stack fails to sync the first time it is deployed hence we need to make it pass by hand.
|
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
|
|
|
@ -210,6 +210,33 @@ spec:
|
||||||
- ServerSideApply=true
|
- ServerSideApply=true
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# CREATE LOKI APP
|
||||||
|
|
||||||
|
kubectl apply -f - <<EOF
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: loki
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: monitoring
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
chart: loki-stack
|
||||||
|
repoURL: https://grafana.github.io/helm-charts
|
||||||
|
targetRevision: 2.8.4
|
||||||
|
helm:
|
||||||
|
values: |
|
||||||
|
loki:
|
||||||
|
isDefault: false
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
EOF
|
||||||
|
|
||||||
# CREATE KYVERNO APP
|
# CREATE KYVERNO APP
|
||||||
|
|
||||||
kubectl apply -f - <<EOF
|
kubectl apply -f - <<EOF
|
||||||
|
|
Loading…
Add table
Reference in a new issue