Skip to content

Instantly share code, notes, and snippets.

Avatar

Erik Jacobs thoraxe

View GitHub Profile
@thoraxe
thoraxe / broker_cr.yaml
Last active Nov 11, 2020
ActiveMQ broker setup
View broker_cr.yaml
apiVersion: broker.amq.io/v2alpha2
kind: ActiveMQArtemis
metadata:
name: srt-broker
namespace: srt
spec:
acceptors:
- expose: true
name: amqp
port: 5672
@thoraxe
thoraxe / cache.yaml
Last active Oct 28, 2020
Red Hat Data Grid for Space Ring Things - an extra secret with just the operator user and password is required
View cache.yaml
metadata:
name: playerdata-cache
namespace: srt
spec:
adminAuth:
secretName: playerdata-grid-auth
clusterName: gamedata
name: playerdata
templateName: org.infinispan.REPL_SYNC
View srt-player-schema.json
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://example.com/example.json",
"type": "object",
"title": "The Space Ring Things Player Schema",
"description": "The root schema comprises the entire JSON document.",
"default": {},
"examples": [
{
"position": {
View kind-config.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
image: kindest/node:v1.16.15@sha256:a89c771f7de234e6547d43695c7ab047809ffc71a0c3b65aa54eda051c45ed20
kubeadmConfigPatches:
- |
kind: ClusterConfiguration
kubernetesVersion: v1.16.0
apiServer:
View kafka.yaml
apiVersion: kafka.strimzi.io/v1beta1
kind: Kafka
metadata:
name: my-cluster
namespace: serverless-demo
spec:
kafka:
config:
offsets.topic.replication.factor: 1
transaction.state.log.replication.factor: 1
View deployment.yaml
kind: Deployment
apiVersion: apps/v1
metadata:
annotations:
deployment.kubernetes.io/revision: '1'
selfLink: /apis/apps/v1/namespaces/stressy/deployments/stress
resourceVersion: '31943'
name: stress
uid: b3161dca-06f4-46b8-9736-03a0c6258653
creationTimestamp: '2020-08-17T14:30:12Z'
@thoraxe
thoraxe / alert.yaml
Last active Aug 13, 2020
custom metrics and alerting content
View alert.yaml
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: example-alert
spec:
groups:
- name: example
rules:
- alert: TooManyErrorAlert
expr: http_requests_total{code="404"} > 10
View limitrange.yaml
kind: LimitRange
apiVersion: v1
metadata:
name: stressy-core-resource-limits
spec:
limits:
- type: Container
max:
cpu: '4'
memory: 6Gi
View gist:78d1434006153229a4fb16710a233375
 __ __
/ \ / \ ______ _ _ __ __ __
/ /\ / /\ \ / __ \ | | | | / \ \ \ / /
/ / / / \ \ | | | | | | | | / /\ \ \ /
\ \ \ \ / / | |__| | | |__| | / ____ \ | |
\ \/ \ \/ / \_ ___/ \____/ /_/ \_\ |_|
\__/ \__/ \ \__
\___\ by Red Hat
Build, Store, and Distribute your Containers
View quayecosystem.yaml
apiVersion: redhatcop.redhat.io/v1alpha1
kind: QuayEcosystem
metadata:
selfLink: >-
/apis/redhatcop.redhat.io/v1alpha1/namespaces/container-registry/quayecosystems/quayecosystem
resourceVersion: '75113'
name: quayecosystem
uid: 5c22133d-3b3e-47a4-bf9f-6078518e4936
creationTimestamp: '2020-08-11T16:54:30Z'
generation: 2