Using a Load Balancer for External Access to NATS
Using a Load Balancer for External Access to NATS
curl -sSL https://nats-io.github.io/k8s/setup.sh | shecho '
apiVersion: v1
kind: Service
metadata:
name: nats-nlb
namespace: default
labels:
app: nats
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: "nlb"
spec:
type: LoadBalancer
externalTrafficPolicy: Local
ports:
- name: nats
port: 4222
protocol: TCP
targetPort: 4222
selector:
app.kubernetes.io/name: nats
' | kubectl apply -f -Setting up a NATS Server with external access on Azure
PreviousSecuring a NATS Cluster with cfsslNextCreating a NATS Super Cluster in Digital Ocean with Helm
Last updated
Was this helpful?