Skip to content

Instantly share code, notes, and snippets.

@a1994sc
a1994sc / test.yml
Created May 10, 2024 23:16
overview of kustomization
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cert-manager
namespace: flux-system
spec:
interval: 5m
path: "./cert-manager/controller"
prune: true
2024-03-15 00:48:47.404259 I | op-osd: ceph osd status in namespace "rook-ceph" check interval "1m0s"
2024-03-15 00:48:47.404266 I | ceph-cluster-controller: enabling ceph osd monitoring goroutine for cluster "rook-ceph"
2024-03-15 00:48:48.396763 I | op-k8sutil: CSI_PROVISIONER_TOLERATIONS="" (default)
2024-03-15 00:48:58.783679 I | op-k8sutil: CSI_PLUGIN_TOLERATIONS="- key: node-role.kubernetes.io/control-plane\n operator: Exists\n- key: node-role.kubernetes.io/infrastructure\n operator: Exists" (configmap)
2024-03-15 00:48:58.783755 I | op-k8sutil: CSI_RBD_PLUGIN_TOLERATIONS="" (default)
2024-03-15 00:48:59.415188 I | op-k8sutil: CSI_RBD_PROVISIONER_TOLERATIONS="" (default)
2024-03-15 00:49:01.990334 I | op-k8sutil: CSI_CEPHFS_PLUGIN_TOLERATIONS="" (default)
2024-03-15 00:49:02.757884 I | op-k8sutil: CSI_CEPHFS_PROVISIONER_TOLERATIONS="" (default)
2024-03-15 00:49:10.717449 I | op-osd: stopping monitoring of OSDs in namespace "rook-ceph"
   Tolerations: []v1.Toleration{
@a1994sc
a1994sc / gist:0d5689b6cb7eda8c1886c892cf6ba174
Created December 13, 2023 12:05
Keycloak provider logs
2023-12-13T12:04:01Z DEBUG provider-keycloak Starting {"sync-period": "1h0m0s"}
2023-12-13T12:04:01Z INFO controller-runtime.metrics Metrics server is starting to listen {"addr": ":8080"}
2023-12-13T12:04:01Z INFO starting server {"path": "/metrics", "kind": "metrics", "addr": "[::]:8080"}
2023-12-13T12:04:01Z INFO Starting EventSource {"controller": "managed/client.keycloak.crossplane.io/v1alpha1, kind=protocolmapper", "controllerGroup": "client.keycloak.crossplane.io", "controllerKind": "ProtocolMapper", "source": "kind source: *v1alpha1.ProtocolMapper"}
2023-12-13T12:04:01Z INFO Starting Controller {"controller": "managed/client.keycloak.crossplane.io/v1alpha1, kind=protocolmapper", "controllerGroup": "client.keycloak.crossplane.io", "controllerKind": "ProtocolMapper"}
2023-12-13T12:04:01Z INFO Starting EventSource {"controller": "managed/group.keycloak.crossplane.io/v1alpha1, kind=group", "controllerGroup": "group.keycloak.crossplane.io", "controllerKind": "Group", "source": "kind source: *v1alpha1.Group"
resource "local_file" "pro_hosts_yaml" {
content = templatefile("${path.module}/templates/pro-hosts.tftpl",
{
trunks = local.trunk-l
leafs = local.leaf-l
}
)
filename = "${path.module}/provision/hosts.yaml"
file_permission = "0644"
}
@a1994sc
a1994sc / cloudflared.yaml
Created November 9, 2021 03:13
cloudflared - k3s
---
apiVersion: apps/v1
#kind: Deployment
kind: DaemonSet
metadata:
name: cloudflared
namespace: ingress
labels:
group: cloudflare
spec:
---
apiVersion: v1
kind: ConfigMap
metadata:
name: xbs-config
namespace: apps
data:
healthcheck.js: |
const http = require('http');
@a1994sc
a1994sc / whoami-deploy.yaml
Created October 10, 2021 22:39
Traefik Cross Namespace Issues
kind: Deployment
apiVersion: apps/v1
metadata:
namespace: tools
name: whoami
labels:
app: whoami
spec:
replicas: 6
selector:
@a1994sc
a1994sc / k3s_calico.yaml
Last active September 28, 2021 01:07
K3S Calico
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# Typha is disabled.
@a1994sc
a1994sc / s3.yml
Created July 19, 2021 17:42
MinIO docker Swarm Traefik setup
version: '3.7'
services:
minio1:
image: minio/minio:latest
hostname: minio1
volumes:
- /mnt/drive/minio:/export
networks:
- proxy
{
"name": "xBrowserSync_api",
"hostname": "7d8549e34a6b",
"pid": 1,
"level": 50,
"req": null,
"err": {
"message": "Authentication failed.",
"name": "MongoError",
"stack": "MongoError: Authentication failed.\n at MessageStream.messageHandler (/usr/src/api/node_modules/mongodb/lib/cmap/connection.js:268:20)\n at MessageStream.emit (events.js:315:20)\n at processIncomingData (/usr/src/api/node_modules/mongodb/lib/cmap/message_stream.js:144:12)\n at MessageStream._write (/usr/src/api/node_modules/mongodb/lib/cmap/message_stream.js:42:5)\n at writeOrBuffer (internal/streams/writable.js:358:12)\n at MessageStream.Writable.write (internal/streams/writable.js:303:10)\n at Socket.ondata (internal/streams/readable.js:719:22)\n at Socket.emit (events.js:315:20)\n at addChunk (internal/streams/readable.js:309:12)\n at readableAddChunk (internal/streams/readable.js:284:9)\n at Socket.Readable.push (internal/streams/readable.js:223:10)\n at TCP.onStreamRead (inter