Skip to content

Instantly share code, notes, and snippets.

@vniche
Last active August 23, 2020 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vniche/84b786957c50543b27a62132425936db to your computer and use it in GitHub Desktop.
Save vniche/84b786957c50543b27a62132425936db to your computer and use it in GitHub Desktop.
all-in-one monitored minikube K8S provisioning script
# start minikube k8s
minikube delete
minikube start --kubernetes-version=v1.18.1 --memory=6g \
--bootstrapper=kubeadm --extra-config=kubelet.authentication-token-webhook=true \
--extra-config=kubelet.authorization-mode=Webhook --extra-config=scheduler.address=0.0.0.0 \
--extra-config=controller-manager.address=0.0.0.0 --driver=docker
# disable k8s metrics-server as it is going to be served by prometheus
minikube addons disable metrics-server
# setup and provision kube-prometheus
kubectl apply -f https://gist.githubusercontent.com/vniche/6bb54d18ae98bdab01f9ba261afbba84/raw/6b19dabb3d4fc5f8efade6fa84f302bc8d91df50/kube-prometheus-setup.yaml
until kubectl get servicemonitors --all-namespaces ; do date; sleep 1; echo ""; done
kubectl apply -f https://gist.githubusercontent.com/vniche/6bb54d18ae98bdab01f9ba261afbba84/raw/6b19dabb3d4fc5f8efade6fa84f302bc8d91df50/kube-prometheus.yaml
# provision jaeger-operator
kubectl apply -n observability -f https://gist.github.com/vniche/b661d3b955fe76744ff5a0a084e42c9c/raw/4dd55106d26ae9f6cd851b86f0bd334e257a771a/jaeger-operator.yaml
# provision a jaeger instance via jaeger-operator CRD
kubectl apply -f https://gist.github.com/vniche/b661d3b955fe76744ff5a0a084e42c9c/raw/4dd55106d26ae9f6cd851b86f0bd334e257a771a/tracing.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment