Skip to content

Instantly share code, notes, and snippets.

Avatar

Erik Jacobs thoraxe

View GitHub Profile
View ansible-created.yaml
apiVersion: project.openshift.io/v1
kind: Project
metadata:
annotations:
openshift.io/display-name: ""
openshift.io/sa.scc.mcs: s0:c26,c0
openshift.io/sa.scc.supplemental-groups: 1000650000/10000
openshift.io/sa.scc.uid-range: 1000650000/10000
creationTimestamp: "2020-11-30T14:27:50Z"
labels:
View zumba-quickstart.yaml
apiVersion: console.openshift.io/v1
kind: ConsoleQuickStart
metadata:
creationTimestamp: '2020-11-24T16:42:10Z'
generation: 1
managedFields:
- apiVersion: console.openshift.io/v1
fieldsType: FieldsV1
fieldsV1:
'f:spec':
View pipeline.yaml
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
creationTimestamp: "2020-11-19T19:51:50Z"
generation: 1
managedFields:
- apiVersion: tekton.dev/v1alpha1
fieldsType: FieldsV1
fieldsV1:
f:spec:
@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
View sc300.lua
setTickRate(20)
function sendCAN(can, id, data)
local res = txCAN(can, id, 0, data,100)
--if res == 0 then println('send CAN res ' ..res) end
end
function split32(val)
return bit.band(val, 0xFF), bit.band(bit.rshift(val,8), 0xFF), bit.band(bit.rshift(val,16),0xFF),bit.band(bit.rshift(val,24),0xFF)
end
View installplan.yaml
apiVersion: operators.coreos.com/v1alpha1
kind: InstallPlan
metadata:
creationTimestamp: "2020-10-28T17:15:14Z"
generateName: install-
generation: 1
managedFields:
- apiVersion: operators.coreos.com/v1alpha1
fieldsType: FieldsV1
fieldsV1:
@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