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
# Check the volume to see if any nodes are down | |
sudo gluster volume status VOLUME_NAME_HERE detail | |
# Run as root | |
killall glusterfsd ; killall -9 glusterfsd ; killall glusterd ; glusterd |
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
wget -O - https://download.gluster.org/pub/gluster/glusterfs/7/rsa.pub | sudo apt-key add - | |
sudo add-apt-repository ppa:gluster/glusterfs-7 | |
sudo apt install glusterfs-server -y | |
sudo systemctl start glusterd | |
sudo systemctl status glusterd |
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
# Install Loki | |
helm install loki/loki-stack -n loki-stack --set fluent-bit.enabled=true,promtail.enabled=true,loki.persistence.enabled=true,loki.persistence.size=1Gi --namespace=loki-stack | |
# Generate Loki yaml | |
helm template loki-test -n loki-stack --set fluent-bit.enabled=true,promtail.enabled=true,loki.persistence.enabled=true,loki.persistence.size=1Gi --namespace=loki-test loki-stack-0.38.3.tgz > loki.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
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: read-only-clusterrole | |
rules: | |
- nonResourceURLs: | |
- /metrics | |
verbs: | |
- get | |
- list |
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
# To run this, ... |
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
- --kubelet-insecure-tls | |
- --kubelet-preferred-address-types=InternalIP |
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
# Install the repo | |
helm repo add loki https://grafana.github.io/loki/charts | |
helm repo update | |
# Install Loki | |
helm install loki/loki-stack -n loki-stack --set fluent-bit.enabled=true,promtail.enabled=true,loki.persistence.enabled=true,loki.persistence.size=1Gi --namespace=loki-stack --generate-name | |
# Install the repo | |
helm repo add stable https://kubernetes-charts.storage.googleapis.com | |
helm repo update |
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
server { | |
listen 80; | |
server_name demo.colaboratory.co.za; | |
sendfile on; | |
location / { | |
proxy_buffer_size 64k; |
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
apiVersion: apiextensions.k8s.io/v1beta1 | |
kind: CustomResourceDefinition | |
metadata: | |
# name must match the spec fields below, and be in the form: <plural>.<group> | |
name: cronscales.captainjustin.space | |
spec: | |
# group name to use for REST API: /apis/<group>/<version> | |
group: stable.captainjustin.space | |
# list of versions supported by this CustomResourceDefinition | |
versions: |
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
adduser --disabled-password --gecos "" local | |
cp -r ~/.kube /home/local | |
chown -R local:local /home/local/.kube |
NewerOlder