Skip to content

Latest commit

 

History

History
88 lines (70 loc) · 2.63 KB

WORKSHOP.md

File metadata and controls

88 lines (70 loc) · 2.63 KB

WORKSHOP

Install Helm charts

Prometheus Operator

Install the CRDs separately since there is an issue with Helm installing Webhooks and CRDs on the same chart

kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/release-0.38/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagers.yaml
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/release-0.38/example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/release-0.38/example/prometheus-operator-crd/monitoring.coreos.com_prometheuses.yaml
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/release-0.38/example/prometheus-operator-crd/monitoring.coreos.com_prometheusrules.yaml
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/release-0.38/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/release-0.38/example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml

We are going to deploy Prometheus Operator on on the monitoring namespace

$ kubectl create ns monitoring

Create user and password for Grafana, otherwhise it will create a random password

$ kubectl create secret generic \
    -n monitoring grafana-admin \
    --from-literal admin-user=admin \
    --from-literal admin-password=pass

Install Prometheus Operator

$ helm upgrade --install --wait \
    -n monitoring prom-op \
    -f ./helm/stable/prometheus-operator/9.3.1/values.yaml \
    --version 9.3.1 \
    stable/prometheus-operator

Jaeger Operator

$ kubectl create ns tracing
$ kubectl apply -f https://raw.githubusercontent.com/jaegertracing/jaeger-operator/master/deploy/crds/jaegertracing.io_jaegers_crd.yaml
$ helm upgrade --install --wait \
    -n tracing jaeger-op \
    -f ./helm/jaegertracing/jaeger-operator/2.15.1/values.yaml \
    --version 2.15.1 \
    jaegertracing/jaeger-operator
$ kubectl apply -f ./manifests/jaeger/

Loki and Promtail

$ kubectl create ns logging
$ helm upgrade --install --wait \
    --namespace logging \
    -f ./helm/loki/loki/0.31.0/values.yaml \
    --version 0.31.0 \
    loki loki/loki
$ helm upgrade --install --wait \
    --namespace logging \
    -f ./helm/loki/promtail/0.24.0/values.yaml \
    --version 0.24.0 \
    promtail loki/promtail

Demo application

$ kubectl apply -f ./manifests/demo-app/