Skip to content

Commit

Permalink
update manifests with examples to run the fixture server
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kruse <christian@c-kruse.com>
  • Loading branch information
c-kruse committed Mar 8, 2024
1 parent 3189cd5 commit c81f9f5
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 8 deletions.
19 changes: 19 additions & 0 deletions cmd/vanflow-tool/manifests/patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# kubectl apply -f skupper-fixture.yaml && kubectl patch deployment/skupper-service-controller --patch-file patch.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: skupper-service-controller
spec:
template:
spec:
containers:
- name: flow-collector
volumeMounts:
- mountPath: /etc/messaging/
name: vanflow-fixture-local-client
volumes:
- name: vanflow-fixture-local-client
configMap:
defaultMode: 420
name: vanflow-fixture-local-client
69 changes: 61 additions & 8 deletions cmd/vanflow-tool/manifests/vanflow-fixture.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: vanflow-fixture-local-client
data:
connect.json: |+
{
"scheme": "amqp",
"host": "vanflow-fixture-router",
"port": "5672"
}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: vanflow-fixture
labels:
app: vanflow-fixture
name: vanflow-fixture
spec:
replicas: 1
selector:
Expand All @@ -15,19 +28,59 @@ spec:
app: vanflow-fixture
spec:
containers:
- image: quay.io/ckruse/vanflow-tool:latest
- args:
- -messaging-config=/etc/messaging/connect.json
- fixture
image: quay.io/ckruse/vanflow-tool:latest
imagePullPolicy: Always
name: main
resources: {}
securityContext:
runAsNonRoot: true
volumeMounts:
- mountPath: /etc/messaging/
name: skupper-local-client
args:
- '-messaging-config=/etc/messaging/connect.json'
- 'fixture'
volumes:
- name: skupper-local-client
secret:
- configMap:
defaultMode: 420
secretName: skupper-local-client
name: vanflow-fixture-local-client
name: skupper-local-client
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: vanflow-fixture-router
name: vanflow-fixture-router
spec:
replicas: 1
selector:
matchLabels:
app: vanflow-fixture-router
template:
metadata:
labels:
app: vanflow-fixture-router
spec:
containers:
- image: quay.io/ckruse/vanflow-qdr:latest
imagePullPolicy: Always
name: vanflow-qdr
ports:
- containerPort: 5672
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
labels:
app: vanflow-fixture-router
name: vanflow-fixture-router
spec:
type: ClusterIP
ports:
- port: 5672
protocol: TCP
targetPort: 5672
selector:
app: vanflow-fixture-router

0 comments on commit c81f9f5

Please sign in to comment.