mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
66e93a5732
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: shuting <shuting@nirmata.com>
52 lines
936 B
Bash
Executable file
52 lines
936 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
# CREATE TEMPO APP
|
|
|
|
kubectl apply -f - <<EOF
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: tempo
|
|
namespace: argocd
|
|
spec:
|
|
destination:
|
|
namespace: monitoring
|
|
server: https://kubernetes.default.svc
|
|
project: default
|
|
source:
|
|
chart: tempo
|
|
repoURL: https://grafana.github.io/helm-charts
|
|
targetRevision: 0.16.5
|
|
helm:
|
|
values: |
|
|
tempo:
|
|
searchEnabled: true
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
EOF
|
|
|
|
kubectl create namespace monitoring || true
|
|
|
|
kubectl apply -f - <<EOF
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
labels:
|
|
grafana_datasource: "1"
|
|
name: tempo-datasource
|
|
namespace: monitoring
|
|
data:
|
|
tempo-datasource.yaml: |-
|
|
apiVersion: 1
|
|
datasources:
|
|
- name: Tempo
|
|
type: tempo
|
|
access: proxy
|
|
url: "http://tempo.monitoring:3100"
|
|
version: 1
|
|
isDefault: false
|
|
EOF
|