Skip to content

Instantly share code, notes, and snippets.

logging:
format: "text"
bootstrap:
kafka:
replicas: 1
db:
cluster:
host: "prereqs-postgres"
apiVersion: v1
kind: ServiceAccount
metadata:
name: corda-installer
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: corda-installer
rules:
@davidcurrie
davidcurrie / corda.yaml
Last active January 13, 2023 17:15
Corda with Bitnami Prereqs
imagePullPolicy: IfNotPresent
bootstrap:
kafka:
replicas: 1
kafka:
bootstrapServers: kafka:9092
sasl:
enabled: true
@davidcurrie
davidcurrie / corda-kafka.yaml
Last active January 13, 2023 15:57
Kafka for Corda
image:
registry: ghcr.io
repository: zcube/bitnami-compat/kafka
tag: 3.2.3-debian-11-r38
allowPlaintextListener: true
replicaCount: 1
autoCreateTopicsEnable: false
auth:
clientProtocol: sasl_tls
sasl:
@davidcurrie
davidcurrie / corda-postgres.yaml
Last active January 13, 2023 14:57
PostgreSQL for Corda
image:
registry: ghcr.io
repository: zcube/bitnami-compat/postgresql
tag: 14.6.0-debian-11-r38
volumePermissions:
enabled: true
tls:
enabled: true
autoGenerated: true
auth:
@davidcurrie
davidcurrie / gist:685746b59cab96d68510deaa87caa411
Last active June 10, 2020 16:10
Failing test for GraphQL Java SchemaTransformer Issue 1953
def "failing NPE test as reported in 1953 "() {
given:
def fieldChanger = new GraphQLTypeVisitorStub() {
@Override
TraversalControl visitGraphQLFieldDefinition(GraphQLFieldDefinition node,
TraverserContext<GraphQLSchemaElement> context) {
if (node.getName() == "f") {
changeNode(context, node.transform({ builder -> builder.type(Scalars.GraphQLInt) }))
}
@davidcurrie
davidcurrie / helm-cleanup.sh
Created January 4, 2019 09:56
Deletes helm releases targeting namespaces that don't exist
#!/bin/bash
containsElement () {
local e match="$1"
shift
for e; do [[ "$e" == "$match" ]] && return 0; done
return 1
}
namespaces=( $(kubectl get ns --no-headers -o custom-columns=NAME:.metadata.name) )
@davidcurrie
davidcurrie / gist:5e6badf06fe5cf522e83186f517bd737
Created September 5, 2018 14:45
Remove s3 buckets matching a regexp
for bucket in $(aws s3 ls | awk '{print $3}' | grep regexp); do aws s3 rb "s3://${bucket}" --force ; done
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: mongo-deployment
spec:
replicas: 1
template:
metadata:
labels:
@davidcurrie
davidcurrie / 2017-wug-script.txt
Created March 30, 2017 11:24
Script for Docker/Swarm/Kubernetes demo at UK WebSphere User Group on 30 March 2017
docker-machine create -d virtualbox node-1
docker-machine ssh node-1
uname -r
whoami
ps aux
ls /home
hostname
docker version
docker pull ubuntu
docker images ubuntu