Skip to content

Instantly share code, notes, and snippets.

View bradfordcp's full-sized avatar

Christopher Bradford bradfordcp

View GitHub Profile
@bradfordcp
bradfordcp / petclinic.asb.yaml
Last active November 13, 2020 21:28
Adding Astra Service Broker to reactive petclinic
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: petclinic-backend
labels:
app: petclinic-backend
spec:
replicas: 1
selector:
apiVersion: k8ssandra.io/v1alpha1
kind: K8ssandraCluster
metadata:
name: foo
spec:
auth: false
cassandra:
serverType: dse
serverVersion: 6.8.32
resources:
.PHONY: setup
setup:
oc project tls-demo
echo "Login to the OpenShift console and install cass-operator and cert-manager operators either globally or within the tls-demo namespace"
.PHONY: setup-issuers
setup-issuers:
echo "Provisioning self signed certificate issuer and CA with cert-manager"
oc apply -f selfsigned.issuer.yaml
oc apply -f ca.certificate.yaml