Custom Service
A Kubernetes Service can be used to route network traffic to your Bindplane collectors.
When adding sources such as Syslog, TCP, UDP, you must create a custom Kubernetes Service to route the traffic.
Bindplane Node
This example shows how to expose TCP port 5140
, routing to the Bindplane Node agent.
apiVersion: v1
kind: Service
metadata:
name: bindplane-node-agent-syslog
namespace: bindplane-agent
labels:
app.kubernetes.io/component: gateway
app.kubernetes.io/name: bindplane-agent
spec:
ports:
- appProtocol: tcp
name: syslog-tcp
port: 5140
protocol: TCP
targetPort: 5140
selector:
app.kubernetes.io/component: node
app.kubernetes.io/name: bindplane-agent
type: ClusterIP
Bindplane Gateway
This example shows how to expose TCP port 5140
, routing to the Bindplane Gateway agent.
apiVersion: v1
kind: Service
metadata:
name: bindplane-gateway-agent-syslog
namespace: bindplane-agent
labels:
app.kubernetes.io/component: gateway
app.kubernetes.io/name: bindplane-agent
spec:
ports:
- appProtocol: tcp
name: syslog-tcp
port: 5140
protocol: TCP
targetPort: 5140
selector:
app.kubernetes.io/component: gateway
app.kubernetes.io/name: bindplane-agent
type: ClusterIP
Ingress
If you want to route traffic external to your cluster, you can use an Ingress resource to route traffic to the custom service.
You can read more about Ingress here.
Last updated
Was this helpful?