Skip to content

Commit

Permalink
Update example configurations to new format
Browse files Browse the repository at this point in the history
Updates for core examples, agones-xonotic, and iperf3

Still need to do the custom-filter-example, but wanted to do that in
conjunction with the documentation update.

Work on googleforgames#559
  • Loading branch information
markmandel committed Aug 25, 2022
1 parent 578af87 commit f4b8c75
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 33 deletions.
9 changes: 6 additions & 3 deletions examples/agones-xonotic/client-compress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@

version: v1alpha1
filters:
- name: quilkin.extensions.filters.compress.v1alpha1.Compress
- name: quilkin.filters.compress.v1alpha1.Compress
config:
on_read: COMPRESS
on_write: DECOMPRESS
mode: SNAPPY
endpoints:
- address: ${GAMESERVER_IP}:${GAMESERVER_PORT}
clusters:
default:
localities:
- endpoints:
- address: ${GAMESERVER_IP}:${GAMESERVER_PORT}
17 changes: 10 additions & 7 deletions examples/agones-xonotic/sidecar-compress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ data:
proxy:
port: 26001
filters:
- name: quilkin.extensions.filters.compress.v1alpha1.Compress
- name: quilkin.filters.compress.v1alpha1.Compress
config:
on_read: DECOMPRESS
on_write: COMPRESS
mode: SNAPPY
endpoints:
- address: 127.0.0.1:26000
on_read: DECOMPRESS
on_write: COMPRESS
mode: SNAPPY
clusters:
default:
localities:
- endpoints:
- address: 127.0.0.1:26000
---
apiVersion: "agones.dev/v1"
kind: Fleet
Expand Down Expand Up @@ -59,7 +62,7 @@ spec:
- name: xonotic
image: gcr.io/agones-images/xonotic-example:0.8
- name: quilkin
image: us-docker.pkg.dev/quilkin/release/quilkin:0.1.0
image: us-docker.pkg.dev/quilkin/release/quilkin:0.4.0
volumeMounts:
- name: config
mountPath: "/etc/quilkin"
Expand Down
9 changes: 6 additions & 3 deletions examples/agones-xonotic/sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ data:
version: v1alpha1
proxy:
port: 26001
endpoints:
- address: 127.0.0.1:26000
clusters:
default:
localities:
- endpoints:
- address: 127.0.0.1:26000
---
apiVersion: "agones.dev/v1"
kind: Fleet
Expand Down Expand Up @@ -53,7 +56,7 @@ spec:
- name: xonotic
image: gcr.io/agones-images/xonotic-example:0.8
- name: quilkin
image: us-docker.pkg.dev/quilkin/release/quilkin:0.1.0
image: us-docker.pkg.dev/quilkin/release/quilkin:0.4.0
volumeMounts:
- name: config
mountPath: "/etc/quilkin"
Expand Down
7 changes: 3 additions & 4 deletions examples/control-plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ version: v1alpha1
proxy:
id: my-proxy # An identifier for the proxy instance.
port: 7001 # the port to receive traffic to locally
dynamic: # Provide configuration of endpoints using an XDS management server
management_servers: # array of management servers to configure the proxy with.
# Multiple servers can be provided for redundancy.
- address: http://127.0.0.1:26000
management_servers: # array of management servers to configure the proxy with.
# Multiple servers can be provided for redundancy.
- address: http://127.0.0.1:26000
2 changes: 1 addition & 1 deletion examples/iperf3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ ARG install_args="--git https://github.com/googleforgames/quilkin quilkin"
RUN apt update && apt install -y iperf3 socat
RUN cargo install $install_args
COPY ./run.sh /app
COPY ./proxy.yaml /app/quilkin.yaml
COPY ./proxy.yaml /etc/quilkin/quilkin.yaml
CMD ["/app/run.sh"]
8 changes: 5 additions & 3 deletions examples/iperf3/proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ version: v1alpha1
proxy:
id: iperf3
port: 8000
static:
endpoints:
- address: 127.0.0.1:8001
clusters:
default:
localities:
- endpoints:
- address: 127.0.0.1:8001
27 changes: 15 additions & 12 deletions examples/proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ version: v1alpha1
proxy:
id: my-proxy # An identifier for the proxy instance.
port: 7001 # the port to receive traffic to locally
endpoints: # array of potential endpoints to send on traffic to
- address: 127.0.0.1:26000
metadata: # Metadata associated with the endpoint
quilkin.dev:
tokens:
- MXg3aWp5Ng== # the connection byte array to route to, encoded as base64 (string value: 1x7ijy6)
- OGdqM3YyaQ== # (string value: 8gj3v2i)
- address: 127.0.0.1:26001
metadata: # Metadata associated with the endpoint
quilkin.dev:
tokens:
- bmt1eTcweA== # (string value: nkuy70x)
clusters: # grouping of clusters
default:
localities: # grouping of endpoints within a cluster
- endpoints: # array of potential endpoints to send on traffic to
- address: 127.0.0.1:26000
metadata: # Metadata associated with the endpoint
quilkin.dev:
tokens:
- MXg3aWp5Ng== # the connection byte array to route to, encoded as base64 (string value: 1x7ijy6)
- OGdqM3YyaQ== # (string value: 8gj3v2i)
- address: 127.0.0.1:26001
metadata: # Metadata associated with the endpoint
quilkin.dev:
tokens:
- bmt1eTcweA== # (string value: nkuy70x)

0 comments on commit f4b8c75

Please sign in to comment.