This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Install latest Nvidia Drivers | |
sudo apt-get install nvidia-driver-440 | |
# Download latest version of CUDA supported by TF GPU: https://www.tensorflow.org/install/source#gpu | |
# NOTE: Do NOT install the driver provided by the CUDA installer when it asks you if you want it | |
wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda_10.0.130_410.48_linux | |
sudo sh cuda_10.0.130_410.48_linux.sh | |
# Install Latest cuDNN Libraries supported by TF GPU: https://www.tensorflow.org/install/source#gpu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Clone the git repo | |
#git clone git@github.com:coreos/prometheus-operator.git prometheus | |
# cd into prometheus/contrib/kube-prometheus | |
kubectl create -f manifests/ | |
until kubectl get customresourcedefinitions servicemonitors.monitoring.coreos.com ; do date; sleep 1; echo ""; done | |
until kubectl get servicemonitors --all-namespaces ; do date; sleep 1; echo ""; done | |
kubectl apply -f manifests/ # This command sometimes may need to be done twice (to workaround a race condition). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
minikube start --bootstrapper kubeadm --vm-driver kvm2 --memory 8192 --cpus 4 --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 | |
# Create service account for Tiller | |
kubectl create serviceaccount --namespace kube-system tiller | |
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller | |
# Init helm and insteall prometheus-operator | |
helm init --service-account tiller | |
helm install --name monitoring --namespace monitoring stable/prometheus-operator --values=values_minikube.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coreDns: | |
service: | |
selector: | |
k8s-app: kube-dns | |
kubeControllerManager: | |
service: | |
selector: | |
k8s-app: null | |
component: kube-controller-manager | |
kubeEtcd: |