Skip to content

Instantly share code, notes, and snippets.

@agracey
agracey / cronjob.yaml
Last active April 21, 2025 16:42
Extension to Fleet to add maintenance windows
apiVersion: batch/v1
kind: CronJob
metadata:
name: update-maint-window
namespace: fleet-default
spec:
schedule: "1,16,31,46 * * * *"
jobTemplate:
spec:
template:
kind: Cluster
apiVersion: provisioning.cattle.io/v1
metadata:
name: mycluster
namespace: fleet-default
labels:
region: West
state: OR
city: Bend
lat: "0.0000"
@agracey
agracey / ClusterGroup.yaml
Created March 19, 2025 17:23
Fleet Example
apiVersion: fleet.cattle.io/v1alpha1
kind: ClusterGroup
metadata:
name: longhorn-stable
namespace: fleet-default
spec:
selector:
matchExpressions: []
matchLabels:
longhorn: stable
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
workload.user.cattle.io/workloadselector: apps.deployment-mobilizon-postgis
name: postgis
spec:
replicas: 1
selector:
matchLabels:
@agracey
agracey / fleet.yaml
Last active July 8, 2024 17:54
LH-Fleet
defaultNamespace: longhorn-system
helm:
chart: longhorn
repo: https://charts.longhorn.io
releaseName: longhorn
@agracey
agracey / gist:402ab72fe79d6eec42c19e151059d4da
Last active July 5, 2024 22:29
wallboard-combined.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: wallboard
namespace: wallboard
spec:
selector:
matchLabels:
name: test-wallboard
template:
apiVersion: v1
kind: ConfigMap
metadata:
name: pa-config
namespace: wallboard
data:
client.conf: |+
autospawn = no
auto-connect-localhost = yes
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: wallboard
namespace: wallboard
spec:
selector:
matchLabels:
name: test-wallboard
template:
server_url: http://rancher.gracey.dev:8080
listen_addr: 0.0.0.0:8080
metrics_listen_addr: 0.0.0.0:9090
grpc_listen_addr: 0.0.0.0:50443
grpc_allow_insecure: true
noise:
# The Noise private key is used to encrypt the
@agracey
agracey / wallboard.yaml
Created April 1, 2024 17:54
Wallboard with Input
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: wallboard
namespace: wallboard
spec:
selector:
matchLabels:
name: test-wallboard
template: