Skip to content

Instantly share code, notes, and snippets.

View dredfett's full-sized avatar
👻
bloop

dredfett dredfett

👻
bloop
View GitHub Profile
coreDns:
service:
selector:
k8s-app: kube-dns
kubeControllerManager:
service:
selector:
k8s-app: null
component: kube-controller-manager
kubeEtcd:
@dredfett
dredfett / prometheus-operator-setup.sh
Last active March 31, 2019 20:29
Setup for Minikube using the prometheus-operator helm charts.
#!/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
@dredfett
dredfett / setup.sh
Created March 31, 2019 21:14
Setup CoreOS Kube-Prometheus
#!/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).
@dredfett
dredfett / cuda-setup.sh
Last active December 11, 2019 18:09
tensorflow-gpu 2.0 Ubuntu 18.04 Setup
#!/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