Skip to content

Instantly share code, notes, and snippets.

View shellshock1953's full-sized avatar

shellshock.dnull shellshock1953

View GitHub Profile
@shellshock1953
shellshock1953 / proxy.yml
Created March 3, 2024 08:46
traefik reverse-proxy + dns-challenge + basic-auth + whitelist IP
# place in proxy/config.yml
http:
middlewares:
ipwhitelist:
ipWhiteList:
sourceRange:
- "1.2.3.0/24"
auth:
basicAuth:
@shellshock1953
shellshock1953 / ceph-config-map.yaml
Created August 22, 2022 19:20
Kubernetes CSI with Ceph RDB
---
# Official Docs: https://docs.ceph.com/en/latest/rbd/rbd-kubernetes/
apiVersion: v1
kind: ConfigMap
data:
ceph.conf: |
[global]
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
@shellshock1953
shellshock1953 / example-com-site.yml
Created August 2, 2022 13:04
Kubernetes Deployment, Service and Ingress example
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: example-com
labels:
app: example-com # Service is looking for this
spec:
replicas: 1
selector:
@shellshock1953
shellshock1953 / 1_compose_prometheus.yml
Created August 2, 2022 12:55
Prometheus with Alertmanager - docker-compose example
version: '3'
volumes:
prometheus-storage:
# Docker-Compose to run PROMETHEUS
services:
prometheus:
image: prom/prometheus:v2.32.0
ports:
@shellshock1953
shellshock1953 / glusterfs-endpoints.yaml
Last active May 2, 2022 14:24
GlusterFS in Kubernetes without Heketi
apiVersion: v1
kind: Endpoints
metadata:
name: glusterfs-cluster
subsets:
- addresses:
- ip: 192.168.1.101
ports:
- port: 1
- addresses:
### Keybase proof
I hereby claim:
* I am shellshock1953 on github.
* I am shellshock (https://keybase.io/shellshock) on keybase.
* I have a public key ASAasyZq1gSoMqK9eQIT789yhpL1y6lYO7TTfJtAaN7zvwo
To claim this, I am signing this object: