Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions k8s/demo/configmap-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: foxmq-demo-config
data:
"permissions.toml": |
[[permissions.'*'.topic]]
filter = "pixel_pump_request"
allowed = ["publish"]

[[permissions.'*'.topic]]
filter = "pixel_pump"
allowed = ["subscribe"]

[[permissions.pixel-admin.topic]]
filter = "pixel_pump"
allowed = ["subscribe", "publish"]

[[permissions.pixel-admin.topic]]
filter = "pixel_pump_request"
allowed = ["subscribe", "publish"]
10 changes: 9 additions & 1 deletion k8s/demo/stateful-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ spec:
- name: public-keys
configMap:
name: foxmq-demo-public-keys
- name: config
configMap:
name: foxmq-demo-config

initContainers:
- name: create-foxmq-d
Expand Down Expand Up @@ -77,6 +80,9 @@ spec:
- name: public-keys
mountPath: /etc/foxmq.d.in/public-keys/

- name: config
mountPath: /etc/foxmq.d.in/config/

- name: foxmq-d
mountPath: /etc/foxmq.d/

Expand All @@ -90,6 +96,8 @@ spec:
cp /etc/foxmq.d.in/users/demo-$POD_INDEX.toml /etc/foxmq.d/users.toml
cp /etc/foxmq.d.in/secret-keys/key-$POD_INDEX.pem /etc/foxmq.d/secret-key.pem

cp /etc/foxmq.d.in/config/* /etc/foxmq.d/

# Synthesize address book
for (( i=0; i<NUM_REPLICAS; i++ )); do
SERVICE_VAR_NAME="FOXMQ_DEMO_${i}_CLUSTER_SERVICE_HOST"
Expand All @@ -105,7 +113,7 @@ spec:

containers:
- name: foxmq
image: ghcr.io/tashigg/foxmq:0.2.1
image: ghcr.io/tashigg/foxmq:0.3.0

env:
- name: RUST_LOG
Expand Down
Loading